Help requested

Ernst Berg ernst_berg at sbcglobal.net
Wed Mar 7 20:44:01 CET 2012


Hello Friends..

 I just upgraded hardware and OS and am not sure what to do to get GMP running 
right. It is my fault that my experience level is not so high with solving 
problems but, it is better to ask for help then to hack things to death here.

I installed GMP gmp-5.0.4 as I have before except before was on Fedora and now I 
own RHEL6.  

 The issue is :

  gcc -o attractor_finder attractor_finder.c -lgmp -static
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status


 or

 ./attractor_finder 
./attractor_finder: error while loading shared libraries: libgmp.so.10: cannot 
open shared object file: No such file or directory

 Which I read :

Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'


 So since I am the system administrator and I am unsure what to add to what and 
where I am asking for advice.

 Pardon the Noob question but I am failing to solve this linker issue

Did : ./configure, make,make check, make install .. Everything looks right but I 
assume some sort of path command is needed?

 Thanks


More information about the gmp-discuss mailing list