вторник, 7 мая 2013 г.

Резервное копирование конфигураций Cisco оборудования по расписанию - Rancid Automatic Cisco Network backup (CentOS)





#adduser rancid --home /home/rancid


wget ftp://ftp.shrubbery.net/pub/rancid/rancid-2.3.8.tar.gz

 tar xvfz rancid-2.3.8.tar.gz

yum install gcc gcc-c++ kernel-devel

cd /home/rancid/rancidrancid-2.3.8


./configure --prefix=/home/rancid




Based on http://openmaniak.com/rancid_tutorial.php



Install CheckInstall in CentOS:

sudo yum -y install gcc gcc-c++ make rpm-build wget
wget http://www.asic-linux.com.mx/~izto/checkinstall/files/rpm/checkinstall-1.6.1-1.i386.rpm
sudo rpm -i checkinstall-1.6.1-1.i386.rpm
sudo sh -c "echo \"echo '/bin/rpm'\" > /usr/bin/which; chmod 755 /usr/bin/which"

Error
       ERROR: ld.so: object '/usr/local/lib/installwatch.so' from LD_PRELOAD cannot be preloaded: ignored.
Solution:
echo "/usr/local/lib64" >/etc/ld.so.conf.d/installwatch.conf
ldconfig
ln -s /usr/local/lib/installwatch.so /usr/local/lib64/installwatch.so

http://linuxnotes.us/archives/362

Error
has no SOURCES directory. Please write the path to the RPM source directory tree:
       (as root) mkdir -p /root/rpmbuild/SOURCES
http://serverfault.com/questions/152704/checkinstall-failed-with-root-rpmbuild-has-no-source-directory

Error
cp: cannot stat `//var/tmp/SXjPNPeYRcjjaGKJWadiZ/newfiles.tmp': No such file or directory
Solution
checkinstall -R -y --fstrans=no
http://www.patrickmin.com/linux/tip.php?name=checkinstall_fedora_13

Error

Processing files: rancid-2.3.8-1.x86_64
error: File not found: /root/rpmbuild/BUILDROOT/rancid-2.3.8-1.x86_64/usr
error: File not found: /root/rpmbuild/BUILDROOT/rancid-2.3.8-1.x86_64/usr/doc
error: File not found: /root/rpmbuild/BUILDROOT/rancid-2.3.8-1.x86_64/usr/doc/rancid
error: File not found: /root/rpmbuild/BUILDROOT/rancid-2.3.8-1.x86_64/usr/doc/rancid/README
error: File not found: /root/rpmbuild/BUILDROOT/rancid-2.3.8-1.x86_64/usr/doc/rancid/CHANGES
error: File not found: /root/rpmbuild/BUILDROOT/rancid-2.3.8-1.x86_64/usr/doc/rancid/README.lg
error: File not found: /root/rpmbuild/BUILDROOT/rancid-2.3.8-1.x86_64/usr/doc/rancid/FAQ
error: File not found: /root/rpmbuild/BUILDROOT/rancid-2.3.8-1.x86_64/usr/doc/rancid/BUGS
error: File not found: /root/rpmbuild/BUILDROOT/rancid-2.3.8-1.x86_64/usr/doc/rancid/COPYING
RPM build errors:
    File not found: /root/rpmbuild/BUILDROOT/rancid-2.3.8-1.x86_64/usr
    File not found: /root/rpmbuild/BUILDROOT/rancid-2.3.8-1.x86_64/usr/doc
    File not found: /root/rpmbuild/BUILDROOT/rancid-2.3.8-1.x86_64/usr/doc/rancid
    File not found: /root/rpmbuild/BUILDROOT/rancid-2.3.8-1.x86_64/usr/doc/rancid/README
    File not found: /root/rpmbuild/BUILDROOT/rancid-2.3.8-1.x86_64/usr/doc/rancid/CHANGES
    File not found: /root/rpmbuild/BUILDROOT/rancid-2.3.8-1.x86_64/usr/doc/rancid/README.lg
    File not found: /root/rpmbuild/BUILDROOT/rancid-2.3.8-1.x86_64/usr/doc/rancid/FAQ
    File not found: /root/rpmbuild/BUILDROOT/rancid-2.3.8-1.x86_64/usr/doc/rancid/BUGS
    File not found: /root/rpmbuild/BUILDROOT/rancid-2.3.8-1.x86_64/usr/doc/rancid/COPYING
Solution

http://forums.opensuse.org/english/other-forums/development/programming-scripting/461928-rpmbuild-fails-buildroot.html

Комментариев нет:

Отправить комментарий