Results 1 to 8 of 8
|
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
06-15-2014 #1Just Joined!
- Join Date
- Jun 2014
- Posts
- 6
error while loading share libraries "libmpc.so.2 not found"
i just
get this messageCode:gcc -c hello hello.c
then i check outCode:error while loading share libraries "libmpc.so.2 not found"
and it is a linkCode:ls -l /usr/lib/libmpc.so.2
but i cannot found libmpc.so.3Code:libmpc.so.2 --->libmpc.so.3
-
06-15-2014 #2
post the "hello.c" program here, please.
if libmpc.so.2 is a link, it tells you where it links to; what you posted suggests libmpc.so.3 is in the same directory. if it isn't then the link is broken. it could mean you have to install the library that provides libmpc.so.3.
-
06-16-2014 #3Just Joined!
- Join Date
- Jun 2014
- Posts
- 6
-
06-16-2014 #4Linux Guru
- Join Date
- Dec 2013
- Location
- Victoria, B.C. Canada
- Posts
- 2,103
I think the issue is your command line - and nothing to do with libmpc. You're certainly not using it.
Try:
Then try:Code:gcc hello.c -o hello
and read the warnings.Code:gcc -Wall hello.c -o hello
-
06-16-2014 #5Just Joined!
- Join Date
- Jun 2014
- Posts
- 6
-
06-16-2014 #6Linux Guru
- Join Date
- Dec 2013
- Location
- Victoria, B.C. Canada
- Posts
- 2,103
It looks to me like you have an installation issue then. You might need to run ldconfig.
Try:
Code:export LD_LIBRARY_PATH="/usr/lib"; sudo ldconfig
-
06-16-2014 #7Just Joined!
- Join Date
- Jun 2014
- Posts
- 6
the same as the latest , but i want to install a new gcc now.
i download gcc-4.9.0.tar.bz2 to /opt , i have tar it and create a directory means /usr/local/gcc-4.9.0.
the next commands is as follows :then there is an error message:Code:cd opt/gcc-4.9.0; ./contrib/download_prerequisites ./configure --prefix=/usr/local/gcc-4.9.0
Code:Checking for gcc.... gcc Checking for C Compliler Default output file name... configure: error: in '/usr/local/gcc-4.9.0': configure: error: C Compiler can not Crete executables See 'config.log' for more details.
-
06-16-2014 #8Just Joined!
- Join Date
- Jun 2014
- Posts
- 6
has resolved. thank u @gregm


Reply With Quote
