Bringing Up a Base GCC Compiler on Solaris 9

In this article we talked about the Solaris companion CD. The location for the Solaris 9 companion CD is here. Now, if you want to *just* compile software with GCC, the best place to go is sunfreeware. Grab the closest mirror. We found that this mirror works well in the US. To get enough software to compile rsync, we grabbed:

autoconf-2.57-sol9-sparc-local.gz
gcc-3.2.1-sol9-sparc-local.gz
automake-1.7.2-sol9-sparc-local.gz
make-3.80-sol9-sparc-local.gz
bison-1.875-sol9-sparc-local.gz
texinfo-4.2-sol9-sparc-local.gz
flex-2.5.4a-sol9-sparc-local.gz

To install flex, for instance:

# gzip -d flex-2.5.4a-sol9-sparc-local.gz
# pkgadd -d flex-2.5.4a-sol9-sparc-local

For all of the packages, we selected all when prompted, by pushing enter. The default install location of /usr/local was fine. With these packages we were able to compile and use rsync with a simple:

# ./configure
# make
# make install