blazejcm

blazejcm

Hello,

I am following steps on the following page to install Elixir on my Centos 6 32-bit VM: Install Erlang and Elixir in CentOS 7 | Unixmen

I have the latest version of Erlang/OTP installed, and now I’m following steps in the “Install Elixir” section. I cloned the git repo but when I run “make clean test”, I’m getting errors when the script is trying to test the mix tool:

(Mix.Error) Command “git -c core.hooksPath=‘’ init --quiet” failed

My git does not recognize the “-c” option. Is there a way for me to somehow circumvent this, e.g. by providing the necessary custom options via a config file? Where in the source code would I have to look for this?

Regards,
Michal

Showing Posts 1 to 9

OvermindDL1

OvermindDL1

What version of git (git --version) do you have? The -c option is ancient… I don’t recall what version it was added but way way back in the v1 era as I recall. You do have at least version 2.x of git installed to start with (even v2 is many many years old, like 6 or 7 years old I think)?

EDIT: If you do have a git version older than v2 then you really badly need to update it. V1 had insecure hash generation (not just theoretically) that has since been updated along with a lot of other security fixes, not to mention all the other security and other fixes since v2.0.0 first came out.

NobbZ

NobbZ

According to http://mirror.centos.org/centos/7/os/x86_64/Packages/, a git 1.8.3.1 is served. Which again is from 2013 according to the tag (Release v1.8.3.1 · git/git · GitHub).

So yes, that system needs an update…


This means nothing to me on any distribution, especially not on RHEL or CentOS. Especially after “latest” in EPEL seems to be OTP 16B3. Elixir 1.0 needs at least OTP 17. A current elxir needs at least OTP 19.

axelson

axelson

Scenic Core Team

You probably want to at least install CentOS 7 instead of 6.

blazejcm

blazejcm OP

Thanks, guys. I was expecting that - people telling me to upgrade instead of answering my question :slight_smile:

Yes, my git is ancient (1.7) so that explains the problem. Elixir does however seems to have built properly once I skipped the tests. So I think I’m set for now.

A VM upgrade is planned but it will definitely take longer than the free time I have now :wink:

BTW, I did build Erlang/OTP 22 from source. It was actually quite painless.

Thanks,
Michal

OvermindDL1

OvermindDL1

It’s also painless to build git, it’s literally a download source, extract, make, make install # as root, and I would highly highly recommend it. Running such an old git version is extremely insecure!

blazejcm

blazejcm OP

Thanks, good point.

Based on your feedback, I’ve decided to bite the bullet and move my server to a current distro :slight_smile:

BTW, I’ve encountered some other strange errors when building Elixir from scratch. Is this the right place to share them with the community? Or should I open a ticket somewhere?

Best,
Michal

NobbZ

NobbZ

What kind of strange errors?

If they all are because of outdated dependencies, I don’t think you need to share them.

I have never encountered on systems I operate. I have to admit though, that I preferably use arch, ubuntu (latest LTS) and sometimes at work I have to use some CentOS7, but except for a single experiment a year ago, I didn’t need to install elixir on it. For docker based deploys I tend to reach out for alpine and also never had issues, even though I roll my Dockerfiles by hand.

blazejcm

blazejcm OP

The following unit tests were failing (see exception_test.exs):

test “annotates band arithmetic errors” do
use Bitwise

    assert blame_message(:foo, &band(10, &1)) ==
             "bad argument in arithmetic expression: Bitwise.band(10, :foo)"

    assert blame_message(:foo, &(10 &&& &1)) ==
             "bad argument in arithmetic expression: Bitwise.band(10, :foo)"
  end

  test "annotates bor arithmetic errors" do
    use Bitwise

    assert blame_message(:foo, &bor(10, &1)) ==
             "bad argument in arithmetic expression: Bitwise.bor(10, :foo)"

    assert blame_message(:foo, &(10 ||| &1)) ==
             "bad argument in arithmetic expression: Bitwise.bor(10, :foo)"
  end

  test "annotates bxor arithmetic errors" do
    use Bitwise

    assert blame_message(:foo, &bxor(10, &1)) ==
             "bad argument in arithmetic expression: Bitwise.bxor(10, :foo)"

    assert blame_message(:foo, &(10 ^^^ &1)) ==
             "bad argument in arithmetic expression: Bitwise.bxor(10, :foo)"
  end

Best,
Michal

NobbZ

NobbZ

I never run unit tests when compiling from a tag, so perhaps you should provide additional info, as exact fail message, tag/sha you built from and which OTP you used.

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews