siddhant3030

siddhant3030

How do I install erlang using asdf

I’m trying to install erlang otp 22.x. I have installed elixir and erlang using asdf and I have set the global version as otp 23 and elixir latest. But one for one of my projects I need to install otp 22 but It somehow not able to install and I’m getting this error.

`asdf_22.1.7 is not a kerl-managed Erlang/OTP installation
The asdf_22.1.7 build has been deleted
Extracting source code
Building Erlang/OTP 22.1.7 (asdf_22.1.7), please wait...
Build failed.
^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/netinet6/in6.h:212:30: note: previous declaration is here
extern const struct in6_addr in6addr_loopback;
^
2 errors generated.
make[4]: *** [obj/x86_64-apple-darwin19.6.0/opt/smp/socket_nif.o] Error 1
make[3]: *** [opt] Error 2
make[2]: *** [opt] Error 2
make[1]: *** [smp] Error 2
make: *** [emulator] Error 2

Please see /Users/siddhant/.asdf/plugins/erlang/kerl-home/builds/asdf_22.1.7/otp_build_22.1.7.log for full details.`

I don’t know what is causing this. Do I have to uninstall the erlang version which I have installed?

I’m using macOS Catalina 10.15.6.

I followed these steps

  1. installed asdf using brew install asdf
  2. asdf plugin-add erlang
  3. asdf install erlang 22.1.8
`▶ brew install asdf
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> Updated Casks
command-tab-plus virtualhostx

==> Downloading https://github.com/asdf-vm/asdf/archive/v0.7.8.tar.gz
Already downloaded: /Users/siddhant/Library/Caches/Homebrew/downloads/34d73b51ece171e6c4ffe51147d4599c5b7f78749b379dec98ab7dd9174bd595--asdf-0.7.8.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d

zsh completions have been installed to:
/usr/local/share/zsh/site-functions
==> Summary
🍺 /usr/local/Cellar/asdf/0.7.8: 104 files, 219.6KB, built in 2 seconds

~
▶ asdf plugin-add erlang
initializing plugin repository...
Cloning into '/Users/siddhant/.asdf/repository'...
remote: Enumerating objects: 2224, done.
remote: Total 2224 (delta 0), reused 0 (delta 0), pack-reused 2224
Receiving objects: 100% (2224/2224), 502.74 KiB | 624.00 KiB/s, done.
Resolving deltas: 100% (1000/1000), done.

~
▶ asdf install erlang 22.1.7
Downloading kerl...
asdf_22.1.7 is not a kerl-managed Erlang/OTP installation
No build named asdf_22.1.7
Downloading OTP-22.1.7.tar.gz to /Users/siddhant/.asdf/plugins/erlang/kerl-home/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 122 100 122 0 0 261 0 --:--:-- --:--:-- --:--:-- 261
100 52.4M 0 52.4M 0 0 7499k 0 --:--:-- 0:00:07 --:--:-- 8890k
Extracting source code
Building Erlang/OTP 22.1.7 (asdf_22.1.7), please wait...
Build failed.
^
CC obj/x86_64-apple-darwin19.6.0/opt/smp/prim_file_nif.o
CC obj/x86_64-apple-darwin19.6.0/opt/smp/zlib_nif.o
2 errors generated.
make[4]: *** [obj/x86_64-apple-darwin19.6.0/opt/smp/inet_drv.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [opt] Error 2
make[2]: *** [opt] Error 2
make[1]: *** [smp] Error 2
make: *** [emulator] Error 2

Please see /Users/siddhant/.asdf/plugins/erlang/kerl-home/builds/asdf_22.1.7/otp_build_22.1.7.log for full details.

~ ⍉
▶ /Users/siddhant/.asdf/plugins/erlang/kerl-home/builds/asdf_22.1.7/otp_build_22.1.7.log for full details.
zsh: permission denied: /Users/siddhant/.asdf/plugins/erlang/kerl-home/builds/asdf_22.1.7/otp_build_22.1.7.log

~ ⍉
▶ /Users/siddhant/.asdf/plugins/erlang/kerl-home/builds/asdf_22.1.7/otp_build_22.1.7.log
zsh: permission denied: /Users/siddhant/.asdf/plugins/erlang/kerl-home/builds/asdf_22.1.7/otp_build_22.1.7.log

~ ⍉
▶ /Users/siddhant/.asdf/plugins/erlang/kerl-home/builds/asdf_22.1.7

kerl-home/builds/asdf_22.1.7 master ✔ 63d4h
▶ ls
otp_build_22.1.7.log otp_src_22.1.7`

Above is the list of things I did and in the last, I get the same error every time. If you see if I go to this

this is the gist for this file when I go into this

/Users/siddhant/.asdf/plugins/erlang/kerl-home/builds/asdf_22.1.8/otp_build_22.1.8.log for full details.

Most Liked

vrcca

vrcca

Have you tried this?

brew install autoconf
brew install wxmac
export KERL_CONFIGURE_OPTIONS="--without-javac"
asdf install erlang 22.1.7
derek-zhou

derek-zhou

stow is old. most newer ways, including nvm, rvm do this:

  • install software in unconventional location
  • mung environment variable to point here

Stow does it differently:

  • install software in unconventional location
  • symlink all stuff into /usr/local, so you don’t need to mung environment variables

It is a matter of choice. I like the stow way, however please keep in mind that it does not work in certain environments, like if you don’t have root permission or on Windows.

odix67

odix67

I think it is only necessary in the case you need JInterface, a method to simulate a java application as an erlang node

Sebb

Sebb

FOP (which you only need if you want to build the docs) is Java. But there may be others.

Where Next?

Popular in Questions Top

Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
Tee
can someone please explain to me how Enum.reduce works with maps
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
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
Jim
As a follow up to my earlier question: I have the code compiling and running but not getting a successful login from the rest server. ...
New
dokuzbir
Hello, I am trying to convert my lists to string without losing brackets.For start i have 3 map. They look like these buyer = %{ id: ...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New

Other popular topics Top

peerreynders
Manning 2016 Halloween weekend sale via Deal of the Day Friday, October 28 - Half off all MEAPs - code WM102816LT Saturday, October 29 ...
326 29600 154
New
sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
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 49522 488
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New

We're in Beta

About us Mission Statement