Thursday, August 09, 2012

readline Make Error in Mac OS X Lion

When I tried to install readline 6.2 under MacOS X Lion, I got the following error:

i686-apple-darwin11-llvm-gcc-4.2: -compatibility_version only allowed with -dynamiclib
make[1]: *** [libreadline.6.2.dylib] Error 1
make: [shared] Error 2 (ignored)

After searched google, I got this solution from http://www.iamseree.com/application-development/readline-6-2-make-error-in-mac-os-x-lion

cd shlib
 
sed -e 's/-dynamic/-dynamiclib/' Makefile > Makefile.good
 
mv Makefile.good Makefile
 
cd ..
 
make
 
sudo make install
 
 
It worked!

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home