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 and copy to /export/home

  1. libgcc-3.4.6-sol10-x86-local.gz
  2. libiconv-1.13.1-sol10-x86-local.gz
  3. libidn-1.19-sol10-x86-local.gz
  4. libintl-3.4.0-sol10-x86-local.gz
  5. make-3.81-sol10-x86-local.gz
  6. openssl-1.0.0a-sol10-x86-local.gz
  7. wget-1.12-sol10-x86-local.gz
  8. expect-5.43.0-sol10-x86-local.gz
  9. cvs-1.12.13-sol10-x86-local.gz
  10. libintl-3.4.0-sol10-x86-loca.gz
  11. tk-8.5.8-sol10-x86-local.gz
  12. tcl-8.5.8-sol10-x86-local.gz
  13. 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 :

Rick Donato

Want to become a UNIX expert?

Here is our hand-picked selection of the best courses you can find online:
UNIX Administration Fundamentals
Vim Masterclass
and our recommended certification practice exams:
AlphaPrep Practice Tests - Free Trial