LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-08-2013, 11:47 PM   #1
srinietrx
Member
 
Registered: May 2013
Posts: 101

Rep: Reputation: Disabled
Error while installing Perl modules by auto installation method.


Hi
I am using BLFS book chaper13 and installing perl module by auto installation method (i.e usingcpan shell and install commands).I am running cpan command for first time.

When I run cpan command it i asks questions like it can do configuration and pick mirror site automatically.When i gave positive answers then error is Can't get tcp protocol by name at /usr/lib/perl5/5.14.0/CPAN/Mirrors.pm line 261.

In Mirrors.pm file line no.261 contains my $ping = Net::Ping->new("tcp",1);
What is wrong.For information I am doing all these in chroot environment.

Last edited by srinietrx; 05-09-2013 at 01:24 AM.
 
Old 05-09-2013, 03:15 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
Did you run the command as root or something like
sudo cpan MY::Module

If not try that.

I found a related thread containing some info here (pretty old)
http://www.perlmonks.org/bare/?node_id=301104

Last edited by j-ray; 05-09-2013 at 03:17 AM.
 
Old 05-09-2013, 04:43 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by srinietrx View Post
Hi
I am using BLFS book chaper13 and installing perl module by auto installation method (i.e usingcpan shell and install commands).I am running cpan command for first time.

When I run cpan command it i asks questions like it can do configuration and pick mirror site automatically.When i gave positive answers then error is Can't get tcp protocol by name at /usr/lib/perl5/5.14.0/CPAN/Mirrors.pm line 261.

In Mirrors.pm file line no.261 contains my $ping = Net::Ping->new("tcp",1);
What is wrong.For information I am doing all these in chroot environment.
First of all: You should not be doing this from the chrooted environment! Boot into LFS and work from there and not from your host and the chrooted environment.

If you still run into problems when you do this from LFS: Is your network fully functional?
 
1 members found this post helpful.
Old 05-09-2013, 11:11 PM   #4
srinietrx
Member
 
Registered: May 2013
Posts: 101

Original Poster
Rep: Reputation: Disabled
@j-ray I was in chroot when installing

@druuna Yes,network is not functioning.I will boot into lfs,bring network and give a try
But anyway my task to install perl module was completed by manual method(i.e installing packages directly from cpan website).

Thankyou for reply
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error while installing xml perl modules varunb Linux - Newbie 2 08-10-2012 05:20 AM
Perl Modules installation chn10db001 Linux - Software 4 07-28-2011 07:04 AM
Print output of a script to screen using Perl/Multiple installation of Perl Modules metallica1973 Linux - General 1 02-17-2011 05:59 PM
[SOLVED] [Perl] OOP Accessor Method for Array Attributes and Append Method brianmcgee Programming 1 10-18-2010 11:05 AM
"cc1: error: invalid option 'tune=i686'" while installing Perl modules via CPAN scuzzman Programming 12 08-21-2006 09:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration