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

Build uses wrong libreadline when using homebrew #9

Open
frankcarey opened this issue Oct 24, 2014 · 2 comments
Open

Build uses wrong libreadline when using homebrew #9

frankcarey opened this issue Oct 24, 2014 · 2 comments

Comments

@frankcarey
Copy link

I'm using boxen on OSX 10.9 and (for some stupid reason) it puts homebrew in /opt/boxen/homebrew/ instead of the default /usr/local

When I use the torch7 easyinstall script at https://github.com/torch/ezinstall/blob/master/install-luajit%2Btorch I get the following error:

... // See https://github.com/torch/ezinstall/issues/27 for full output
[ 73%] Building ASM object luajit/CMakeFiles/luajit.dir/lj_vm.s.o
Linking C executable luajit
Undefined symbols for architecture x86_64:
  "_rl_completion_suppress_append", referenced from:
      _lua_rl_complete in luajit.c.o
ld: symbol(s) not found for architecture x86_64

I grepped the ./build/CMakeCache.txt file and found it was trying to use the OSX default /usr/lib/libreadline.dylib (which symlinks to libedit) instead of the one I installed and linked with homebrew.

READLINE_readline_LIBRARY:FILEPATH=/usr/lib/libreadline.dylib

To finally fix it, I just symlinked the homebrew lib folder into the place where it usually is (/usr/local/lib) deleted the whole gitfolder and reran the script. Then, all was well and it completed successfully.

My question is how to better handle this use-case? Is there a way to specify the location of the proper file?

@soumith
Copy link
Member

soumith commented Oct 24, 2014

we could put a version check on getting the proper readline.

@jcrosby
Copy link

jcrosby commented May 30, 2015

I just ran into this same bug on OSX 10.10.3, also with the boxen-configured homebrew using /opt/boxen/homebrew.

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

3 participants