Binary release for Linux
It is nice (and for some customers essential) to have a binary
release. For Linux this is done by creating an RPM (Red Hat
Package). For each of the tarballs the RPM is created with a
single command run as root:
To run the whole procedure, you can type this:
$ su
Password: secret
# cd $ISIS_DIR/releases/0.99.4
# rpm -ta genie-0.99.4.tar.gz
# rpm -ta aladdin-0.60.tar.gz
# rpm -ta afreet-2.2.tar.gz
# rpm -ta MPgenie-0.1.tar.gz
# exit
$ |
after which you should copy the RPMs to the release area:
cp /usr/src/redhat/SRPMS/genie-0.99.4-0.src.rpm $ISIS_DIR/releases/0.99.4
cp /usr/src/redhat/RPMS/i386/genie-0.99.4-0.i386.rpm $ISIS_DIR/releases/0.99.4
cp /usr/src/redhat/SRPMS/aladdin-0.60-0.src.rpm $ISIS_DIR/releases/0.99.4
cp /usr/src/redhat/RPMS/i386/aladdin-0.60-0.i386.rpm $ISIS_DIR/releases/0.99.4
cp /usr/src/redhat/SRPMS/afreet-2.2-0.src.rpm $ISIS_DIR/releases/0.99.4
cp /usr/src/redhat/RPMS/i386/afreet-2.2-0.i386.rpm $ISIS_DIR/releases/0.99.4
cp /usr/src/redhat/SRPMS/MPgenie-0.1-0.src.rpm $ISIS_DIR/releases/0.99.4
cp /usr/src/redhat/RPMS/i386/MPgenie-0.1-0.i386.rpm $ISIS_DIR/releases/0.99.4
cp /usr/src/redhat/SRPMS/chroMX-0.2-0.src.rpm $ISIS_DIR/releases/0.99.4
cp /usr/src/redhat/RPMS/i386/chroMX-0.2-0.i386.rpm $ISIS_DIR/releases/0.99.4 |
Now for LANL users you can do an installation into the
directory $ISIS_DIR/builds/0.99.4/$CONFIG_GUESS, and then link
$ISIS_DIR/builds/stable to that. Here is the syntax you could
use (once for each different architecture, as identified by
having different $CONFIG_GUESS strings:
isis-build-from-tarball.sh /tmp/tmpspace $ISIS_DIR/builds/0.99.4/$CONFIG_GUESS $ISIS_DIR/builds/0.99.4/$CONFIG_GUESS $ISIS_DIR/releases/0.99.4/genie-0.99.4.tar.gz
|
ISIS_INFRA SCRIPTS FOR BUILDING/INSTALLING LINUX RPMS
Some simple build/install scripts have been added to isis-infra
isis-infra/build-scripts/
isis-build-rpms-complete.sh # set up a clean environment and
# build tarballs for genie, aladdin, afreet
isis-build-rpms-prepare.sh # build the RPMs (need to be root)
isis-install-rpms.sh # goes into top level of distribution cdrom
RPM build procedure is, e.g.,
prompt> mkdir /tmp/isis-release-dir
prompt> export ISIS_RELEASE_DIR=/tmp/isis-release-dir
prompt> cd $ISIS_RELEASE_DIR
prompt> /n/projects/isis/scripts/isis-build-rpms-prepare.sh
prompt> su
[root]# /n/projects/isis/scripts/isis-build-rpms-complete.sh
[root]# exit
prompt> cp *.rpm /n/projects/isis/releases/RPM/0.99.8
notes:
* at the moment, isis-build-rpms-prepare.sh looks for ISIS 0.99.8,
so this script should be more automated to account for future versions.
* isis-build-rpms-complete.sh assumes /usr/src/redhat/RPMS/i386
only contains RPMs for the most recent version of genie, aladdin,
afreet. if older RPMs exist, they might get copied around. this
isn't much of a problem, as file names contain version numbers.
* 3rd party RPMs common to all versions of ISIS may be found in
/n/projects/isis/releases/RPM/common. The version of GDAL
needed for ISIS 0.99.8 has changed from that required for 0.99.6,
so you will find GDAL RPMs in /n/projects/isis/releases/RPM/0.99.x
It would also be nice t ohave an RPM for the opt package.
* I have seen the Java JDK turn up in various places on Linux machines.
Installing the aladdin RPM might require a hack to
/usr/share/aladdin to get it running.
RPM install procedure is,
prompt> usermount # or however you choose to load your cd
prompt> cd /mnt/cdrom/
prompt> su
[root]# ./isis-install-rpms.sh
[root]# exit
note:
* RPMs are installed in /usr
* if you have an older version of GENIE (<0.99.6), you should
"rpm --erase libafreet" as root.
The Redhat Linux RPMs for ISIS are available in
/n/projects/isis/releases/RPM
0.99.6:
afreet-2.8-0.i386.rpm
aladdin-0.64-0.i386.rpm
gdal-1.1.5_lanl_2002_01_31-1.i386.rpm
genie-0.99.6-0.i386.rpm
libafreet-0.5-0.i386.rpm
0.99.8:
afreet-2.9-0.i386.rpm
aladdin-0.65-0.i386.rpm
gdal-1.1.8-1.i386.rpm
genie-0.99.8-0.i386.rpm
common:
cfitsio-2036-0.i386.rpm
idlastro-2001-07-30.tar.gz
jdk-1.3.1_02.i386.rpm
libhfa-0.4-0.i386.rpm