Find the answer to your Linux question:
Results 1 to 4 of 4
I have searched various websites and tried many times to install pgplot, but still cannot get it to install/work correctly. My most current try to get this program to install ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2013
    Posts
    2

    Help installing pgplot


    I have searched various websites and tried many times to install pgplot, but still cannot get it to install/work correctly.

    My most current try to get this program to install requires using g77, but even though I found g77 - 3.4.6 I cannot get that to install correctly because there are "dependency problems". I would assume this problem is with the most recent version of gcc I have installed.

    So, I would appreciate it greatly if someone could walk me through how to install pgplot or install g77.

  2. #2
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,482
    Open up the software manager, enter your password and search for pgplot. I'm guessing that it is pgplot5 that you need to install.
    What do we want?
    Time machines!

    When do we want 'em?
    Doesn't really matter does it!?


    Conkybots: Interactive plugins for your Conkys!

  3. #3
    Just Joined!
    Join Date
    Feb 2013
    Posts
    2
    I have tried that and still no luck. Is there some way to test whether or not pgplot is installed?

    specifically I am running a fortran file which cannot find the pgplot functions.

    What I am doing is typing:

    gfortran file.f

    ( I then get the reply)

    /tmp/ccP3twV7.o: In function `plotfit_':
    orbits.f.text+0x14f4): undefined reference to `pgbegin_'
    orbits.f.text+0x151e): undefined reference to `pgenv_'
    orbits.f.text+0x1532): undefined reference to `pgqlw_'
    collect2: error: ld returned 1 exit status

  4. #4
    drl
    drl is offline
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Location
    Saint Paul, MN, USA / CentOS, Debian, Slackware, {Free, Open, Net}BSD, Solaris
    Posts
    1,283
    Hi.

    "...as with most UNIX systems, you link a program with PGPLOT with a command like the following:

    Code:
    f77 -o example example.f -L/usr/local/pgplot -lpgplot
    "
    Excerpt from PGPLOT Frequently Asked Questions

    Assuming that PGPLOT is installed, the important information here is that the library and possibly the location need to be specified. I think that's all you'll to add to your gfortran command. Perform a few experiments.

    Best wishes ... cheers, drl
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

Posting Permissions

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