Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Fix rlwrap on 10.7.4 #13016

Closed
wants to merge 1 commit into from
Closed

Fix rlwrap on 10.7.4 #13016

wants to merge 1 commit into from

Conversation

arlolra
Copy link
Contributor

@arlolra arlolra commented Jun 25, 2012

I was having trouble installing rlwrap. I had to specify readline.6.2 to get it working. brew doctor says raring to brew.

My system information:

HOMEBREW_VERSION: 0.9
HEAD: 287f5de
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.7.4
Kernel Architecture: x86_64
Xcode: 4.3.3, CLT 1.0.0.9000000000.1.1249367152
GCC-4.0: N/A
GCC-4.2: build 5666
LLVM: build 2336
Clang: 3.1 build 318
MacPorts or Fink? false
X11: /usr/X11
System Ruby: 1.8.7-357

Hope it helps someone.

@2bits
Copy link
Contributor

2bits commented Jun 26, 2012

Nice one. I get the same error, but I don't understand why the fix you made works when libreadline.dylib exists and I have the right LDFLAGS

LDFLAGS='-L/usr/local/Cellar/readline/6.2.2/lib -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/lib -L/usr/local/lib'

$ ls -l /usr/local/Cellar/readline/6.2.2/lib/libread*
-r--r--r--  1 nibbles  admin  417164 Jun 13 02:45 /usr/local/Cellar/readline/6.2.2/lib/libreadline.6.2.dylib
lrwxr-xr-x  1 nibbles  admin      21 Jun 13 02:45 /usr/local/Cellar/readline/6.2.2/lib/libreadline.6.dylib -> libreadline.6.2.dylib
-r--r--r--  1 nibbles  admin  678440 Jun 13 02:45 /usr/local/Cellar/readline/6.2.2/lib/libreadline.a
lrwxr-xr-x  1 nibbles  admin      21 Jun 13 02:45 /usr/local/Cellar/readline/6.2.2/lib/libreadline.dylib -> libreadline.6.2.dylib

Any idea?

@arlolra
Copy link
Contributor Author

arlolra commented Jun 26, 2012

My guess is that the linker gets confused with /usr/lib/libreadline.dylib -> libedit.3.dylib. Specifying readline.6.2 forces it to choose the right one.

@2bits
Copy link
Contributor

2bits commented Jun 26, 2012

@adamv @jacknagel please review when you're free. @arlolra thanks for clearing that up. I forgot to inspect /usr/lib and missed that.

@adamv
Copy link
Contributor

adamv commented Jun 27, 2012

Pretty sure this is related to the Xcode/CLT change we pulled, since everything fails to link against readline now. Need to fix the root cause.

@adamv
Copy link
Contributor

adamv commented Jun 27, 2012

Please brew update and retry without this patch; #13037 has been pulled and should address this issue.

@adamv adamv closed this Jun 27, 2012
@arlolra
Copy link
Contributor Author

arlolra commented Jun 27, 2012

Yup, seems to work. Thanks @adamv

@Homebrew Homebrew 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.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants