LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-14-2008, 08:05 AM   #1
afa_linux
LQ Newbie
 
Registered: Oct 2005
Distribution: Ubuntu 8.04
Posts: 15

Rep: Reputation: 0
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...
 
Old 11-15-2008, 12:35 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.)

Last edited by knudfl; 11-16-2008 at 06:05 AM.
 
Old 11-17-2008, 02:09 PM   #3
afa_linux
LQ Newbie
 
Registered: Oct 2005
Distribution: Ubuntu 8.04
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks a lot, knudfl!
Yes, exactly I'm compiling Ice...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/usr/bin/ld: cannot find -lg2c dsupriya Linux - Software 2 07-09-2008 01:16 AM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM
Is '/usr/bin/find' reliable if '/bin/ls' has been replaced? DigaMe Linux - Security 2 11-12-2004 10:42 PM
/usr/bin/ld: cannot find -lc aa2bi Linux - Newbie 2 06-09-2004 06:32 AM
/usr/bin/ld: cannot find -lkscreensaver caleb Conectiva 1 01-13-2003 05:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration