Linux - NewbieThis 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
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to install pgplot on ubuntu 9.10 but I have some errors
after editing makefile in line 880
replaced "pndriv.o : ./png.h ./pngconf.h ./zlib.h ./zconf.h" by
"pndriv.o : /usr/local/include/png.h /usr/local/include/pngconf.h /usr/local/include/zlib.h /usr/local/include/zconf.h"
and running code "make" I get this error :
No rule to make target `/usr/local/include/png.h', needed by `pndriv.o'. Stop.
also I tried to uncomment this line got another error :
make: *** [pndriv.o] Error 1
and also replace "pndriv.o : ./png.h ./pngconf.h ./zlib.h ./zconf.h" by "pndrive.o : "
what should I do ?
Well the first question would be why alter the file to not use the locally stored files?
The second would be, the error is obvious and you need to alter other parts of the makefile
to now provide details on how to make/use /usr/local/include/png.h
Alternatively, use the Package Manager = Synaptic
for package install. Very few packages are not found
using ether 'sudo apt-get install' or 'synaptic' :
About 25,000 packages are available.
.....
Hi all,
I tried to install pgplot on my Ubuntu 9.10 with the recommended command:
sudo apt-get install pgplot5
It succeeded to install it, but I cannot find any libpgplot.a to link to.
Can anyone help?
Best.
Hi all, I'm back with another question.
In order to direct the output from pgplot to the xwindow system, I have to give a link to the X11 library, as:
f77 -o example example.f -L /usr/lib -lpgplot -L /usr/share/X11 -lX11
However, I do not find a proper X11 library on my system. I have to say that I use Ubuntu 9.10, and benefit the whole graphic features included.
When trying to locate X11 directories, I receive this:
However, none of these paths are suitable to give the link to X11 when compiling with X11.
I also have to add, when I compile like this:
f77 -o example example.f -L /usr/lib -lpgplot
I can happily have the output as postscript or png file.
hi ehsan
I think it can help you if link related library and add it's address to your bashrc
Quote:
Originally Posted by moravveji
Hi all, I'm back with another question.
In order to direct the output from pgplot to the xwindow system, I have to give a link to the X11 library, as:
f77 -o example example.f -L /usr/lib -lpgplot -L /usr/share/X11 -lX11
However, I do not find a proper X11 library on my system. I have to say that I use Ubuntu 9.10, and benefit the whole graphic features included.
When trying to locate X11 directories, I receive this:
However, none of these paths are suitable to give the link to X11 when compiling with X11.
I also have to add, when I compile like this:
f77 -o example example.f -L /usr/lib -lpgplot
I can happily have the output as postscript or png file.
Hi all, and thanks so much for your helps.
I already had libx11-dev installed, and found the path to libx11.so at /usr/lib.
I successfully link to this library as
f77 -o simple_ehsan simple.f -L /usr/lib -lpgplot -L /usr/lib -lX11
But, when running the code, which in return calls pgplot, I receive the following error message:
ehsan@ehsan:~/programs/pgmoog/testprog$ ./simple_ehsan
Graphics device/type (? to see list, default /xwin): /xwin
PGPLOT /xw: cannot connect to X server [0]
I also receive the same complaint when trying to run /usr/bin/xclock:
root@ehsan:/usr/bin# ./xclock
Error: Can't open display: 0
I cannot figure out with the on-screen display problem I have. I also have to mention that I'm an Ubuntu newbie.
Best wishes.
I've installed pgplot-5.2 but I can not run it the first time got this error:
error while loading shared libraries: libXdcmp.so.6: cannot open shared object file: No such file or directory
so I've installed this package :xorg-x11-libXdcmp-7.4-6.1.x86_64.rpm
yet I have some problem : error while loading shared libraries: libXdmcp.so.6: wrong ELF class: ELFCLASS64
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.