Today I decided to do a fresh install of Solaris 10 6/06 on my T2000. This went smoothly. But when trying to install the Sun Studio 11 compiler I ran into a roadblock. Since I don’t use any X windows system on the T2000 I tried to use the non-GUI installation method. According to the docs, this should be invoked by calling ./installer -nodisplay. However, this won’t work for a very stupid reason. The main installer script simply doesn’t pass the “-nodisplay” option to the script it itself calls. Thus, you won’t be able to use the non-GUI installation method on Sparc systems. To fix this, change the installer script like this:
#!/bin/sh
FULLNAME=`pwd`/$0
WORKDIR=`dirname $FULLNAME`
if [ “$1” = “-nodisplay” ]; then
INST_ARGS=“-nodisplay”
else
INST_ARGS=
fi
if [ -d $WORKDIR/CD1 -a -d $WORKDIR/CD2 ]; then
cd $WORKDIR/CD1
./installer $INST_ARGS
if [ $? = “0” ]; then
cd $WORKDIR/CD2
./installer $INST_ARGS
if [ $? = “0” ]; then
exit 0
else
echo “Error: install of second CD failed!”
exit 3
fi
else
echo “Error: install of first CD failed!”
exit 2
fi
else
echo “Error: required subdirectories not found!”
exit 1
fi
