²é¿´: 708  |  »Ø¸´: 2

hakuna

ľ³æ (ÖªÃû×÷¼Ò)


[½»Á÷] ¡¾ÇóÖú¡¿TB-LMTO-ASA±àÒëʱµÄlibpgplot.aÎÊÌâ

×î½üÔÚÍæ¸öÀϳÌÐòTB-MLTO-ASA£¬±àÒëʱÓöµ½¿âÎļþlibpgplot.a£¬ËÑÁËÀϰëÌìҲûÄÜÕÒµ½£¬SUSEϵͳ²»´øÕâ¸ö£¬ÍøÉÏҲûÕÒµ½£¬Èç¹û°ÑPGFLAGS= -lX11 -lm /usr/local/server/pgplot/AIX/libpgplot.a×¢Ê͵ô£¬±àÒë¸Õ¿ªÊ¼¾ÍÍ˳öÁË£¬·µ»ØÒ»´ó¶ÑÎÊÌâ¡£
ÄÇλ¹Äµ·¹ýÕâ¸ö£¬Ö¸µãһϣ¬ÏÈл¹ýÁË¡£
±¾ÈËÓÃifort+icc/SUSE¸É»î.
»Ø¸´´ËÂ¥

» ²ÂÄãϲ»¶

» ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:

» ÇÀ½ð±ÒÀ²£¡»ØÌû¾Í¿ÉÒԵõ½:

²é¿´È«²¿É¢½ðÌù

ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

ÈñÀûµÄË鯬

ľ³æ (ÕýʽдÊÖ)


¡ï ¡ï ¡ï
Сľ³æ(½ð±Ò+0.5):¸ø¸öºì°ü£¬Ð»Ð»»ØÌû½»Á÷
zzy870720z(½ð±Ò+2): ллָ½Ì 2011-03-07 15:23:56
hakuna(½ð±Ò+50): ллÌṩÐÅÏ¢£¡ 2011-03-07 15:24:47
//------------------------------//
                //  PGPLOT quick installation   //
                //         on a Linux computer        //
                //------------------------------//

0/ Make sure the devel package for X11 library is installed on your computer.
For instance, on a Mandriva 2010 Spring Linux distribution, it is the package libx11_6-devel; on Ubuntu 7.10, it is libx11-dev.

1/ Get the PGPLOT source tar file from http://astro.caltech.edu/~tjp/pgplot/


2/ Execute the following, as super-user (su) :

cp pgplot5.2.tar.gz /usr/local/src

cd /usr/local/src           # directory for the sources

tar -zxvf pgplot5.2.tar.gz

cd pgplot

mkdir /usr/local/pgplot          # create the directory for the binaries and font files

cd !$

cp /usr/local/src/pgplot/drivers.list .

emacs drivers.list &             # select (by removing the ! sign) the drivers to be
                          # used for pgplot outputs: typically:
                          # PSDRIV 1,2,3,4 : EPS figures
                          # XWDRIV 1,2 : X-window output (requires that the
                          #    package libxorg-x11-devel or an equivalent one
                          #    is installed on your system)

# ----- Optional part : to increase the number of simultaneous devices -------
#                           from 8 to 32

cd /usr/local/src/pgplot/src

cp grpckg1.inc grpckg1.inc_backup  # to keep a copy of the original source file
cp pgplot.inc pgplot.inc_backup    #

emacs grpckg1.inc & # Replace " PARAMETER (GRIMAX = 8) " in line 29
                    #    by   " PARAMETER (GRIMAX = 32) "
                    
emacs pgplot.inc &  # Replace " PARAMETER (PGMAXD=8) " in line 7
                    #    by   " PARAMETER (PGMAXD=32) "               

cd /usr/local/pgplot

# ---------------------- End of optional part ---------------------------------

/usr/local/src/pgplot/makemake /usr/local/src/pgplot linux g77_gcc  # prepares
                          # the makefile for linux system + gcc compiler

# ---------------- Special treatment for gcc 4.* ------------------
#
# If you are using the gcc 4.0 (or above) compilers (i.e. gfortran instead
# of g77), perform the following:

emacs makefile & # Replace "FCOMPL=g77"       in line 25
                 #   by    "FCOMPL=gfortran"
                 #
                 # Replace "FFLAGC=-u -Wall -fPIC -O" in line 26
                 #   by    "FFLAGC=-ffixed-form -ffixed-line-length-none -u -Wall -fPIC -O"

# ---------------- End of special treatment for gcc 4.* ----------------------

make                          # compiles the Fortran part

make cpg                  # compiles the C part (binding to Fortran)

emacs /usr/local/src/pgplot/makehtml &        # this file needs to be edited to
                          #  replace the first line by
                          #         #!/usr/bin/perl
make pgplot.html          #  produces the html documentation       

make clean

cd /usr/local/lib          #  libraries for local installations

ln -s /usr/local/pgplot/libpgplot.a libpgplot.a           # F77 static library

ln -s /usr/local/pgplot/libcpgplot.a libcpgplot.a  # C static library

cp /usr/local/pgplot/libpgplot.so .                     # dynamic (runtine) library

emacs /etc/ld.so.conf &          # edit this file to add the line /usr/local/lib

/sbin/ldconfig -v          # updates the path for runtime libraries

ln -s /usr/local/pgplot/cpgplot.h /usr/local/include/cpgplot.h


3/ Each end user should type (or put in his .bashrc or .tcshrc file):

# if csh or tcsh shells:
setenv PGPLOT_DIR /usr/local/pgplot/   
setenv PGPLOT_DEV /xwin          # prefered output device, an alternative is /xserve

# if bash shell:
PGPLOT_DIR=/usr/local/pgplot/
export PGPLOT_DIR
PGPLOT_DEV=/xwin          # prefered output device, an alternative is /xserve
export PGPLOT_DEV

cd /usr/local/pgplot

./pgdemo1                   # it should work !
http://www.lorene.obspm.fr/pgplot_quick.txt
2Â¥2011-03-07 12:57:47
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

ÁúÓ¨23333

гæ (³õÈëÎÄ̳)


¡ï
Сľ³æ: ½ð±Ò+0.5, ¸ø¸öºì°ü£¬Ð»Ð»»ØÌû
Õâ¸ö³ÌÐò¿ÉÒÔÔÚÄÄÀïÏÂÔØ°¡£¿ÇóÇó¸ø¸öÁ´½Ó°É
3Â¥2022-03-24 20:11:38
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ hakuna µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] 286·ÖÈ˹¤ÖÇÄÜרҵÇëÇóµ÷¼ÁÔ¸Òâ¿ç¿¼£¡ +4 lemonzzn 2026-03-17 8/400 2026-03-21 22:49 by lemonzzn
[¿¼ÑÐ] »¯Ñ§¹¤³Ì321·ÖÇóµ÷¼Á +18 ´óÃ×·¹£¡ 2026-03-15 22/1100 2026-03-21 20:20 by HHÁìÐä
[¿¼ÑÐ] 299Çóµ÷¼Á +5 shxchem 2026-03-20 7/350 2026-03-21 17:09 by ColorlessPI
[»ù½ðÉêÇë] ѧУÒѾ­Ìá½»µ½NSFC£¬»¹ÄÜÐÞ¸ÄÂ𣿠40+4 babangida 2026-03-19 9/450 2026-03-21 16:12 by babangida
[¿¼ÑÐ] 0805²ÄÁÏ320Çóµ÷¼Á +3 ÉÎïÓï 2026-03-20 3/150 2026-03-21 15:46 by Î޼ʵIJÝÔ­
[¿¼ÑÐ] Çóµ÷¼Á +6 Mqqqqqq 2026-03-19 6/300 2026-03-21 08:04 by JourneyLucky
[¿¼ÑÐ] ³õʼ318·ÖÇóµ÷¼Á£¨Óй¤×÷¾­Ñ飩 +3 1911236844 2026-03-17 3/150 2026-03-21 02:33 by JourneyLucky
[¿¼ÑÐ] 307Çóµ÷¼Á +10 ÀäóÏ123 2026-03-17 10/500 2026-03-21 01:54 by JourneyLucky
[¿¼ÑÐ] 330Çóµ÷¼Á +4 С²Ä»¯±¾¿Æ 2026-03-18 4/200 2026-03-20 23:13 by JourneyLucky
[¿¼ÑÐ] 323Çóµ÷¼Á +3 ÍÝСͰ 2026-03-18 3/150 2026-03-20 22:54 by JourneyLucky
[¿¼ÑÐ] 290Çóµ÷¼Á +7 ^O^Ø¿ 2026-03-19 7/350 2026-03-20 21:43 by JourneyLucky
[¿¼ÑÐ] 295¸´ÊÔµ÷¼Á +8 ¼òľChuFront 2026-03-19 8/400 2026-03-20 20:44 by zhukairuo
[¿¼ÑÐ] Çóµ÷¼Á +3 @taotao 2026-03-20 3/150 2026-03-20 19:35 by JourneyLucky
[¿¼ÑÐ] ²ÄÁÏѧ˶318Çóµ÷¼Á +5 February_Feb 2026-03-19 5/250 2026-03-19 23:51 by 23Postgrad
[¿¼ÑÐ] ±¾¿ÆÖ£ÖÝ´óѧÎïÀíѧԺ£¬Ò»Ö¾Ô¸»ª¿Æ070200ѧ˶£¬346Çóµ÷¼Á +4 ÎÒ²»ÊÇÒ»¸ù´Ð 2026-03-18 4/200 2026-03-19 09:11 by ¸¡ÔÆ166
[¿¼ÑÐ] 085601ר˶£¬×Ü·Ö342Çóµ÷¼Á£¬µØÇø²»ÏÞ +5 share_joy 2026-03-16 5/250 2026-03-18 14:48 by haxia
[¿¼ÑÐ] 334Çóµ÷¼Á +3 Ö¾´æ¸ßÔ¶ÒâÔÚ»úÐ 2026-03-16 3/150 2026-03-18 08:34 by lm4875102
[¿¼ÑÐ] 301Çóµ÷¼Á +4 A_JiXing 2026-03-16 4/200 2026-03-17 17:32 by ruiyingmiao
[¿¼ÑÐ] 290Çóµ÷¼Á +3 p asserby. 2026-03-15 4/200 2026-03-17 16:35 by wangkm
[¿¼ÑÐ] Ò»Ö¾Ô¸ËÕÖÝ´óѧ²ÄÁϹ¤³Ì£¨085601£©×¨Ë¶ÓпÆÑо­ÀúÈýÏî¹ú½±Á½¸öʵÓÃÐÍרÀûÒ»ÏîÊ¡¼¶Á¢Ïî +6 ´ó»ðɽС»ðɽ 2026-03-16 8/400 2026-03-17 15:05 by ÎÞи¿É»÷111
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û