Welcome to iraf.net Thursday, March 28 2024 @ 09:29 PM GMT
raph38 |
08/28/2014 11:15AM (Read 2469 times)
|
|
|
Status: offline
Registered: 05/26/2014
Posts: 3
|
I have been assigned the task to install iraf on a number of ubuntu 14.04 machines, if possible in an automatic fashion, at the same time as the machines get installed.
I have attempted to build packages that would install all files in the proper system location and failed (I can't even seem to get the thing to build properly however I try)
If I try following the binary tarball route, "I am installing for the First Time"
step 1 is easily doable,
step 2 is trivial
step 3 has 2 issues
- the manual should state the script is "install.csh"
- I can't go and press "enter" 12 times on those machines which are located in all corners of the lab
(doing remote reboot and pxe instalaltions here)
any advice ?
|
|
|
|
favilac |
08/29/2014 03:18PM
|
|
|
Status: offline
Registered: 12/16/2005
Posts: 10
|
|
|
|
|
fitz |
08/29/2014 03:53PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
The README in the ftp archive wasn't updated properly from the earlier release, the real path to the install script for v2.16.1 is $iraf/install and it is now a Bash script. Responding to prompts automatically is doable in a script, e.g.
PHP Formatted Code #!/bin/csh
set dist = "ftp://iraf.noao.edu/iraf/v216/PCIX/iraf-linux.tar.gz"
wget -O /tmp /iraf -linux .tar .gz $dist # download the distro
mkdir /iraf /iraf /iraf # create iraf dir and unpack
cd /iraf /iraf
tar zxf /tmp /iraf -linux .tar .gz
$iraf/install --system << EOF_INSTALL # execute install w/ newlines for prompts
EOF_INSTALL
cd extern # install an external package
./configure # need once per install
make fitsutil # as other packages as desired
Note however that in this example script you're creating IRAF in /iraf and doing a system-wide install, so the script must be executed as root or with 'sudo' which also means the iraf tree will be owned by root as well. An 'iraf' account isn't required and in the latest release it's possible to do a non-root install as well. You could modify this script as needed and then simply execute it on each machine to automate the whole process.
|
|
|
|
| |
|
Content generated in: 0.15 seconds |
|