Problem: /usr/bin/ld: cannot find -lmcpp
Hey all,
I encountered this problem, it seems ld (GNU linker) is unable to find some library? Because I installed this mcpp package into 'some_directory', is there any trick to make it find the 'some_directory'? Any environment variable of help? make[2]: Entering directory `/home/ericx/software_bin/ice_src_rpm/Ice-3.3.0/cpp/src/Slice' rm -f ../../lib/libSlice.so.3.3.0 c++ -shared -Wl,--enable-new-dtags -Wl,-rpath,/opt/Ice-3.3/lib -ftemplate-depth-128 -Wall -D_REENTRANT -I/usr/include/nptl -fPIC -g -L../../lib -o ../../lib/libSlice.so.3.3.0 -Wl,-h,libSlice.so.33 Scanner.o ../Slice/Grammar.o Parser.o CPlusPlusUtil.o CsUtil.o JavaUtil.o Preprocessor.o Checksum.o PythonUtil.o DotNetNames.o RubyUtil.o Util.o MD5.o MD5I.o SignalHandler.o -lIceUtil -lmcpp -lpthread -lrt /usr/bin/ld: cannot find -lmcpp collect2: ld returned 1 exit status Thanks in advance... |
If you compiled "mcpp" with
'./configure --enable-mcpplib --prefix=[some-other-place]' you will have the libs in "[some-other-place]/lib" and *) the command ' export PATH="$PATH:[some-other-place]/lib" ' would usually work for "ice" ( It didn't work for me ) So the safe choice is './configure --enable-mcpplib --prefix=/usr/' *) EDIT : A new library path can be added to /etc/ld.so.conf, * (but not sure if "ice" will find it, I think there are absolute * paths in some of the Makefile's, will find some libs in /usr/local * others in /usr only.) |
Thanks a lot, knudfl!
Yes, exactly I'm compiling Ice... |
All times are GMT -5. The time now is 07:28 AM. |