Installing perl modules

Status
Not open for further replies.

estado3

New Member
Messages
16
Reaction score
0
Points
0
Does anyone know how I go about installing perl modules, apparently it can be done on x3 without being root, from the site/software link but I don't see any option for it.
 

estado3

New Member
Messages
16
Reaction score
0
Points
0
I can't find the module I would like to install, are there any other options?
 

Corey

I Break Things
Staff member
Messages
34,553
Reaction score
204
Points
63
I believe that is it, what is the module you are looking for?
 

Corey

I Break Things
Staff member
Messages
34,553
Reaction score
204
Points
63
What are you using it for?
 

estado3

New Member
Messages
16
Reaction score
0
Points
0
Download updated info
Can't it be placed in my own library?
Is there a way to place a specific module on a user's path when not root?
 

Zenax

Active Member
Messages
1,377
Reaction score
4
Points
38
well looking at the page, there seems to be 453 pages of them. And the one you want is not in any of those 453 pages?
 

estado3

New Member
Messages
16
Reaction score
0
Points
0
I have installed it per the instructions above, and have added the code:
my $homedir = (getpwuid($>))[7];
my $n_inc = scalar @INC;
for (my $i = 0; $i < $n_inc; $i++ ) {
if (-d $homedir . '/perl' . $INC[$i]) {
unshift(@INC,$homedir . '/perl' . $INC[$i]);
$n_inc++;
$i++;
}
}



however I am getting an error:

Can't locate WWW/Mechanize.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at

I also tried it with and without the lib path:

use WWW::Mechanize '/usr/lib/perl5/site_perl/5.8.8/WWW/Mechanize.pm';

Still the same error of unable to find WWW::Mechanize
 

Corey

I Break Things
Staff member
Messages
34,553
Reaction score
204
Points
63
I installed it as root, see if it works now.
 
Status
Not open for further replies.
Top