LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
LinkBack Search this Thread
Old 08-19-2010, 07:46 AM   #1
yba
LQ Newbie
 
Registered: Aug 2010
Location: Shanghai, China
Distribution: e-mail
Posts: 8

Rep: Reputation: 0
how to install pgplot in Fedora13


I want to install pgplot on my PC. My Pc is running an intel i7-860. I install Fedora13 (X86_64 version). there is no g77_gcc in fedora13, it has only gfortran_gcc. I have edited the 'g77_gcc.conf' by copying it to'local.conf' and change 'g77' into 'gfortran', and follow all the installation instructions of pgplot. For examle, I did:
/usr/local/src/pgplot/makemake /usr/local/src/pgplot linux local.conf.
It seemly go through to the last step correctly, but the last step
'./pgdemo1' failed. It showes the same error message as other friends
showed in 2008 in Fedora10:
error while loading shared libraries: libpgplot.so: cannot open shared object file : No such file or directory

In fact it does exists, and if I do
'cp libpgplot.so /usr/local/lib',
it showes that the file already exists. I overwrite it, no use at all.
Still the same error message.
In google I find an item to teach 'how to install pgplot in 'gfortran_gcc',
I follow its instructions step by step, but at last, pgplot still does not work.
I am an old man, not familiar with computer. Could some friend help me to solve the problem.
Many thanks

yba
 
Old 08-19-2010, 06:53 PM   #2
RockDoctor
Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 802

Rep: Reputation: 156Reputation: 156
Code:
yum install pgplot
 
1 members found this post helpful.
Old 08-19-2010, 09:46 PM   #3
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,339

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by RockDoctor View Post
Code:
yum install pgplot
pgplot is not bundled with the standard repository, if you know of a repository that includes pgplot then that would be useful information for the OP.

gfortran provides backward compatibility with g77 and so I don't think that your problem is with the compiler.

I'm wondering if there are any file permission problems or was there a problem with SELinux?
 
1 members found this post helpful.
Old 08-20-2010, 02:05 AM   #4
John VV
Guru
 
Registered: Aug 2005
Location: Ann Arbor Mi.
Distribution: OpenSUSE 11.4 & Scientfic Linux 6.1
Posts: 6,750

Rep: Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623
is there a file called " libpgplot.so "
it should be in /usr/lib
BUT and this is most likely what happened
the software installed into
/usr/local
Fedora DOSE NOT USE /usr/local

i use " --prefix=/usr" always in the configure
or CHANGE the makefile's if a makefile program

look in /usr/local/lib and see if it is there
 
1 members found this post helpful.
Old 08-20-2010, 05:32 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 8,581

Rep: Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209
yba : Welcome to LQ. .. .. ..

You should try this : # yum search 77
Lots of F77 stuff, and the first hit is the f77 compiler :
"compat-gcc-34-g77.x86_64 : Fortran 77 ... compiler"
( # 'yum search gcc' will also show it.)

The easy way : # yum install pgplot
(libgfortran x86_64 4.4.4-10.fc13 is installed as dependency.)
... Indicates : it was compiled with gfortran ( too ).

The package 'pgplot' is in the 'rpmfusion-nonfree' repo.
http://rpmfusion.org/Configuration
http://download1.rpmfusion.org/free/...ble.noarch.rpm
http://download1.rpmfusion.org/nonfr...ble.noarch.rpm
..
Attached Images
File Type: jpg 2-perl-pgplot-make-test.jpg (11.7 KB, 4 views)
File Type: jpg perl-PGPLOT-make-test.jpg (12.5 KB, 1 views)

Last edited by knudfl; 08-20-2010 at 06:32 AM.
 
1 members found this post helpful.
Old 08-20-2010, 05:04 PM   #6
RockDoctor
Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 802

Rep: Reputation: 156Reputation: 156
Quote:
pgplot is not bundled with the standard repository, if you know of a repository that includes pgplot then that would be useful information for the OP.
My bad. I entered pgplot in the yumex search bar and saw it come up; didn't look at the repo (rpmfusion-nonfree, as indicated by knudfl). I always install the rpmfusion-free and rpmfusion-nonfree repos with Fedora.
 
1 members found this post helpful.
Old 09-03-2010, 03:04 PM   #7
fergalm
LQ Newbie
 
Registered: Sep 2010
Posts: 1

Rep: Reputation: 1
Ld_library_path

The most frequent problem with pgplot installs is not setting the LD_LIBRARY_PATH variable, which tells the OS where to go looking for shared object files (like libpgplot.so).

Add the following to the end of your .bashrc file
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:xyx
export LD_LIBRARY_PATH

where xyz is the actual directory where libpgplot.so is located.

Hope this helps.
 
Old 09-03-2010, 05:57 PM   #8
John VV
Guru
 
Registered: Aug 2005
Location: Ann Arbor Mi.
Distribution: OpenSUSE 11.4 & Scientfic Linux 6.1
Posts: 6,750

Rep: Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623
setting the "LD_LIBRARY_PATH"
only if you install it in a non standard location
fedora considers /usr/local as non standard

i normally install programs that I build on a partition that / is not on ( easy reinstall if i fubar the os)
such as /usr/DATA/suse or /usr/DATA/cent


because of this i very often need to set that PATH
fedora set it is ~/.bash_profile
or system wide in /etc/profile
 
  


Reply

Tags
fedora 13


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Fedora13 nfs problem jkim74 Fedora 2 07-26-2010 07:46 AM
[SOLVED] Can't install Fedora13 After Win7 install judoka Linux - General 4 07-05-2010 05:08 PM
[SOLVED] Upgrade from fedora12 to fedora13? Manish87 Linux - Newbie 4 07-02-2010 12:53 AM
Pgplot mghuffman Linux - Software 15 03-04-2010 09:27 AM
install pgplot on Red Hat 3.4.3-9.EL4 lengyue Linux - Software 3 09-09-2008 04:59 AM


All times are GMT -5. The time now is 06:04 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration