Skip to content

web REPL doesn't work on OS X #1291

Closed
Sitin opened this Issue Sep 19, 2012 · 9 comments

4 participants

@Sitin
Sitin commented Sep 19, 2012

I use Julia from archive for OS X on Lion.
Server doesn't listen to localhost:2000. Also there are wrong absolute path to library "liblightcomp.dylib".

MacBook-Air-Mihail-Zatin:bin sitin$ ./launch-julia-webserver
Connect to http://localhost:2000/ for the web REPL.
dyld: Library not loaded: /Users/viral/julia/usr/lib/liblightcomp.dylib
  Referenced from: /Users/sitin/Downloads/Julia/julia/bin/../sbin/lighttpd
  Reason: image not found
SCGI server started on port 2001.
0 open sessions.
@StefanKarpinski
The Julia Language member

What version of Julia are you using? Viral's name, while it has snuck into a few earlier versions, is nowhere in our codebase right now. This seems like it might be a binary install issue, assuming that Viral built the binary? Since otherwise I can't see how his home directory would get in there.

@StefanKarpinski
The Julia Language member
@staticfloat
The Julia Language member

Confirmed on my machine as well, looks like the .so files from lighttpd use the full path to liblightcomp.dylib.

liblightcomp.dylib is not included in the binary installation, (Viral will probably fix this soon), but if you have lighttpd installed elsewhere, you can copy it into the lib directory, then do these commands inside the julia-5f1c43ec43 directory (This fixed this specific issue for me):

cd lib/
for f in `ls *.so`; do install_name_tool -change /Users/viral/julia/usr/lib/liblightcomp.dylib @executable_path/../lib/liblightcomp.dylib $f; done
cd ../bin/
install_name_tool -change /Users/viral/julia/usr/lib/liblightcomp.dylib @executable_path/../lib/liblightcomp.dylib lighttpd

Alternatively, you can just download my repackaged version which has these fixes bundled up (note that the lighttpd version is slightly newer). Also note that I am experiencing difficulties of my own with the web REPL, see Issue #1299.

@ViralBShah
The Julia Language member
@staticfloat
The Julia Language member

I'd like to try out the nginx stuff from @loladiro, is there a way I can get just the nginx changes? It doesn't look like there's a topic branch in his repo. Is there a specific commit I should look for?

@ViralBShah
The Julia Language member
@Sitin
Sitin commented Oct 12, 2012

@staticfloat. I loaded you archive and launched webserver. Error disapeared but localhost:2000 still doesn't responds.

@staticfloat
The Julia Language member

Can you post the output you see when you launch the server?

@ViralBShah
The Julia Language member

Web repl works now in OS X Lion from source. Probably a couple more things are required to make sure that it works out of the distribution created by make install.

@ViralBShah ViralBShah added a commit that closed this issue Dec 23, 2012
@ViralBShah ViralBShah Close #1291
Update lighttpd dependent library paths to be relative.
276f66f
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.