delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:mime-version:in-reply-to:references:date | |
:message-id:subject:from:to:content-type; q=dns; s=default; b=tb | |
iAR7NLzvIJnr/sUqTloPTYOqn47QBwMYWd+DCAj6/1RTwpL2+Gi7JqIfPDbZ2uQi | |
r3lRAJ0JXkiIG80CGiysuluvhGrIBpOQVe3plm5Zyz9MGK8ty9DdXeHYGOQmuqku | |
4EjqjjVMf49hOKjcTT91FbKrlkvUfJr5IdGQYjM4g= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:mime-version:in-reply-to:references:date | |
:message-id:subject:from:to:content-type; s=default; bh=0CPCFR+s | |
wdJLaamqI1viHdkYThg=; b=lpnx77/CrEUoCyfW/b45xNkBb1+aRWX8ch3VUL8e | |
W/HS8T7ThYOtU9P7fnzuZibM/Xzhj1ltVAVc/qrLnKdWUbmvREVZYT7bUW59S+e1 | |
P7nCpgB27lKktkvyADUbNOq11wygrXM8YSFHvbiq7C1eQ9ycqu3KF1hpgufywrhN | |
Ggk= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 |
X-HELO: | mail-wg0-f53.google.com |
MIME-Version: | 1.0 |
X-Received: | by 10.180.98.105 with SMTP id eh9mr4805668wib.56.1381524684252; Fri, 11 Oct 2013 13:51:24 -0700 (PDT) |
In-Reply-To: | <5254552E.70403@tiscali.co.uk> |
References: | <CALKH64kEV2-S2j2LKpEMDnbLdC-6P+Hv5n8g5LbPrhkiocfxmA AT mail DOT gmail DOT com> <5254552E DOT 70403 AT tiscali DOT co DOT uk> |
Date: | Fri, 11 Oct 2013 16:51:24 -0400 |
Message-ID: | <CAD8GWsvk99-byW6WkExf_1VfRPBbm9nd=DaxFUFCP6ZR46ebCg@mail.gmail.com> |
Subject: | Re: RANCID on Cygwin |
From: | Lee <ler762 AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
On 10/8/13, David Stacey <drstacey AT tiscali DOT co DOT uk> wrote: > On 08/10/2013 14:53, Jakub Horbacewicz wrote: >> I have to use Windows server for making backups of network devices. To >> accomplish that I have to run Rancid, so I need to install Cygwin. Can >> you help me with compiling Rancid through Cygwin? I cannot find any >> tutorial or tips in google. > > If you download and unpack the RANCID sources, there is a 'README' file > in there with some quick installation instructions. Simply follow the 12 > steps listed in that document. > > I don't know much about RANCID, but this might get you started: It > appears that RANCID is mostly written in script languages (perl, > expect), with a very small amount of C code that has to be compiled. So, > from a Cygwin terminal: > > # Download and unpack the sources. > wget ftp://ftp.shrubbery.net/pub/rancid/rancid-2.3.8.tar.gz > tar -xf rancid-2.3.8.tar.gz > cd rancid-2.3.8 > > # Configure. > ./configure --prefix=/usr > # This gets stuck checking for 'ping'. > # I had to open up Windows Task Manager and kill 'ping.exe'. probably the fix for that is to set PING_PATH in configure - eg: $ cat MYconfigure #!/bin/sh # rancid config # default prefix is /usr/local/rancid -- make it ~/rancid # default oldincludedir is /usr/include -- make it ~/rancid/old/include # windoze only - cygwin ping does not return non-zerfo status for ping fail so # use the windoze ping instead ./configure --prefix=${HOME}/rancid \ --oldincludedir=${HOME}/rancid/old/include \ PING_PATH=/cygdrive/c/windows/system32/ping.exe And if you have any long device names ( > 12 characters?? I don't remember) you might have to modify the code in clogin: # match cisco config mode prompts too, such as router(config-if)#, # but catalyst does not change in this fashion. # -LR- regsub -all fails on cygwin + long device name. {1,21} works # -LR- regsub -all {^(.{1,11}).*([#>])$} $prompt {\1([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?} reprompt regsub -all {^(.{1,21}).*([#>])$} $prompt {\1([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?} reprompt expect { -re $reprompt {} -re "\[\n\r]+" { exp_continue } } Regards, Lee -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |