Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

RANCID is fully installed

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

A few days ago, there was a requirement to install RANCID software. RANCID uses CVS to store software configured by various network routers, switches and other devices. It can easily realize the storage and management of network device configuration files. You can view the network configuration used at any time in real time. At the same time, you can track some changes.

But RANCID is more complicated to install, because before installing RANCID, you need to install and configure three software, one is TCL, one is EXPETC, and the other is CVS. After they are all installed, you can install RANCID.

I have summarized the steps of installing RANCID here, hoping to help you all.

First, we need to configure the compilation and installation of TCL, which I use here is tcl's source package tcl8.4.14-src.tar.gz.

Root@ip2dbserver # cd / opt/ ailf/

Root@ip2dbserver # ls

Cvs-1.11.22 patch-sunos5.9 tcl8.4.14-src.tar.gz tmp

Cvs-1.11.22.zip src tk8.4.14-src.tar.gz

Compressed package of source files for tcl

Root@ip2dbserver # gunzip tcl8.4.14-src.tar.gz

Root@ip2dbserver # tar xvf tcl8.4.14-src.tar

Enter the source file directory of tcl:

Root@ip2dbserver # cd tcl8.4.14

Root@ip2dbserver # ls

ChangeLog ChangeLog.2001 compat library macosx unix

ChangeLog.1999 README doc license.terms tests win

ChangeLog.2000 changes generic mac tools

, /

View the installation documentation

Root@ip2dbserver # more README

README: Tcl

This is the Tcl 8.4.14 source distribution.

Tcl/Tk is also available through NetCVS:

Http://tcl.sourceforge.net/

You can get any source release of Tcl from the file distributions

Link at the above URL.

RCS: @ (#) $Id: README,v 1.49.2.17 2006-05-04 13:09:16 dgp Exp $

Contents

-

1. Introduction

2. Documentation

3. Compiling and installing Tcl

. .

Because it is installed on sunos, you need to go to the unix directory

Root@ip2dbserver # cd unix

View the appropriate installation content

Root@ip2dbserver # more README

/ *

Tcl UNIX README

-

RCS: @ (#) $Id: README,v 1.24.2.2 2005-12-03 00:35:44 das Exp $

This is the directory where you configure, compile, test, and install

UNIX versions of Tcl. This directory also contains source files for Tcl

That are specific to UNIX. Some of the files in this directory are

Used on the PC or Mac platform too, but they all depend on UNIX

(POSIX/ANSI C) interfaces and some of them only make sense under UNIX.

Updated forms of the information found in this file is available at:

Http://www.tcl.tk/doc/howto/compile.html#unix

For information on platforms where Tcl is known to compile, along

With any porting notes for getting it to work on those platforms, see:

Http://www.tcl.tk/software/tcltk/platforms.html

The rest of this file contains instructions on how to do this. The

Release should compile and run either "out of the box" or with trivial

Changes on any UNIX-like system that approximates POSIX, BSD, or System

V. We know that it runs on workstations from Sun, Hmurp, DEC, IBM, and

SGI, as well as PCs running Linux, BSDI, and SCO UNIX. To compile for

. .

Check out what installation options are available

Root@ip2dbserver #. / configure-help

Usage: configure [options] [host]

Options: [defaults in brackets after descriptions]

Configuration:

-- cache-file=FILE cache test results in FILE

-- help print this message

-- no-create do not create output files

-- quiet,-- silent do not print `checking... Messages

-- version print the version of autoconf that created configure

Directory and file names:

-- prefix=PREFIX install architecture-independent files in PREFIX

[/ usr/local]

-- exec-prefix=EPREFIX install architecture-dependent files in EPREFIX

[same as prefix]

. .

For software configuration, set the installation directory to / opt/lf/tcl

Root@ip2dbserver #. / configure-prefix=/opt/lf/tcl

Creating cache. / config.cache

Checking whether to use symlinks for manpages... No

Checking whether to compress the manpages... No

Checking whether to add a package name suffix for the manpages... No

Checking for gcc... Gcc

Checking whether the C compiler (gcc) works... Yes

Checking whether the C compiler (gcc) is a cross-compiler... No

Checking whether we are using GNU C... Yes

Checking whether gcc accepts-g. Yes

Checking how to run the C preprocessor... Gcc-E

Checking dirent.h... Yes

Checking for errno.h... Yes

Checking for float.h... Yes

Checking for values.h... Yes

Checking for limits.h... Yes

Checking for stdlib.h... Yes

Checking for string.h... Yes

Checking for sys/wait.h... Yes

Checking for dlfcn.h... Yes

. .

Compile tcl software

Root@ip2dbserver # make

/ *

Gcc-pipe-c-O-DTCL_DBGX=-Wall-Wno-implicit-int-fno-strict-aliasing-fPIC-I/opt/ailf/tmp/tcl8.4.14/unix/../generic-I/opt/ailf/tmp/tcl8.4.14/unix-DHAVE_LIMITS_H=1-DHAVE_UNISTD_H=1-DHAVE_SYS_PARAM_H=1-D_REENTRANT=1-D_POSIX_PTHREAD_SEMANTICS=1-DTCL_WIDE_INT_TYPE=long\ long-DHAVE_STRUCT_DIRENT64=1-DHAVE_STRUCT_STAT64=1-DHAVE _ OPEN64=1-DHAVE_LSEEK64=1-DHAVE_TYPE_OFF64_T=1-DWORDS_BIGENDIAN=1-DHAVE_GETCWD=1-DHAVE_OPENDIR=1-DHAVE_STRSTR=1-DHAVE_STRTOL=1-DHAVE_STRTOLL=1-DHAVE_STRTOULL=1-DHAVE_TMPNAM=1-DHAVE_WAITPID=1-DUSE_TERMIOS=1-DHAVE_SYS_TIME_H=1-DTIME_WITH_SYS_TIME=1-DHAVE_TZNAME=1-DHAVE_GMTIME_R=1-DHAVE_LOCALTIME_R=1-DHAVE_TIMEZONE_VAR=1-DHAVE_ST_BLKSIZE=1-DSTDC_HEADERS=1-DNO_UNION_WAIT=1-DHAVE_SIGNED_CHAR=1-DHAVE_LANGINFO=1-DHAVE _ SYS_IOCTL_H=1-DHAVE_SYS_FILIO_H=1-DTCL_SHLIB_EXT=\ ".so\" / opt/ailf/tmp/tcl8.4.14/unix/../generic/regcomp.c

. .

The compiled software can be installed below

Root@ip2dbserver # make install

Making directory / opt/lf/tcl/lib

Making directory / opt/lf/tcl/bin

Installing libtcl8.4.so to / opt/lf/tcl/lib/

Installing tclsh as / opt/lf/tcl/bin/tclsh8.4

Installing tclConfig.sh to / opt/lf/tcl/lib/

Installing libtclstub8.4.a to / opt/lf/tcl/lib/

Making directory / opt/lf/tcl/include

Making directory / opt/lf/tcl/lib/tcl8.4

Making directory / opt/lf/tcl/lib/tcl8.4/http2.5

Making directory / opt/lf/tcl/lib/tcl8.4/http1.0

Making directory / opt/lf/tcl/lib/tcl8.4/opt0.4

Making directory / opt/lf/tcl/lib/tcl8.4/encoding

Making directory / opt/lf/tcl/lib/tcl8.4/msgcat1.3

Making directory / opt/lf/tcl/lib/tcl8.4/tcltest2.2

Installing header files

Installing library files to / opt/lf/tcl/lib/tcl8.4

Installing library http1.0 directory

Installing library http2.5 directory

Installing library opt0.4 directory

Installing library msgcat1.3 directory

Installing library tcltest2.2 directory

Installing library encoding directory

Making directory / opt/lf/tcl/man

Making directory / opt/lf/tcl/man/man1

Making directory / opt/lf/tcl/man/man3

Making directory / opt/lf/tcl/man/mann

Installing and cross-linking top-level (.1) docs

Installing and cross-linking C API (.3) docs

Installing and cross-linking command (.n) docs

Change the configuration file to start a new configuration file

Root@ip2dbserver # vi .profile

Enter the newly installed tclsh8.4 to see if the installation is successful

Root@ip2dbserver # tclsh8.4

% exit

Can be used, tcl installed successfully

[this post was last edited by sohu2000000 at 10:59 on 2007-5-17]

[original] full installation of RANCID (continued) [/ align] after the correct installation of TCL, we can EXPECT. The source package of expect is expect-5.43.

Root@ip2dbserver # cd / opt/ailf/tmp

Root@ip2dbserver # ls

Expect.tar rancid-2.3.2a6.tar tcl8.4.14 tcl8.4.14-src.tar

Release expect's source file archive

Root@ip2dbserver # tar xvf expect.tar

X expect-5.43/ChangeLog, 21094 bytes, 42 tape block

X expect-5.43/tcldbg.h, 1681 bytes, 4 tape blocks

X expect-5.43/Dbg.c, 30967 bytes, 61 tape blocks

X expect-5.43/tcldbgcf.h.in, 399 bytes, 1 tape block

X expect-5.43/DbgMkfl.in, 8038 bytes, 16 tape blocks

X expect-5.43/DbgpkgInd.in, 515bytes, 2 tape blocks

X expect-5.43/Dbgconfigure, 53213 bytes, 104tape block

X expect-5.43/Dbgconfig.in, 3363 bytes, 7 tape blocks

X expect-5.43/FAQ, 75007 bytes, 147tape block

X expect-5.43/HISTORY, 143501 bytes, 281 tape block

X expect-5.43/INSTALL, 10685 bytes, 21 tape blocks

X expect-5.43/Makefile.in, 32701 bytes, 64 tape block

X expect-5.43/NEWS, 29291 bytes, 58 tape block

X expect-5.43/README, 14567 bytes, 29 tape blocks

X expect-5.43/aclocal.m4, 20222 bytes, 40 tape blocks

X expect-5.43/config.sub, 19106 bytes, 38 tape blocks

X expect-5.43/config.guess, 38437 bytes, 76 tape block

X expect-5.43/configure, 203262 bytes, 397tape block

X expect-5.43/configure.in, 36660 bytes, 72 tape blocks

X expect-5.43/install-sh, 4773 bytes, 10 tape blocks

. .

Check to see if the decompression is successful

Root@ip2dbserver # ls

Expect-5.43 expect.tar rancid-2.3.2a6.tar tcl8.4.14 tcl8.4.14-src.tar

Enter the source file directory

Root@ip2dbserver # cd expect-5.43

Root@ip2dbserver # ls

ChangeLog README exp_command.h exp_main_tk.c exp_simple.c expect.h pkgIndex.in

Dbg.c aclocal.m4 exp_console.c exp_memmove.c exp_strf.c expect.man pty_sgttyb.c

DbgMkfl.in config.guess exp_event.c exp_noevent.c exp_trap.c expect_cf.h.in pty_termios.c

Dbgconfig.in config.sub exp_event.h exp_poll.c exp_tstamp.h expect_comm.h pty_unicos.c

Dbgconfigure configure exp_glob.c exp_prog.h exp_tty.c expect_tcl.h tcldbg.h

DbgpkgInd.in configure.in exp_int.h exp_pty.c exp_tty.h expectk.man tcldbgcf.h.in

FAQ example exp_inter.c exp_pty.h exp_tty_comm.c fixcat tests

HISTORY exp_chan.c exp_log.c exp_regexp.c exp_tty_in.h fixline1 testsuite

INSTALL exp_clib.c exp_log.h exp_regexp.h exp_win.c install-sh vgrindefs

Makefile.in exp_closetcl.c exp_main_exp.c exp_rename.h exp_win.h libexpect.man

NEWS exp_command.c exp_main_sub.c exp_select.c expect.c mkinstalldirs

Check what are the configuration options

Root@ip2dbserver #. / configure-help

Usage: configure [options] [host]

Options: [defaults in brackets after descriptions]

Configuration:

-- cache-file=FILE cache test results in FILE

-- help print this message

-- no-create do not create output files

-- quiet,-- silent do not print `checking... Messages

-- version print the version of autoconf that created configure

Directory and file names:

-- prefix=PREFIX install architecture-independent files in PREFIX

[/ usr/local]

-- exec-prefix=EPREFIX install architecture-dependent files in EPREFIX

[same as prefix]

-- bindir=DIR user executables in DIR [EPREFIX/bin]

. .

View the installation instructions for the software

Root@ip2dbserver # more INSTALL

This file is INSTALL. It contains installation instructions for Expect.

If you do not have Tcl, get it (Expect s README explains how) and

Install it. The rest of these instructions assume that you have Tcl

Installed.

If you are installing Expect on a single architecture, or are just

Trying it out to see whether it is worth installing, follow the

. .

Check what installation configuration files are available:

Root@ip2dbserver #. / configure-help

Usage: configure [options] [host]

Options: [defaults in brackets after descriptions]

Configuration:

-- cache-file=FILE cache test results in FILE

-- help print this message

-- no-create do not create output files

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report