PDA

View Full Version : [ubuntu] Trying to install pgplot



Tyson D
January 13th, 2010, 06:08 AM
im using these instructions on how to install pgplot on linux, g77_gcc

http://www.astro.caltech.edu/~tjp/pgplot/install-unix.html

im stuck at the ""Use `make' to compile the code"" step because i dont really understand what it is telling me to do.


ive tried typing:

make
make makefile

while in both the source and target directory and nothing happens just some error messages, im not sure at all on what to do, please help.

ajmorris
January 13th, 2010, 07:21 AM
hi there,
can you please post the contents of the Makefile from the source code you're trying to compile. For better legibility, could you please paste it in [code] envelops, or alternatively via pastebin. (at a quick glance of that installation doc you're using, the command 'makemake' in the "Create a makefile" stage should have created the Makefile for use with the compile.)


AJ

Tyson D
January 13th, 2010, 08:08 AM
i have written

makemake

and it did in fact create the makefile for the compiler, as for showing you what it is, its rather lengthy and i dont know how to envelop code or even know what pastebin is.

ajmorris
January 14th, 2010, 02:03 AM
i have written

makemake

and it did in fact create the makefile for the compiler, as for showing you what it is, its rather lengthy and i dont know how to envelop code or even know what pastebin is.

pastebin is a tool to paste large amounts of text. Its primarily used for places like IRC, but is useful also in situations such as this. go to http://pastebin.ca (http://pastebin.ca/). This will enable you to paste the contents of your Makefile, then you can paste the pastebin link in a reply to this thread.

Also, can you please paste here the error message you receive when running make?

AJ

Tyson D
January 16th, 2010, 06:25 AM
ok the url for my makefile is

http://pastebin.ca/1753233

im guessing putting the makefile in a code envelop would be more efficent then using pastebin so if someone could point me in the right direction on how to do that it would be much appreciated.

Tyson D
January 16th, 2010, 06:26 AM
also this is the error message that appears when i type

make

g77 -c -u -Wall -fPIC -O /usr/local/src/pgplot/src/pgarro.f
make: g77: Command not found
make: *** [pgarro.o] Error 127

ajmorris
January 16th, 2010, 12:32 PM
also this is the error message that appears when i type

make

g77 -c -u -Wall -fPIC -O /usr/local/src/pgplot/src/pgarro.f
make: g77: Command not found
make: *** [pgarro.o] Error 127

ah, you need to have the g77 runtime packages installed for gcc.
First make sure you have all the required packages installed for compiling in ubuntu:

sudo apt-get install build-essential automake checkinstall

also, im not sure whether the g77 runtime libraries are provided as part of the gcc install, if the make still fails with the same error after installing the above, try installing the gfortran package.


However, is there any reason you're using a custom compiled version of pgplot? there is one in the repositories.


im guessing putting the makefile in a code envelop would be more efficent then using pastebin so if someone could point me in the right direction on how to do that it would be much appreciated.

For code envelops, press the "#" button in the WYSIWYG post editor, or put "CODE" BCC tags around your code, i.e with square brackets.

Tyson D
January 16th, 2010, 07:51 PM
i already have gfortran installed

also this //usr/local/pgplot/src/pgarro.f does not exist on my sytem, if that helps any............

Tyson D
January 18th, 2010, 09:16 PM
bump