Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Elixir brew having problems, something wrong with homebrew #15353

Closed
krainboltgreene opened this Issue · 7 comments

3 participants

@krainboltgreene

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?

@krainboltgreene

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.

@adamv
Owner

@jacknagel probably needs :userpaths to find Erlang?

@adamv
Owner

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.

@adamv
Owner

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

@adamv
Owner

Upstream issue: elixir-lang/elixir#515

@adamv
Owner

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

@adamv adamv closed this issue from a commit
@adamv adamv elixir: silent version change
This closes #15353.

The fix was made by refreshing an existing git tag, so update the sha1.
d7a3086
@adamv adamv closed this in d7a3086
@allenhuang allenhuang referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@theirix theirix referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@snakeyroc3 snakeyroc3 referenced this issue from a commit in snakeyroc3/homebrew
@adamv adamv elixir: silent version change
This closes #15353.

The fix was made by refreshing an existing git tag, so update the sha1.
fe71510
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.