Elixir brew having problems, something wrong with homebrew #15353

Closed
krainboltgreene opened this Issue Oct 8, 2012 · 7 comments

Comments

Projects
None yet
3 participants

So I recently ran into a issue with brew, attempting to install Elixir, where it worked on other people's machines but not mine. Here's the install log:

$ brew install elixir        
==> Downloading https://github.com/elixir-lang/elixir/tarball/v0.6.0
Already downloaded: /Library/Caches/Homebrew/elixir-0.6.0.tgz
==> make
/bin/sh: ./rebar: No such file or directory
make: *** [erlang] Error 127

Error: elixir did not build
Logs: /Users/krainboltgreene/Library/Logs/Homebrew/elixir/
Help: https://github.com/mxcl/homebrew/wiki/troubleshooting

In interactive mode I get this:

$ brew install elixir -d                                                                        1 ↵
/usr/local/bin/brew: loading /usr/local/Library/Formula/elixir.rb
/usr/local/Library/Formula/elixir.rb: loading /usr/local/Library/Formula/python.rb
==> Downloading https://github.com/elixir-lang/elixir/tarball/v0.6.0
Already downloaded: /Library/Caches/Homebrew/elixir-0.6.0.tgz
==> make
/bin/sh: ./rebar: No such file or directory
make: *** [erlang] Error 127
Error: #<BuildError: Failed executing: make >
==> Rescuing build...
When you exit this shell Homebrew will attempt to finalise the installation.
If nothing is installed or the shell exits with a non-zero error code,
Homebrew will abort. The installation prefix is:
/usr/local/Cellar/elixir/0.6.0

/private/tmp/elixir-q4FT/elixir-lang-elixir-01a575e $ l
total 336
drwxr-xr-x  16 krainboltgreene  wheel     544 Aug  1 01:32 .
drwx------   3 krainboltgreene  wheel     102 Oct  8 09:24 ..
-rw-r--r--   1 krainboltgreene  wheel     208 Aug  1 01:32 .gitignore
-rw-r--r--   1 krainboltgreene  wheel     197 Aug  1 01:32 .travis.yml
-rw-r--r--   1 krainboltgreene  wheel    3964 Aug  1 01:32 CHANGELOG.md
-rw-r--r--   1 krainboltgreene  wheel     341 Aug  1 01:32 LEGAL
-rw-r--r--   1 krainboltgreene  wheel     572 Aug  1 01:32 LICENSE
-rw-r--r--   1 krainboltgreene  wheel    3131 Aug  1 01:32 Makefile
-rw-r--r--   1 krainboltgreene  wheel    1973 Aug  1 01:32 README.md
-rw-r--r--   1 krainboltgreene  wheel     582 Aug  1 01:32 RELEASE.md
drwxr-xr-x  10 krainboltgreene  wheel     340 Aug  1 01:32 bin
drwxr-xr-x   6 krainboltgreene  wheel     204 Aug  1 01:32 lib
-rwxr-xr-x   1 krainboltgreene  wheel  133411 Aug  1 01:32 rebar
-rw-r--r--   1 krainboltgreene  wheel     805 Aug  1 01:32 rebar.config
drwxr-xr-x   4 krainboltgreene  wheel     136 Aug  1 01:32 rel
drwxr-xr-x   3 krainboltgreene  wheel     102 Aug  1 01:32 src

I can run ./rebar and it will start the process. What could be happening here?

Thanks, but I've already read that. I've ran brew doctor and nothing showed up.

You'll also notice that it doesn't seem to be an issue with the package, so the title doesn't apply.

But thanks for commenting with just a link.

Contributor

adamv commented Oct 8, 2012

@jacknagel probably needs :userpaths to find Erlang?

Contributor

adamv commented Oct 8, 2012

Ok, elixir is looking for rebar with:

REBAR:=$(shell which rebar || echo `pwd`/rebar)

So it will set the var to ./rebar on my machine, but then it changes to a different folder and still tries to use ./rebar even though it is in the parent folder.

This bug will need to be reported upstream.

Contributor

adamv commented Oct 8, 2012

It may not manifest if the user has done brew install rebar, but I'm not bothering to test that.

Contributor

adamv commented Oct 8, 2012

Upstream issue: elixir-lang/elixir#515

Contributor

adamv commented Oct 8, 2012

@krainboltgreene please reference upstream issues when opening a bug in Homebrew!

adamv closed this in d7a3086 Oct 8, 2012

@snakeyroc3 snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012

@adamv adamv elixir: silent version change
This closes #15353.

The fix was made by refreshing an existing git tag, so update the sha1.
fe71510

xu-cheng locked and limited conversation to collaborators Feb 16, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.