LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem in gmp installation (https://www.linuxquestions.org/questions/linux-newbie-8/problem-in-gmp-installation-906341/)

cool4dmin 10-04-2011 05:39 AM

problem in gmp installation
 
I installed gmp-5.0.2. Finally after running the below error was appeared:

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

what 's the problem. and who can I fix it?

is it related to install in vmware linux OS?

colucix 10-04-2011 06:59 AM

How did you install it? From an official binary package for your distribution or by compiling from source? In the latter case, you have to inform the system were the library are placed. You can either run (as root):
Code:

ldconfig /path/to/gmp-5.0.2/lib
or from a user's point of view, add the following to your .bashrc (or any other configuration file if you run a shell different from /bin/bash):
Code:

if [[ -z $LD_LIBRARY_PATH ]]
then
  export LD_LIBRARY_PATH=/path/to/gmp-5.0.2/lib
else
  export LD_LIBRARY_PATH=/path/to/gmp-5.0.2/lib:$LD_LIBRARY_PATH
fi

this will update (or create) the LD_LIBRARY_PATH environment variable that lists all the directories where the executables can find the shared objects.

cool4dmin 10-04-2011 08:28 AM

good job
 
thnx
that's great :hattip:

colucix 10-04-2011 09:00 AM

You're welcome! :)


All times are GMT -5. The time now is 04:51 PM.