LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-04-2011, 05:39 AM   #1
cool4dmin
LQ Newbie
 
Registered: Oct 2011
Posts: 2

Rep: Reputation: Disabled
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?
 
Old 10-04-2011, 06:59 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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.
 
1 members found this post helpful.
Old 10-04-2011, 08:28 AM   #3
cool4dmin
LQ Newbie
 
Registered: Oct 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thumbs up good job

thnx
that's great
 
Old 10-04-2011, 09:00 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
You're welcome!
 
  


Reply



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
Problem building GCC and GMP MTK358 Linux From Scratch 32 01-10-2011 04:13 PM
[SOLVED] gmp.h not found computerfreak97 Linux From Scratch 1 12-26-2010 08:15 PM
gdb (and gmp) xoran99 Programming 4 07-11-2010 10:19 PM
[SOLVED] GMP-5.0.0 question ukiuki Linux From Scratch 2 05-24-2010 08:08 AM
trying to use gmp BadTaste Programming 1 08-04-2004 09:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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