Installing problems for IRAF on OpenBSD/i386
velocity766 wrote on Apr 29, 2008
Installing problems for IRAF on OpenBSD/i386
#!/bin/sh
export iraf=/local/iraf
export dist=$(pwd)
rm -rf $iraf/iraf $iraf/irafbin
mkdir -p $iraf/iraf $iraf/irafbin/ $iraf/bin
cd $iraf/iraf
tar -xzf $dist/as.pcix.gen.gz
cd $iraf/iraf
mkdir $iraf/irafbin/bin.openbsd
ln -s $iraf/irafbin/bin.openbsd .
cd $iraf/irafbin/bin.openbsd
tar -xzf $dist/ib.rhux.x86.gz
cd $iraf/iraf/noao
mkdir $iraf/irafbin/noao.bin.openbsd
ln -s $iraf/irafbin/noao.bin.openbsd bin.openbsd
cd $iraf/irafbin/noao.bin.openbsd
tar -xzf $dist/nb.rhux.x86.gz
mv $iraf/iraf/unix/bin.redhat $iraf/iraf/unix/bin.openbsd
mv $iraf/iraf/unix/as.redhat $iraf/iraf/unix/as.openbsd
cd $iraf/iraf/unix/hlib
for file in cl.csh irafuser.csh install
do
ed -s $file <<"EOF"
1,$g/freebsd/s//openbsd/g
1,$g/endiif/s//endif/g
w
EOF
done
cd $iraf/iraf/unix/hlib
csh -fc "
source ./irafuser.csh
./install -r $iraf/iraf -i /tmp -b $iraf/bin
"
What is wrong because not work and i tyred to work for nothing.
Thank you
#!/bin/sh
export iraf=/local/iraf
export dist=$(pwd)
rm -rf $iraf/iraf $iraf/irafbin
mkdir -p $iraf/iraf $iraf/irafbin/ $iraf/bin
cd $iraf/iraf
tar -xzf $dist/as.pcix.gen.gz
cd $iraf/iraf
mkdir $iraf/irafbin/bin.openbsd
ln -s $iraf/irafbin/bin.openbsd .
cd $iraf/irafbin/bin.openbsd
tar -xzf $dist/ib.rhux.x86.gz
cd $iraf/iraf/noao
mkdir $iraf/irafbin/noao.bin.openbsd
ln -s $iraf/irafbin/noao.bin.openbsd bin.openbsd
cd $iraf/irafbin/noao.bin.openbsd
tar -xzf $dist/nb.rhux.x86.gz
mv $iraf/iraf/unix/bin.redhat $iraf/iraf/unix/bin.openbsd
mv $iraf/iraf/unix/as.redhat $iraf/iraf/unix/as.openbsd
cd $iraf/iraf/unix/hlib
for file in cl.csh irafuser.csh install
do
ed -s $file <<"EOF"
1,$g/freebsd/s//openbsd/g
1,$g/endiif/s//endif/g
w
EOF
done
cd $iraf/iraf/unix/hlib
csh -fc "
source ./irafuser.csh
./install -r $iraf/iraf -i /tmp -b $iraf/bin
"
What is wrong because not work and i tyred to work for nothing.
Thank you
Mike Fitzpatrick wrote on Apr 29, 2008
Sorry for the late reply, your posting scrolled off the front page
and I forgot that I meant to answer.
For the purposes of this script, this is fine. But keep in mind
that the '$iraf' that IRAF needs will be /local/iraf/iraf/
I presume that since you're using the redhat binaries you've got some
sort of binary compatability available? You won't be able to use the system
for compilation, however if you were going to be rebuilding the system
to create an 'openbsd' architecture there are a number of other places
where this would need to be added. Editing the cl.csh/irafuser.csh/install
script should be good enough to start up though.
Otherwise your script looks perfectly reasonable. You say it doesn't
work, but you don't say what the error is. Does the script not run, or is it
just that you can't start IRAF afterward?
-Mike
and I forgot that I meant to answer.
export iraf=/local/iraf
For the purposes of this script, this is fine. But keep in mind
that the '$iraf' that IRAF needs will be /local/iraf/iraf/
cd $iraf/iraf
mkdir $iraf/irafbin/bin.openbsd
ln -s $iraf/irafbin/bin.openbsd .
cd $iraf/irafbin/bin.openbsd
tar -xzf $dist/ib.rhux.x86.gz
:
:
I presume that since you're using the redhat binaries you've got some
sort of binary compatability available? You won't be able to use the system
for compilation, however if you were going to be rebuilding the system
to create an 'openbsd' architecture there are a number of other places
where this would need to be added. Editing the cl.csh/irafuser.csh/install
script should be good enough to start up though.
Otherwise your script looks perfectly reasonable. You say it doesn't
work, but you don't say what the error is. Does the script not run, or is it
just that you can't start IRAF afterward?
-Mike
Last post on Apr 29, 2008