Solved

Perl(LWP) needed on FC9

Posted on 2009-03-31
8
1,151 Views
Last Modified: 2013-12-16
Attempting to install gtksourceview-1.6.0 on Fedora Core 9.   Need XML Parser.
XML Parser install fails with

error: Failed dependencies:
      perl(LWP) is needed by perl-XML-Parser-2.36-3.fc9.i386

However, Perl and perl-devel-5.10.0-20.fc9.i386 already installed and latest version
are already installed on my system.  

Why is LWP.pm not installed? And how can I put it on?

Respectfully,

Brian P.
0
Comment
Question by:pendell2
  • 4
  • 3
8 Comments
 
LVL 40

Accepted Solution

by:
mrjoltcola earned 90 total points
ID: 24029611
Have you tried, as root:

perl -MCPAN -e shell
cpan> install LWP
0
 
LVL 39

Assisted Solution

by:Adam314
Adam314 earned 35 total points
ID: 24030195
This does the same thing, as root:
    cpan LWP
0
 

Author Comment

by:pendell2
ID: 24048931
Negative, Gentles. The solution did not work. Received error message

Can't locate CPAN.pm in @INC (@INC contains: /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl .).


This is a brand new Fedora Core 9 just out of the box. My guess is that the pre-installed PERL is missing some features.  
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:pendell2
ID: 24050236
Problem solved.  I copied over CPAM.pm and the CPAM directory from the directory /usr/lib/perl5/5.8.8 on a FC5 machine.  This allowed me to use CPAM. I then used CPAM as described above by mrjoltcola and Adam314 to install LWP.pm.

However, the installation was still incomplete. I had to copy the following over from my FC5 box as well before the installation would work.: Test/More.PM, Test/Builder.PM, Test/Builder/*

Not pretty, but it did work.

0
 

Author Closing Comment

by:pendell2
ID: 31564850
While we did not answer the question completely, it did give me enough understanding of the problem to solve it the rest of the way. Thank you both.
0
 
LVL 40

Expert Comment

by:mrjoltcola
ID: 24050335
I think I found the root cause. It is odd, and I feel a poor choice on the behalf of the RPM packagers. Apparently there is a separate package perl-core, it includes a lot of libs along with CPAN

You can install it with:

yum install perl-core


I think every Perl hacker who builds his own Perl distro expects CPAN to be included by default, but the Fedora team decided to split it up that way, or maybe its wider than Fedora, I do not know. I either build my own Perl, or use ActiveState.
0
 
LVL 40

Expert Comment

by:mrjoltcola
ID: 24050346
Even though you found the workaround, I encourage you to install the package I described, so your whole distro is consistent and is likely why you are missing LWP in the first place.
0
 

Author Comment

by:pendell2
ID: 24058680
An excellent idea;  I have installed perl-core and it seems to function; However, I will have to build a new box before we can determine whether it completely solves the problems used by the work around. I will try to remember but that will probably take place some time in the indefinite future.

0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to get all the API from website? 11 104
High Bandwidth Usage 6 76
How yum repo uses sqlite3 to keep metadata about the repository? 2 46
IP 10.0.1.2 / 255.0.0.0 61 56
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question