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 01-15-2009, 12:05 PM   #1
pratyuze
LQ Newbie
 
Registered: Jan 2009
Posts: 16

Rep: Reputation: 0
pgplot installation in fedora 10


i recently installed pgplot in fedora 10. while the compilation goes on smoothly, when I try to run the demo files like pgdemo1 etc, it says

./pgdemo1: error while loading shared libraries: libpgplot.so: cannot open shared object file : No such file or directory


what do i do?? i can see libpgplot.so is present in the directory...

also, how and where do you find X11 libraries on fedora 10? is it already installed? if not where do i get them?

thanks!

p.s: i am new to linux
 
Old 01-15-2009, 02:42 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Doing the command './pgdemo' , pgdemo will look
for libpgplot.so in the "LD_LIBRARY_PATH" only,
which probably is /lib/, /usr/lib/, /usr/local/lib.

'su' .. 'make install' will install the libs, etc.
in /usr/local/ and you wiil be able to use ./pgdemo .
....
'rpm -qa | grep libX11' will show installed libX11 .
'rpm -ql libX11' will display the files.
....
 
Old 01-15-2009, 02:44 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Doing the command './pgdemo' , pgdemo will look
for libpgplot.so in the "LD_LIBRARY_PATH" only,
which probably is /lib/, /usr/lib/, /usr/local/lib.

'su' .. 'make install' will install the libs, etc.
in /usr/local/ and you wiil be able to use ./pgdemo .
....
'rpm -qa | grep libX11' will show installed libX11 .
'rpm -ql libX11' will display the files.
....
 
Old 01-16-2009, 02:38 AM   #4
pratyuze
LQ Newbie
 
Registered: Jan 2009
Posts: 16

Original Poster
Rep: Reputation: 0
but libpgplot.so is in the same directory from where i am trying to execute ./pgdemo. isnt tht supposed to work?

and could you be more specific about the use of "make install" please? i logged in as the super user. but is there a particular directory where i go to execute make install? i am not sure if i have understood you correct. when i type in make install, it says make: ***No rule to make target 'install'. Stop.


Thanks
 
Old 01-16-2009, 10:08 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
but libpgplot.so is in the same directory from where i am
trying to execute ./pgdemo. isnt tht supposed to work?
No, see # 3.
....

I guess, you will have a 'Makefile' in pgplot/
( the top directory )
May be, you will run 'make install' in that directory.

Or this
'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/pratyuze/ \
pgplot/"path-to-directory-with-libpgplot.so"/
( replace everything with the actual path )
to have libpgplot.so in a traceable path.

And finally this option : cp libpgplot.so /usr/local/lib

One of the above options should work.
....

Last edited by knudfl; 01-16-2009 at 10:53 AM.
 
  


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
Pgplot mghuffman Linux - Software 15 03-04-2010 08:27 AM
How to call PGPLOT function in FORTRAN code? lengyue Linux - Software 26 12-09-2009 05:36 AM
install pgplot on Red Hat 3.4.3-9.EL4 lengyue Linux - Software 3 09-09-2008 03:59 AM
PGPLOT&can not find libpng lengyue Linux - Software 1 08-16-2008 12:00 PM

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

All times are GMT -5. The time now is 12:09 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