Junos
Junos

Installation of prerequisites of Junoscript perl client fails

[ Edited ]
‎03-31-2010 10:12 AM

Hi,

I am trying to install Junoscript Perl client on Ubuntu, but I am having troubles installing the prerequisites.

I followed step by step the procedure described in the Junoscript API Guide (Installing the Prerequisites Package and the JUNOScript Perl Client) but the install-prereqs.pl fails (with 15/49 successes).

That's the output of install-prereqs.pl:

 

# perl install-prereqs.pl

======================= PERL MODULE INSTALLATION ======================

This script installs all modules required by default.
These modules will be installed in the system directory.

This installation takes around 45 minutes

Begin automatic installation:

Module                         Est Time  Result
------                         --------  ------
libexpat.a                     00:00:08  ok
MIME::Base64                   00:00:04  ok => 3.07_01
URI                            00:00:10  ok => 1.37
Date::Manip                    00:00:25  ok => 5.54
Parse::Yapp::Driver            00:00:10  ok => 1.05
HTML::Tagset                   00:00:03  ok => 3.20
HTML::Parser                   00:00:15  ok => 3.61
Net::FTP                       00:00:10  ok => 2.77
Digest::MD5                    00:00:06  ok => 2.36_01
LWP                            00:00:31  ok => 5.831
XML::Parser                    00:00:14  ok => 2.36
XML::Parser::PerlSAX           00:00:10  ok => 0.07
XML::DOM                       00:01:05  ok => 1.44
IO::Tty                        00:00:05  ok => 1.08
Term::ReadKey                  00:00:20  ok => 2.30
Expect                         00:00:15  ok => 1.15
libz.a                         00:00:00  ok
Compress::Zlib                 00:00:08  ok => 2.025
Digest::HMAC_MD5               00:00:03  ok => 1.01
Digest::HMAC_SHA1              00:00:03  ok => 1.01
pari                           00:02:32  fail, see pari-2.1.4.log
Math::Pari                     00:01:45  fail, see Math-Pari-2.010305.log
Crypt::Random                  00:00:09  ok => 1.11
Class::Loader                  00:00:04  ok => 2.02
Crypt::DSA                     00:00:30  ok => 0.12
String::CRC32                  00:00:04  ok => 1.2
gmp                            00:00:45  fail, see gmp-4.1.1.log
Math::GMP                      00:00:13  fail, see Math-GMP-2.03.log
Convert::ASN1                  00:00:05  ok => 0.16
Convert::PEM                   00:00:05  ok => 0.06
Crypt::DH                      00:00:03  ok => 0.03
Crypt::DES                     00:00:04  ok => 2.03
Digest::SHA1                   00:00:04  ok => 2.01
Convert::ASCII::Armour         00:00:03  ok => 1.4
Crypt::CBC                     00:00:04  ok => 2.08
Tie::EncryptedHash             00:00:08  fail, see Tie-EncryptedHash-1.21.log
Crypt::Blowfish                00:00:07  ok => 2.09
Sort::Versions                 00:00:02  ok => 1.4
Data::Buffer                   00:00:03  ok => 0.04
Crypt::Primes                  00:01:46  ok => 0.49
MD5                            00:00:03  ok => 2.02
Crypt::RSA                     00:02:41  ok => 1.48
Digest::BubbleBabble           00:00:03  ok => 0.01
Crypt::DES_EDE3                00:00:04  ok => 0.01
openssl                        00:04:08  fail, see openssl-0.9.6g.log
Net::SSLeay                    00:01:15  fail, see Net_SSLeay.pm-1.25.log
gtkdoc                         00:00:04  ok
libxml2.a                      00:00:32  fail, see libxml2-2.4.28.log
libxslt.a                      00:01:46  fail, see libxslt-1.0.23.log

Automatic installation completed: success 40/49, failure 9/49, warnings 0.

** See the files under tmp/output corresponding to the failed tests 
** for instructions to correct the failures.

** Please fix the failures and invoke this script again.

 And that's the output of required-mod.pl:

 

# perl required-mod.pl

It will take a few minutes to look for all required modules...

The following modules are not found:
    gtkdoc
    libxml2.a
    libxslt.a
Please make sure the search paths for perl are correct.
/etc/perl
/usr/local/lib/perl/5.10.0
/usr/local/share/perl/5.10.0
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.10
/usr/share/perl/5.10
/usr/local/lib/site_perl
.
If the search paths are correct, run install-prereqs.pl to 
install the missing modules.

 

 

I tried to install the missing modules using CPAN and apt-get install, but without success.

 

Any suggestion will be welcome, thanks in advance for your help,

 

Mattia

 

.................................................................................
JNCIP-ENT, JNCIP-SEC, JNCIP-SP et al.
(If this post helped you, please mark it as an "Accepted Solution"; kudos are also appreciated!)


6 REPLIES 6
Junos

Re: Installation of prerequisites of Junoscript perl client fails

‎04-01-2010 03:01 AM

I add some information, one of the output files generated by install-prereq.pl (in attachment).

I hope it helps...

.................................................................................
JNCIP-ENT, JNCIP-SEC, JNCIP-SP et al.
(If this post helped you, please mark it as an "Accepted Solution"; kudos are also appreciated!)


Attachments

Junos

Re: Installation of prerequisites of Junoscript perl client fails

‎04-01-2010 07:34 AM

It seems I solved that problem...well, actually, I guess it wasn't a problem at all. In fact I just ignored the error messages and I installed the perl client.

The "make test" output was fine and the installation succeeded; the example scripts run correctly, so...

 

Anyway, I will post an update if i will notice anomalies in the behaviour of the junoscript client.

 

 

.................................................................................
JNCIP-ENT, JNCIP-SEC, JNCIP-SP et al.
(If this post helped you, please mark it as an "Accepted Solution"; kudos are also appreciated!)


Highlighted
Junos

Re: Installation of prerequisites of Junoscript perl client fails

‎05-19-2011 07:09 AM

Hi

I am python beginner and I have problem too. I extracted both files and put requiremets folder to another extracted folder netconf-perl-11.1R2.3. This is clean install Ubuntu 11.04

root@jozef-ThinkPad-Z61m:/home/jozef/netconf-perl-11.1R2.3# perl required-mod.pl 

It will take a few minutes to look for all required modules...

The following modules are not found:
    gtkdoc
    libxml2.a
    libxslt.a
    Expect
    XML::DOM
    XML::XSLT
    XML::XSLT
    XML::RegExp
    XML::DOM
    XML::SAX::ParserFactory
    XML::SAX::Expat
    File::Which
Please make sure the search paths for perl are correct.
/etc/perl
/usr/local/lib/perl/5.10.1
/usr/local/share/perl/5.10.1
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.10
/usr/share/perl/5.10
/usr/local/lib/site_perl
.
If the search paths are correct, run install-prereqs.pl to 
install the missing modules.

root@jozef-ThinkPad-Z61m:/home/jozef/netconf-perl-11.1R2.3# perl install-prereqs.pl 

======================= PERL MODULE INSTALLATION ======================

This script installs all modules required by default.
These modules will be installed in the system directory.

This installation takes around 15 minutes

Begin automatic installation:

Module                         Est Time  Result
------                         --------  ------
gtkdoc                         00:00:04  ok
libxml2.a                      00:00:32  fail, see libxml2-2.4.28.log
libxslt.a                      00:01:46  fail, see libxslt-1.0.23.log

Automatic installation completed: success 1/3, failure 2/3, warnings 0.

** See the files under tmp/output corresponding to the failed tests 
** for instructions to correct the failures.

** Please fix the failures and invoke this script again.

I attached also error logs from tmp/output

 

Thank you for help.

Attachments

Junos

Re: Installation of prerequisites of Junoscript perl client fails

‎05-20-2011 04:28 PM
Hello Jozef,
Did you try to install junoscript despite of the errors returned by the installation of the prereqs package? I installed the client on ubuntu and centos servers, and I wasn't able to perform a "clean" installation... I just installed manually the prereqs morules, using cpan and alt-get/yum, and then I installed the junoscript package, which worked fine...
Let me know if this procedure works for you!
Mattia
.................................................................................
JNCIP-ENT, JNCIP-SEC, JNCIP-SP et al.
(If this post helped you, please mark it as an "Accepted Solution"; kudos are also appreciated!)


Junos

Re: Installation of prerequisites of Junoscript perl client fails

‎05-30-2011 11:37 PM

Hi,

 

Your recommendation works for me

 

I just installed manually the prereqs morules, using cpan and alt-get/yum, and then I installed the junoscript package, which worked fine...

 

The problem was that I am perl beginner.

 

Thanks

 

Junos

Re: Installation of prerequisites of Junoscript perl client fails

‎05-29-2013 10:47 PM

Posting the solution for the failure to installing the prequisite package libxml2 (which triggers the failure of libxslt)

 

You have to install manually from source. Extract the tar.gz file, inside is a file called nanohttp.c. Navigate here (~ line 1382).

 

xmlNanoHTTPSave(void *ctxt, const char *filename) {
    char *buf = NULL;
    int fd;
    int len;

    if (ctxt == NULL) return(-1);

    if (!strcmp(filename, "-"))
        fd = 0;
    else {
        fd = open(filename, O_CREAT | O_WRONLY );    <<-- change this line
        if (fd < 0) {
            xmlNanoHTTPClose(ctxt);
            return(-1);
        }
    }

 

xmlNanoHTTPSave(void *ctxt, const char *filename) {
    char *buf = NULL;
    int fd;
    int len;

    if (ctxt == NULL) return(-1);

    if (!strcmp(filename, "-"))
        fd = 0;
    else {
        fd = open(filename, O_CREAT | O_WRONLY, 00644 );  <<-- to this
        if (fd < 0) {
            xmlNanoHTTPClose(ctxt);
            return(-1);
        }
    }

 

save the file. then do ./configure, make, make install as usual.

Chris
JNCIE-SP

(if this post helped you, please make this post as "Accepted Solution")
Kudos are always appreciated (the yellow star to the left under my name)