|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Building Public Domain SoftwareWe have a directory setup on maxwell (Sun) for downloading public domain software. This is called /maxwell/software/ftp/inprogress. We normally do not use the root account to download and build software. This is done using chandra account. After the software is configured, built and tested then you can become su and do the installations.The currently installed software, versions and where we got them from is documented in the following table. We need to make this a real HTML table and then upgrade the version numbers to the currentl versions. All the GNU software is obtained from prep.ai.mit.edu. Most of the software we download is the Tarred and Compressed format. The compression could be older .Z (Lempel-Ziv) or the .gz (Gnu Zip) format. We have GNU tar installed on all platforms that can read these compressed files directly. First we look at the table of contents of the distribution and make sure that the distribution gets unpacked into it's own directory. If not we create a subdirectory and move there before issuing the unpacking commands. For example to expand the emacs distribution we can use the following commands depending on the compression type. /local/bin/tar -ztf emacs.tar.gz /local/bin/tar -zxvf emacs.tar.gz /local/bin/tar -Zxvf emacs.tar.ZOnce the software is unpacked, we go to the subdirectory and read any README or INSTALL files in that distribution. GNU software is usually packages with self-configuring utilities. All you have to do is to run configure, make, test it and do a make install. Sometimes you may not have access to the latest gcc. You can force the config to use the system C compiler (cc), or any other environment variable by doing the following. $ setenv CC cc $ ./configureLook for the new files in the /local/bin area and if the installation has moved the older files to some other name delete them. You can then test this software as a normal user to make sure the protections and such are correct. If the program is a new addition to the system, tcsh would not have it in its hashed table. You can issue the command rehashto force the tcsh to rescan the executables in your path. You can also do a strip /local/bin/PROGNAME if the binary is too large and contains a lot of debugging symbol information. This is typically true of executables that are built with -g compiler option. Make sure any manual pages are installed. On some X applications, this involves issuing a specail make install-man command. Again on new software installations, the windex file which holds the pointers to all the man pages need to be updated on the Sun Solaris machines. The command to accomplish this is catman -w -M /usr/local/manAfter the software is installed on one machine, look in the make file to get the distribution clean for another platform. Usually it is accomplished by doing a make clean or make distclean. After the software is installed on all our supported platforms, we pack it up with the following command tar -zcvf file.tar.gz file and move it to the /newton/tmp1/src/ftp/pub area on newton. Make sure to delete any older versions of the software we may have lying around in the ftp area. This area is available for anonymous ftp or through the web. Several departments on campus get stuff from here.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||