blazejcm

blazejcm

Building from source: issues with git

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

First Post!

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.

Most Liked

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.

Last Post!

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.

Where Next?

Popular in Questions Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New

Other popular topics Top

minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 54092 488
New
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 54996 245
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 40082 209
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 44608 311
New

We're in Beta

About us Mission Statement