Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Elixir formula doesn't find Erlang on Yosemite #30573

Closed
thillerson opened this issue Jun 30, 2014 · 8 comments
Closed

Elixir formula doesn't find Erlang on Yosemite #30573

thillerson opened this issue Jun 30, 2014 · 8 comments
Labels

Comments

@thillerson
Copy link

After doing a clean install of Erlang (OTP 17), and a clean install of Elixir (14.1) iex doesn't run, but fails with:

/usr/local/Cellar/elixir/0.14.1/bin/elixir: line 97: exec: erl: not found

Starting erl from the command line works fine.

Yosemite Beta 2

@adamv adamv added the 10.10 label Jun 30, 2014
@adamv
Copy link
Contributor

adamv commented Jun 30, 2014

Possible duplicate of #29843.

@thillerson
Copy link
Author

I am also having the issue mentioned above, if that helps.

@jacknagel
Copy link
Contributor

This is almost certainly due to the 10.10 PATH thing, so I don't think Homebrew can do anything to fix it. Hopefully it will be fixed in the next 10.10 preview.

@theocodes
Copy link

looks like it wasn't fixed... Do we have a solution yet? Still happens with release version of yosemite.. :/

@mistydemeo
Copy link
Member

Please read the troubleshooting guide and open a new issue with all requested diagnostics, thanks!

@johnrails
Copy link

I'm getting this same issue, and it seems to be happening here in the code. I'm not a Bash pro but the check for if [ -f $SCRIPT_PATH/../releases/RELEASES is failing so I assume the second check isn't even bothered with so ERL_PATH is set to erl. When i change it to ERL_PATH=/usr/local/bin/erl the problem goes away. I'm sure it's something with my environment, and not the script, but this could be use as a temporary hack. I'm on Yosemite, and homebrew 0.9.5, using iTerm2.

if [ -z "$ERL_PATH" ]; then
    if [ -f "$SCRIPT_PATH/../releases/RELEASES" ] && [ -f "$SCRIPT_PATH/erl" ]; then
      ERL_PATH="$SCRIPT_PATH"/erl
    else
      ERL_PATH=erl
   fi
 fi

@dayvsonlima
Copy link

brew link erlang

solved the problem with me

@felipeik
Copy link

thanks @dayvsonlima

$ brew link erlang

also worked for me! 👍

@Homebrew Homebrew locked and limited conversation to collaborators Sep 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

8 participants