LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Script Dependency Problem (https://www.linuxquestions.org/questions/linux-newbie-8/script-dependency-problem-843262/)

tooonami 11-09-2010 11:15 AM

Script Dependency Problem
 
Hi, I have a script that needs the following to work:

use strict
use Config::IniFiles
use LWP
use POSIX
use Crypt::SSLeay

I think Config::IniFiles, LWP and POSIX are a part of Perl, but I have no idea what strict is.

Could someone help me install perl, and the rest through synaptic through the terminal commands.

Tinkster 11-09-2010 11:17 AM

"use strict" is not a dependency as in package inclusion,
it tells perl to be more pedantic about how variables and
a few other objects are treated; so you need to explicitly
specify e.g., "my $variable", "my @array", or "our $variable2".



Cheers,
Tink

tooonami 11-09-2010 11:24 AM

Ok but for the ones that need to be installed, how do i do it?

Tinkster 11-09-2010 11:29 AM

Commonly you'd use CPAN. Even though LWP should be part
of your perl distribution.


Code:

cpan -i Crypt::SSLeay

Ok, so you added synaptic to your first post;
try
Code:

apt-cache search perl|grep -i ssleay
or
Code:

apt-cache search perl|grep -i lwp
Cheers,
Tink

tooonami 11-09-2010 11:39 AM

Hi, thanks for you help.

from:

apt-cache search perl|grep -i ssleay

I get:

Quote:

libcrypt-ssleay-perl - Support for https protocol in LWP
libnet-ssleay-perl - Perl module for Secure Sockets Layer (SSL)
from:

apt-cache search perl|grep -i lwp

I get:


Quote:

libcrypt-ssleay-perl - Support for https protocol in LWP
libio-all-lwp-perl - Perl module to use HTTP and FTP URLs with IO::All
liblwp-authen-negotiate-perl - Perl module for GSSAPI based Authentication Plugin for LWP
liblwp-authen-wsse-perl - Library for enabling X-WSSE authentication in LWP
liblwp-online-perl - module to check if there is Internet access
liblwp-protocol-http-socketunix-perl - Perl module to speak http through unix sockets
liblwp-protocol-socks-perl - SOCKS proxy support for LWP
liblwp-useragent-determined-perl - LWP useragent that retries errors
liblwpx-paranoidagent-perl - a "paranoid" subclass of LWP::UserAgent
libtest-mock-lwp-perl - Easy mocking of LWP packages

fbobraga 11-09-2010 11:43 AM

this should solve all (without using CPAN):
Code:

# apt-get install libcrypt-ssleay-perl

tooonami 11-09-2010 11:47 AM

Ahh ok, I get it now.

thanks for your help its most appreciated


All times are GMT -5. The time now is 04:17 AM.