FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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
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
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 8,581
Rep:
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 ).
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.