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
Trending in Questions
Hey guys,
I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly
Do you guys have any suggestions what is the best prac...
New
Hello!
Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app.
I creat...
New
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
Anyone here using Honeybadger?
My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of
Bandit.HTTPError...
New
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
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
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
There are three potential reasons for members of this forum to have a look at https://vutuv.de
You are tired or annoyed of LinkedIn.
Yo...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixir-ls
- #ai
- #elixirconf-us
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 9- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
OvermindDL1
What version of git (
git --version) do you have? The-coption 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
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
You probably want to at least install CentOS 7 instead of 6.
blazejcm
Thanks, guys. I was expecting that - people telling me to upgrade instead of answering my question
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
BTW, I did build Erlang/OTP 22 from source. It was actually quite painless.
Thanks,
Michal
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
Thanks, good point.
Based on your feedback, I’ve decided to bite the bullet and move my server to a current distro
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
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
The following unit tests were failing (see exception_test.exs):
test “annotates band arithmetic errors” do
use Bitwise
Best,
Michal
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.