next up previous contents index
Next: Installing CERNLIB software Up: Installing CERNLIB software Previous: Installing CERNLIB when

Installing CERNLIB without asis

If the CERN library directory tree is not accessible over NFS  or AFS  , we must first retrieve the compressed tar files containing the source (cernsrc.tar.Z) and the installation scripts (cernmgr.tar.Z). gif

We first connect to the asis server, as shown below.

Retrieving the CERNLIB sources and installation scripts

zfatal:/cernlib/tmp (132) ftp asisftp.cern.ch
Connected to asisftp.cern.ch.
220 asisftp FTP server (Version 2.0WU(14) Fri Sep 17 15:39:37 MET DST 1993) ready
.
Name (asisftp.cern.ch:cernlib): anonymous
331 Guest login ok, send your complete e-mail address as password.
Password:
230-                   ________________________________________
230-                   Application Software Installation Server
230-                   ________________________________________
230-
230-   Welcome to the ASIS ftp server, developed by the CERN Computing and
230-   Networking Division to serve the High Energy Physics research community.
230-
230-   ftp clients may abort due to improper handling of such introductory
230-   messages. A dash (-) as the first character of your pw will suppress it.
230-
230-   The CERNlib software, located in the "cernlib" directory, is covered by
230-   CERN copyright. Before taking any material from this directory, please
230-   read the copyright notice "cernlib/copyright".
230-
230-
230-   Please contact cernlib@cernvm.cern.ch for site registration. General
230-   support questions should be addressed to asis-support@asis01.cern.ch. 
230-
230 Guest login ok, access restrictions apply.
ftp>cd cernlib/rs_aix32/93d/tar
250-
250- This directory contains compressed files of CERNlib release 93d for IBM/RS6
000
250-
250- Files ending in .tar.gz have been compressed using gzip. gzip/gunzip for
250- IBM/RS6000 are available in this directory in the gzip.tar file. Get this
250- first and untar in a directory in the search path. Also take a new copy of 

250- plitar; this will use gzip -d ( equivalent to gunzip ) to uncompress files
250- ending in .tar.gz.
250- 
250-
250 CWD command successful.
ftp> 

ftp> get plitar
200 PORT command successful.
150 Opening ASCII mode data connection for plitar (10951 bytes).
226 Transfer complete.
11262 bytes received in 0.06656 seconds (165.2 Kbytes/s)
ftp> get cernsrc.contents
200 PORT command successful.
150 Opening ASCII mode data connection for cernsrc.contents (22467 bytes).
226 Transfer complete.
22799 bytes received in 0.2305 seconds (96.6 Kbytes/s)
ftp> get cernmgr.contents
200 PORT command successful.
150 Opening ASCII mode data connection for cernmgr.contents (4937 bytes).
226 Transfer complete.
5016 bytes received in 0.01622 seconds (302 Kbytes/s)
ftp> bin

ftp> get cernmgr.tar.Z
200 PORT command successful.
150 Opening BINARY mode data connection for cernmgr.tar.Z (111289 bytes).
226 Transfer complete.
111289 bytes received in 0.7157 seconds (151.9 Kbytes/s)
ftp> get cernsrc.tar.Z
200 PORT command successful.
150 Opening BINARY mode data connection for cernsrc.tar.Z (19319023 bytes).
226 Transfer complete.
19319023 bytes received in 118.1 seconds (159.8 Kbytes/s)
ftp>

Having retrieved the installation kits, we now unpack using plitar  .

Unpacking the installation procedures

zfatal:/cernlib/tmp (133) ls -l
total 38048
-rw-r--r--   1 cernlib  sys         4937 Feb  1 14:05 cernmgr.contents
-rw-r--r--   1 cernlib  sys       111289 Feb  1 14:06 cernmgr.tar.Z
-rw-r--r--   1 cernlib  sys        22467 Feb  1 14:05 cernsrc.contents
-rw-r--r--   1 cernlib  sys      19319023 Feb  1 14:08 cernsrc.tar.Z
-rw-r--r--   1 cernlib  sys        10951 Feb  1 14:05 plitar

zfatal:/cernlib/tmp (134) chmod +x plitar  # Make 'plitar' executable
zfatal:/cernlib/tmp (135) 
zfatal:/cernlib/tmp (135) plitar           # See if it gives us any help
##======================================================================
##
## PLITAR   93d.02  : CERN Program Library distribution utility
## Last update      : 93/10/28
##
##======================================================================
#
#  Syntax: plitar [ -n ] tar_options tar_file
#
#  plitar combines tar+compress utilities to pack/unpack the files being
#  part of the CERNlib distribution set; the corresponding _readme file
#  describes the contents of each of them. Please read it beforehand.
#  Location of tar files and the target install directory is controlled
#  through environment variables CERN, CERN_LEVEL and PLITMP
#
#  Examples:
#
#  plitar -n xvf cernlib   "non-execute" mode to display the action
#  plitar tvf cmz          examines the CMZ compressed-tar set
#  plitar xvf geant        installs the GEANT compressed-tar set
#
zfatal:/cernlib/tmp (136) echo $CERN
/cernlib/cern
zfatal:/cernlib/tmp (137) export CERN=/cernlib/kern
zfatal:/cernlib/tmp (138) mkdir $CERN
zfatal:/cernlib/tmp (139) echo $CERN_LEVEL
93d
zfatal:/cernlib/tmp (140) echo $PLITMP
/tmp
zfatal:/cernlib/tmp (141) export PLITMP=/cernlib/tmp
zfatal:/cernlib/tmp (145) plitar -n tvf cernmgr.tar.Z
##======================================================================
##
## PLITAR   93d.02  : CERN Program Library distribution utility
## Last update      : 93/10/28
##
##======================================================================
#
# -----------------------------------------------------------------------
# The 2 parameters CERN and PLITMP are environment variables
# which may be changed using setenv (in C-shell) or export (in sh,ksh)
# -----------------------------------------------------------------------
#
# Tar files expected in      PLITMP=/cernlib/tmp
# Target directory           CERN  =/cernlib/kern
#
         uncompress -vc /cernlib/tmp/cernmgr.tar.Z |  tar tvf  -


zfatal:/cernlib/tmp (146) plitar xvf cernmgr.tar.Z   
##======================================================================
##
## PLITAR   93d.02  : CERN Program Library distribution utility
## Last update      : 93/10/28
##
##======================================================================
#
# -----------------------------------------------------------------------
# The 2 parameters CERN and PLITMP are environment variables
# which may be changed using setenv (in C-shell) or export (in sh,ksh)
# -----------------------------------------------------------------------
#
# Tar files expected in      PLITMP=/cernlib/tmp
# Target directory           CERN  =/cernlib/kern
#
         uncompress -vc /cernlib/tmp/cernmgr.tar.Z |  tar xvf  -
x 93d/mgr/93d/irs.names, 4679 bytes, 10 media blocks.
x 93d/mgr/93d/dos.names, 3548 bytes, 7 media blocks.

...

x 93d/mgr/yexpand, 1230 bytes, 3 media blocks.

We can now unpack the source files in the same way.

Unpacking the source files

zfatal:/cernlib/tmp (150) plitar xvf cernsrc.tar.Z
##======================================================================
##
## PLITAR   93d.02  : CERN Program Library distribution utility
## Last update      : 93/10/28
##
##======================================================================
#
# -----------------------------------------------------------------------
# The 2 parameters CERN and PLITMP are environment variables
# which may be changed using setenv (in C-shell) or export (in sh,ksh)
# -----------------------------------------------------------------------
#
# Tar files expected in      PLITMP=/cernlib/tmp
# Target directory           CERN  =/cernlib/kern
#
         uncompress -vc /cernlib/tmp/cernsrc.tar.Z |  tar xvf  -
x 93d/src/car/comis.cra, 393 bytes, 1 media blocks.
x 93d/src/car/wylbur.car, 1063629 bytes, 2078 media blocks.
x 93d/src/car/kernvax.car, 196447 bytes, 384 media blocks.
x 93d/src/car/ariadne.cra, 134 bytes, 1 media blocks.

...

x 93d/src/car/pawdemo.car, 784187 bytes, 1532 media blocks.
x 93d/src/car/kernsgi2.car is a symbolic link to kernsgi.car.
x 93d/src/car/isajet72.car, 1226674 bytes, 2396 media blocks.
x 93d/src/car/isajet72.cra, 152 bytes, 1 media blocks.
zfatal:/cernlib/tmp (151)

We now add the following commands to our profile.

Tailoring the .profile of the cernlib account

PATH=/cern/pro/bin:$PATH; export PATH

export CERN=/cernlib/cern
export CERN_LEVEL=93d
export PLISTA=DEV
. $CERN/$CERN_LEVEL/mgr/plienv.sh

We then reexecute the .profile and switch to the CERN manager directory.

Preparing to build the CERN software

. .profile

cd $CERN/$CERN_LEVEL/mgr

We now create 3 directories and 1 link and are then ready to start the installation.

Completing the pre-installation phase

zfatal:/cernlib/tmp (160) cd $CERN/$CERN_LEVEL    
zfatal:/cernlib/kern/93d (161) mkdir bin
zfatal:/cernlib/kern/93d (162) mkdir lib
zfatal:/cernlib/kern/93d (163) mkdir log
zfatal:/cernlib/kern/93d (164) mkdir doc
zfatal:/cernlib/kern/93d (165) 

zfatal:/cernlib/kern/93d (166) cd src
zfatal:/cernlib/kern/93d/src (165) ln -sf car cra
zfatal:/cernlib/kern/93d/src (166)

N.B. the source code of the package MPA is not available for distribution. For make all to work, the dummy link mpa.car in the src/car directory must be removed.

Removing dummy mpa.car file

rm /cernlib/kern/93d/src/car/mpa.car # as root if all else fails
touch /cernlib/kern/93d/src/car/mpa.car

We may now rebuild the entire CERN library using make all or one component, as shown below.

Building the module

zfatal:/cernlib/kern/93d/mgr (181) make -n fatmen
        [ "n" = "n" -o "n" = "bn" ] && make -n -f userlib -f grouplib -f /cernlib/kern/93d/mgr/mkf
/cernlib  -f /cernlib/kern/93d/mgr/mkf/geant fatmen \\ 
                             || make -n -f userlib -f grouplib -f /cernlib/kern/93d/mgr/mkf/cernlib  -f /cernlib/kern/93d/mgr/mkf/geant fatmen >>/cernlib/kern/93d/log/fatmen 2>&1
        makepack -p kuipc
        makepack -s -c kuipc
        makepack -o kuipc kuipc
        makepack -p fatmen
        makepack -s -c fatmen
        makepack -p cspack
        makepack -s cspack
        makepack -l packlib -c cspack
        makepack -p cdlib
        makepack -s cdlib
        makepack -l packlib -c cdlib
        makepack -p epio
        makepack -s epio
        makepack -l packlib -c epio
        makepack -p fatlib
        makepack -s fatlib
        makepack -l packlib -c fatlib
        makepack -p ffread
        makepack -s ffread
        makepack -l packlib -c ffread
        makepack -p hbook
        makepack -s hbook
        makepack -l packlib -c hbook
        makepack -p kapack
        makepack -s kapack
        makepack -l packlib -c kapack
        makepack -p kuip
        makepack -s kuip
        makepack -l packlib -c kuip
        makepack -p minuit
        makepack -s minuit
        makepack -l packlib -c minuit
        makepack -p zbook
        makepack -s zbook
        makepack -l packlib -c zbook
        makepack -p zebra
        makepack -s zebra
        makepack -l packlib -c zebra
        makepack -p kerngen
        makepack -s -c kerngen
        makepack -p kernnum
        makepack -s -c kernnum
        makepack -p kernasw
        makepack -s -c kernasw
        makepack -l kernlib
        makepack -l packlib
        makepack -o fatmen fatmen


Janne Saarela
Wed Mar 29 15:50:22 METDST 1995