Results 1 to 9 of 9

Thread: problem installing pgplot

  1. #1
    Join Date
    Jan 2017
    Beans
    4

    problem installing pgplot

    Hi everybody,
    I am trying to install pgplot on my laptop. I am using the instructions from this site:
    http://www.astro.caltech.edu/~tjp/pg...tall-unix.html

    However, when I come to the last step, and execute the make command, I get this error:

    g77 -c -Wall -O /home/soham/Desktop/pgplot/src/pgarro.f
    make: g77: Command not found
    makefile:109: recipe for target 'pgarro.o' failed
    make: *** [pgarro.o] Error 127

    I am very new to linux,and have no idea what the problem is. I have gfortran installed, could it be that I need to install some older g77 compiler? Or does this signify that I do not have GCC on my system, and need to download and install it? My laptop runs Ubuntu 16.04 LTS, if that is any help.
    Any suggestions will be greatly appreciated. Thanks in advance.

  2. #2
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,617
    Distro
    Ubuntu

    Re: problem installing pgplot

    you might need build-essential, f2c and or ratfor

  3. #3
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    5,294
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: problem installing pgplot

    pgplot is in the repositories for Ubuntu 16.04. Just run
    Code:
    sudo apt install pgplot5
    It worked for me, it will give both fortran and C interfaces. libpgplot-perl and ruby-pgplot give two more interfaces.

  4. #4
    Join Date
    Jan 2017
    Beans
    4

    Re: problem installing pgplot

    Ok, I will try to look those up, and see if that helps.

  5. #5
    Join Date
    Jan 2017
    Beans
    4

    Re: problem installing pgplot

    Quote Originally Posted by Impavidus View Post
    pgplot is in the repositories for Ubuntu 16.04. Just run
    Code:
    sudo apt install pgplot5
    It worked for me, it will give both fortran and C interfaces. libpgplot-perl and ruby-pgplot give two more interfaces.
    Unfortunately that won't work for me. I have already tried installing pgplot5, but I need it to run ORTEP, an application which has not been updated in a long time. If I try to make my source code of ORTEP with pgplot5, it returns a list of "undefined reference to *" kind of errors.

  6. #6
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    15,113
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: problem installing pgplot

    Start by installing build-essential so you have a compiler and the like. If that isn't sufficient to get it to compile, then try
    Code:
    sudo apt-get build-dep plplot5
    and Ubuntu will install any needed development libraries and headers.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  7. #7
    Join Date
    Apr 2012
    Beans
    7,256

    Re: problem installing pgplot

    FWIW it seems to be happy if you configure it for g77_gcc

    Code:
    ../src/pgplot/makemake ../src/pgplot linux g77_gcc
    and then edit the makefile to change g77 to gfortran

    Code:
    .
    .
    .
    #
    # Fortran compiler and compilation flags
    #
    FCOMPL=gfortran
    FFLAGC=-u -Wall -fPIC -O
    FFLAGD=-fno-backslash
    #
    # C compiler and compilation flags
    #
    .
    .
    .
    Obviously install gfortran from the repository if you haven't already done so

  8. #8
    Join Date
    Jan 2017
    Beans
    4

    Re: problem installing pgplot

    Quote Originally Posted by steeldriver View Post
    FWIW it seems to be happy if you configure it for g77_gcc

    Code:
    ../src/pgplot/makemake ../src/pgplot linux g77_gcc
    and then edit the makefile to change g77 to gfortran

    Code:
    .
    .
    .
    #
    # Fortran compiler and compilation flags
    #
    FCOMPL=gfortran
    FFLAGC=-u -Wall -fPIC -O
    FFLAGD=-fno-backslash
    #
    # C compiler and compilation flags
    #
    .
    .
    .
    Obviously install gfortran from the repository if you haven't already done so
    I tried this, and it looked like it would work smoothly, and then suddenly, there was a new error :
    makefile:662: recipe for target 'mfdriv.o' failed
    make: *** [mfdriv.o] Error 1

    Again, I have no idea what's wrong. Can anybody help?
    Last edited by honorableraven; January 30th, 2017 at 07:22 AM.

  9. #9
    Join Date
    Apr 2012
    Beans
    7,256

    Re: problem installing pgplot

    Did you edit the drivers.list file? do you specifically need

    Code:
    MFDRIV 0 /FILE      PGPLOT graphics metafile
    If not, comment it out (!) and try again

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •