PGPLOT and settings under ubuntu-general Linux technology-Linux programming and kernel information. The following is a detailed description. 1, source file: http://www.astro.caltech.edu /~ Tjp/pgplot/
2. decompress the package to the directory ~ /Desktop/pgplot/(whatever you want)
3. Create a new directory. If it is only for your own use ~ /Pgplot/; if you want all users to use it, create the/usr/share/pgplot directory.
4. Start Compilation:
$ Cd/usr/share/pgplot/# (installed in this directory)
$ Cp ~ Desktop/pgplot/drivers. list./# (copy drivers. list in the source file to the installation directory)
$ Vi drivers. list # (modify this file and select the driver you want to install)
# In the drivers. list file, select the first few lines! Remove it.
GIDRIV 1/GIF-format file, landscape
GIDRIV 2/VGIF-format file, portrait
NUDRIV 0/NULL Null device (no output) Std F77
PSDRIV 1/PS PostScript printers, monochrome, landscape Std F77
PSDRIV 2/VPS Postscript printers, monochrome, portrait Std F77
PSDRIV 3/CPS PostScript printers, color, landscape Std F77
PSDRIV 4/VCPS PostScript printers, color, portrait Std F77
XWDRIV 1/XWINDOW Workstations running X Window System C
XWDRIV 2/XSERVE Persistent window on X Window System C
#################
$ Sudo ~ /Desktop/pgplo/makemake ~ /Desktop/pgplot linux g77_gcc
#### The parameters following makemake are the directory of the source file, the operating system, and the compiler (when this defect occurs, makemake automatically prompts you that compilers are optional) after makemake is complete, the following files will be generated:
Drivers. list
Grexec. f
Prpckgl. inc
Makefile
Pgplot. inc
Rgb.txt
Then $ source. bashrc (NOTE: For other shells, You can google the corresponding statements of the above command. for example, if you are using c shell, you can change the above command to c shell format and add it. cshrc file)
6. Compile the file command: $ g77 filename. f $ PGPLOT_LIB #### generate an executable file named a. out.
######### Or $ g77-o outname filename. f $ PGPLOT_LIB #### compile and generate an outname executable file.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service