Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Julia brew fails on OS X 10.7.5-x86_64 #21

Closed
ghuiber opened this issue Feb 6, 2013 · 8 comments
Closed

Julia brew fails on OS X 10.7.5-x86_64 #21

ghuiber opened this issue Feb 6, 2013 · 8 comments

Comments

@ghuiber
Copy link

ghuiber commented Feb 6, 2013

https://gist.github.com/ghuiber/4720025

@dpo
Copy link
Contributor

dpo commented Feb 9, 2013

I have the same error message on OSX 10.8.2. In /Library/Caches/Homebrew/Formula, there are *.brewing files cropping up. Googling a bit revealed mistydemeo/tigerbrew#7, which perhaps contains a clue?!

@staticfloat
Copy link
Owner

Hello, terribly sorry, somehow I'm not getting notifications on this repository like I should be. I'm just about to release a large update to the Julia build process, please hang tight and I'll notify you once it's up.

These errors sound like you've got some inconsistent state in your homebrew, which is odd. My advice is to:

  • Update homebrew (brew update)
  • Clear out any relevant .brewing files (Look in /Library/Caches/Homebrew/Formula/)
  • If all else fails, after removing the .brewing files, remove your installation of openblas and reinstall: (brew rm -f openblas)

@staticfloat
Copy link
Owner

The new build process is up. Please try again, following the above instructions if necessary, and report back any problems.

@ghuiber
Copy link
Author

ghuiber commented Feb 12, 2013

Thank you your response. I did brew update and the last thing it told me was this:

==> Renamed Formulae
staticfloat/julia/openblas-julia      staticfloat/julia/openblas64-julia

However, now brew doctor is unhappy:

$ brew doctor
Error: Failed to import: openblas64
Your system is raring to brew.

So I moved on to the next item in your instructions, looked in ~/Library/Caches/Homebrew/Formula/ and found this:

$ ls -la ~/Library/Caches/Homebrew/Formula
total 0
drwxr-xr-x  16 ghuiber  staff  544 Feb  5 21:27 .
drwxr-xr-x  23 ghuiber  staff  782 Feb  5 22:03 ..
-rw-r--r--   1 ghuiber  staff    0 Feb  5 20:07 arpack-ng.brewing
-rw-r--r--   1 ghuiber  staff    0 Feb  5 20:07 fftw.brewing
-rw-r--r--   1 ghuiber  staff    0 Feb  5 21:27 gfortran.brewing
-rw-r--r--   1 ghuiber  staff    0 Feb  5 20:07 glpk.brewing
-rw-r--r--   1 ghuiber  staff    0 Feb  5 20:07 gmp.brewing
-rw-r--r--   1 ghuiber  staff    0 Feb  5 20:07 julia.brewing
-rw-r--r--   1 ghuiber  staff    0 Feb  5 21:27 libmpc.brewing
-rw-r--r--   1 ghuiber  staff    0 Feb  5 20:07 llvm.brewing
-rw-r--r--   1 ghuiber  staff    0 Feb  5 21:27 mpfr.brewing
-rw-r--r--   1 ghuiber  staff    0 Feb  5 20:07 nginx.brewing
-rw-r--r--   1 ghuiber  staff    0 Feb  5 20:07 open-mpi.brewing
-rw-r--r--   1 ghuiber  staff    0 Feb  5 16:38 openblas.brewing
-rw-r--r--   1 ghuiber  staff    0 Feb  5 20:07 pcre.brewing
-rw-r--r--   1 ghuiber  staff    0 Feb  5 20:07 readline.brewing

I figured openblas.brewing would be relevant, so I cleared it, then also julia.brewing, then finally removed openblas, but still not luck:

$ sudo rm ~/Library/Caches/Homebrew/Formula/openblas.brewing
$ brew doctor
Error: Failed to import: openblas64
Your system is raring to brew.
$ sudo rm ~/Library/Caches/Homebrew/Formula/julia.brewing
$ brew rm -f openblas
$ brew doctor
Error: Failed to import: openblas64
Your system is raring to brew.
$ brew install julia
Error: No available formula for openblas-julia

That's all I have. It does seem that we're making progress though. Thanks again for looking into it.

@ghuiber
Copy link
Author

ghuiber commented Feb 12, 2013

All is well. I saw the exchange with @samueljohn regarding issue #15, then did this:

$ brew untap staticfloat/julia
$ brew tap staticfloat/julia
$ brew install --HEAD julia

Julia compiled without fuss. Thank you. This issue can be closed now.

@dpo
Copy link
Contributor

dpo commented Feb 13, 2013

Thanks for the updates. Julia installed fine once I passed --env=std. It wouldn't compile without that on my machine (I've had this issue with other formulae as well and am not sure why---brew doctor is very happy though). However:

$ launch-julia-webserver
Connect to http://localhost:2000/ for the web REPL.
nginx: [emerg] open() "/usr/local/Cellar/nginx/1.2.6/etc/nginx.conf" failed (2: No such file or directory)
SCGI server started on port 2001.
0 open sessions.

During installation, nginx said that it was using port 8080 by default so we didn't need to use sudo. Sorry I'm not familiar with nginx or webservers to diagnose what's wrong here. I should also add that the path /usr/local/Cellar/nginx/1.2.6/etc does not exist. nginx installed without complaints though.

I can start the Julia interpreter by just running julia but then I can't plot. Any ideas?

@StefanKarpinski
Copy link

You need some kind of plotting package for plotting. I believe the web repl defines one for you, or you can use Winston or Gadfly. Both require pango and Winston requires tk and cairo as external dependencies.

@staticfloat
Copy link
Owner

As @StefanKarpinski stated, plotting requires one of the above packages. Additionally, the webserver gui is a known problem with this Homebrew formula, as stated in the Readme.md on the front page. I am not yet sure why the webserver quits immediately after starting, but I hope to look into it this weekend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants