During this winter break,
I have moved almost all services at my home
from the Linux (Fedora Core 3) machine
to the Solaris AMD64 machine, which I mentioned here a month ago,
with 1TB RAID-Z pool.
I will write some tips about migration from Linux to Solaris.
First, I had to have GCC4 compiler with AMD64 support.
I installed Solaris Companion CD.
I got /usr/sfw/bin/gcc which version was 3.4.3
and which supported -m64 option.
( I got /opt/sfw/bin/gcc, too,
but it does not support -m64. )
However, the point here is to have GNU Assembler and GNU make at /usr/sfw/bin, and some commands in /opt/sfw/bin.
Then, I downloaded gcc-core-4.0.2.tar.bz2, extracted it,
and configured with --with-as=/usr/sfw/bin/gas option.
Without this option, it may fail at the next bootstrap step.
Finally, bootstrap and install with gmake.
# lofiadm -a /tmp/sol-10-ccd-GA-x86-iso.iso
# mount -F hsfs -o ro /dev/lofi/1 /mnt
# umount /mnt
# lofiadm -d /dev/lofi/1
# bunzip2 -c gcc-core-4.0.2.tar.bz2 | tar xvpf -
# mkdir gcc-4.0.2-sol
# cd gcc-4.0.2-sol
# ../gcc-4.0.2/configure --with-as=/usr/sfw/bin/gas
# gmake bootstrap
# gmake install