Compiling Rancid on an x86 Solaris 10 platform
Below shows you the steps in order to compile Rancid on an x86 Solaris 10 platform.
RANCID monitors a router's (or more generally a device's) configuration, including software and hardware (cards, serial numbers, etc) and uses CVS or Subversion to maintain history of changes.
Space on /var
If you havent much space on /var run the following commands to provide you with some additional space.
mv /var/sadm/ /export/
rm -rfv /var/sadm/
ln -s /export/sadm/ /var/sadm
Install Packages
[mount cd-rom]
pkgadd -d /cdrom/Solaris_10/Product/ SUNWsprot SUNWtoo SUNWhea SUNWarc
Add User and $PATH
useradd -d /home/rancid rancid
PATH=$PATH:/usr/lib/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/sfw/bin
If useradd does not create the directory you may want to look into removing /home from the /etc/auto_master file.
Install Dependencies
Download the following dependancies from http://www.sunfreeware.com/indexintel10.html and copy to /export/home
- libgcc-3.4.6-sol10-x86-local.gz
- libiconv-1.13.1-sol10-x86-local.gz
- libidn-1.19-sol10-x86-local.gz
- libintl-3.4.0-sol10-x86-local.gz
- make-3.81-sol10-x86-local.gz
- openssl-1.0.0a-sol10-x86-local.gz
- wget-1.12-sol10-x86-local.gz
- expect-5.43.0-sol10-x86-local.gz
- cvs-1.12.13-sol10-x86-local.gz
- libintl-3.4.0-sol10-x86-loca.gz
- tk-8.5.8-sol10-x86-local.gz
- tcl-8.5.8-sol10-x86-local.gz
- coreutils-8.5-sol10-x86-local.gz
Now run the following command to install
cd /export/home
for i in `ls` ; do gunzip $i ; done
for i in `ls | grep -v gz` ; do pkgadd -d $i ; done
Edit Grep
I ran into a number of issues regarding my grep version not being compatable for the compliling of Rancid. To resolve this follow these steps : CLICK HERE
Download Rancid
cd /export/home ; wget ftp://ftp.shrubbery.net/pub/rancid/rancid-2.3.2.tar.gz
gunzip rancid-2.3.2.tar.gz
tar xvf rancid-2.3.2.tar
cd rancid-2.3.2
Compile
./configure --prefix=/home/rancid
make install
Once this is completed you can move towards configuring Rancid which will be covered in a later tutorial.
Additional Issues
Below are some additional issues you may face :
- Solaris 10 x86 - Error compiling from source
- gcc install on Solaris fails with "errno 28, No space left on device"
Tags: UNIX


