Unix Technical Forum

How do I add a PERL module to an FC4 box?

This is a discussion on How do I add a PERL module to an FC4 box? within the Linux Operating System forums, part of the Unix Operating Systems category; --> I have a working FC4 server (old, I know, but if it ain't broke don't fix it) and I ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-05-2008, 11:52 AM
silenceseeker2003@yahoo.com
 
Posts: n/a
Default How do I add a PERL module to an FC4 box?

I have a working FC4 server (old, I know, but if it ain't broke don't
fix it) and I need to add a perl module required by another program. I
am not a PERL programmer.

What is the proper way to add a PERL module to such machine?

Is it as simple as untaring a tar file into a specific directory? If
the answer is yes, what is the name of that directory?

Thanks,
Sam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 09-05-2008, 11:52 AM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: How do I add a PERL module to an FC4 box?

silenceseeker2003@yahoo.com wrote:
> I have a working FC4 server (old, I know, but if it ain't broke don't
> fix it) and I need to add a perl module required by another program. I
> am not a PERL programmer.
>
> What is the proper way to add a PERL module to such machine?
>
> Is it as simple as untaring a tar file into a specific directory? If
> the answer is yes, what is the name of that directory?
>
> Thanks,
> Sam


Usually by finding it at RPMforge, or EPEL repositories. Take a look at
http://rpm.pbone.net/ for the module you're looking for. Also, for a module
like 'NET::Ldap', you could use the yum syntax "yum info 'perl(NET::Ldap)' and
see what you get.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-05-2008, 11:52 AM
silenceseeker2003@yahoo.com
 
Posts: n/a
Default Re: How do I add a PERL module to an FC4 box?

On Aug 29, 8:53 am, Nico Kadel-Garcia <nka...@gmail.com> wrote:
>
> Usually by finding it at RPMforge, or EPEL repositories. Take a look athttp://rpm.pbone.net/for the module you're looking for. Also, for a module
> like 'NET::Ldap', you could use the yum syntax "yum info 'perl(NET::Ldap)' and
> see what you get.


Thanks! I just discovered 'man perlmodinstall' and this is great. Here
is what it says:

======= START QUOTE ==========
First, are you sure that the module isn't already on your system? Try
"perl -MFoo -e 1". (Replace "Foo" with the name of the module; for
instance, "perl -MCGI::Carp -e 1".

If you don't see an error message, you have the module. (If you do
see an error message, it's still possible you have the module, but
that it's not in your path, which you can display with "perl -e "print
qq(@INC)"".) For the remainder of this document, we'll assume that
you really honestly truly lack an installed module, but have found it
on the CPAN.

So now you have a file ending in .tar.gz (or, less often, .zip). You
know there's a tasty module inside. There are four steps you must now
take:

DECOMPRESS the file UNPACK the file into a directory BUILD the module
(sometimes unnecessary) INSTALL the module.

Here's how to perform each step for each operating system. This is
<not> a substitute for reading the README and INSTALL files that might
have come with your module!
======== END QUOTE =========

I guest that I have some reading to do. :-)

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-05-2008, 11:52 AM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: How do I add a PERL module to an FC4 box?

silenceseeker2003@yahoo.com wrote:
> On Aug 29, 8:53 am, Nico Kadel-Garcia <nka...@gmail.com> wrote:
>> Usually by finding it at RPMforge, or EPEL repositories. Take a look athttp://rpm.pbone.net/for the module you're looking for. Also, for a module
>> like 'NET::Ldap', you could use the yum syntax "yum info 'perl(NET::Ldap)' and
>> see what you get.

>
> Thanks! I just discovered 'man perlmodinstall' and this is great. Here
> is what it says:
>
> ======= START QUOTE ==========
> First, are you sure that the module isn't already on your system? Try
> "perl -MFoo -e 1". (Replace "Foo" with the name of the module; for
> instance, "perl -MCGI::Carp -e 1".
>
> If you don't see an error message, you have the module. (If you do
> see an error message, it's still possible you have the module, but
> that it's not in your path, which you can display with "perl -e "print
> qq(@INC)"".) For the remainder of this document, we'll assume that
> you really honestly truly lack an installed module, but have found it
> on the CPAN.
>
> So now you have a file ending in .tar.gz (or, less often, .zip). You
> know there's a tasty module inside. There are four steps you must now
> take:
>
> DECOMPRESS the file UNPACK the file into a directory BUILD the module
> (sometimes unnecessary) INSTALL the module.



NO-NO-NO-NO-NO!!!!!!!

Do not do this to any OS that uses packaging. You will confuse the tar out of
it, because it *will not know* that you have installed the module and
satisfied dependencies when you install other packages, and which version you
get will depend on your perl module path settings and whether components were
overwritten.

Please, for your own safety and sanity, use the published modules. If you have
to add modules, at least get 'cpan2rpm' as am RPM and use that to build new
RPM's with your Perl tarballs in them.

> Here's how to perform each step for each operating system. This is
> <not> a substitute for reading the README and INSTALL files that might
> have come with your module!
> ======== END QUOTE =========
>
> I guest that I have some reading to do. :-)
>
> Thanks!


REading is good. Learning how Perl's MakeMaker works is also good, but please
don't discard your system's built-in package management. That way lies serious
instability.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 09-05-2008, 11:52 AM
silenceseeker2003@yahoo.com
 
Posts: n/a
Default Re: How do I add a PERL module to an FC4 box?

On Aug 29, 11:06 am, Nico Kadel-Garcia <nka...@gmail.com> wrote:
>
> NO-NO-NO-NO-NO!!!!!!!
>
> Do not do this to any OS that uses packaging. You will confuse the
> tar out of it, because it *will not know* that you have installed the
> module and satisfied dependencies when you install other packages
>


Nico, thank you very much for raising my awareness to this.
Fortunately, I haven't done anything yet on my system so I am glad I
got to read your warning before doing low level stuff.

I have used 'yum' in the past. Assuming that I found an RPM that
contains the perl package in which I am interested (PDF:Reuse), what
would be the correct way to invoke yum to install it for me?

Thanks,
Sam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 09-05-2008, 11:52 AM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: How do I add a PERL module to an FC4 box?

silenceseeker2003@yahoo.com wrote:
> On Aug 29, 11:06 am, Nico Kadel-Garcia <nka...@gmail.com> wrote:
>> NO-NO-NO-NO-NO!!!!!!!
>>
>> Do not do this to any OS that uses packaging. You will confuse the
>> tar out of it, because it *will not know* that you have installed the
>> module and satisfied dependencies when you install other packages
>>

>
> Nico, thank you very much for raising my awareness to this.
> Fortunately, I haven't done anything yet on my system so I am glad I
> got to read your warning before doing low level stuff.
>
> I have used 'yum' in the past. Assuming that I found an RPM that
> contains the perl package in which I am interested (PDF:Reuse), what
> would be the correct way to invoke yum to install it for me?
>
> Thanks,
> Sam


No problem. It's a common confusion: well-written packages have installation
procedures that RPM and Yum, or other tools like apt, live on top of.

If it matches the other components of your system, you should be able to use
'yum install [package.rm]', nad let Yum resolve the dependencies for you. You
may need to add a .repo file in /etc/yum.repos.d/ to point to whatever
additional repository you got the RPM file, to resolve those dependencies.
This is much cleaner than RedHat's old 'up2date' repository manager.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 09-05-2008, 11:52 AM
silenceseeker2003@yahoo.com
 
Posts: n/a
Default Re: How do I add a PERL module to an FC4 box?

On Aug 29, 12:07 pm, Nico Kadel-Garcia <nka...@gmail.com> wrote:
>
> If it matches the other components of your system, you should be able to use
> 'yum install [package.rm]', nad let Yum resolve the dependencies for you. You
> may need to add a .repo file in /etc/yum.repos.d/ to point to whatever
> additional repository you got the RPM file, to resolve those dependencies.
> This is much cleaner than RedHat's old 'up2date' repository manager.


OK - I got to run 'yum' after a loooooooong time of not using it.
Invokes nice memories. :-)

First, I ran: wget http://www.fedorafaq.org/samples/yum.conf.
Then, I ran: yum check-update
Then, I ran: yum update perl

Which had the following result:

=============== START QUOTE ============
/etc> yum update perl
Setting up Update Process
Setting up repositories
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for perl to pack into transaction set.
perl-5.8.6-24.i386.rpm 100% |=========================| 319 kB
00:03
---> Package perl.i386 3:5.8.6-24 set to be updated
--> Running transaction check

Dependencies Resolved

================================================== ======
Package Arch Version Repository
Size
================================================== ======
Updating:
perl i386 3:5.8.6-24 updates-
released 11 M

Transaction Summary
================================================== ======
Install 0 Package(s)
Update 1 Package(s)
Remove 0 Package(s)
Total download size: 11 M
Is this ok [y/N]: y
Downloading Packages:
(1/1): perl-5.8.6-24.i386 100% |=========================| 11 MB
00:41
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : perl #########################
[1/2]
Cleanup : perl #########################
[2/2]

Updated: perl.i386 3:5.8.6-24
Complete!

=============== END QUOTE ============

Now, I ran: /etc> yum info 'perl(NET::Ldap)'
Setting up repositories
Reading repository metadata in from local files

Then, I ran:
/etc> yum info 'perl(PDF::Reuse)'
Setting up repositories
Reading repository metadata in from local files

Does the fact that I received no info from this 'yum info' command
mean that those packages are NOT installed? or available?

Thanks,
Sam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 09-05-2008, 11:52 AM
silenceseeker2003@yahoo.com
 
Posts: n/a
Default Re: How do I add a PERL module to an FC4 box?

On Aug 29, 2:42 pm, "silenceseeker2...@yahoo.com"
<silenceseeker2...@yahoo.com> wrote:
> Then, tried:
>
> /etc> yum install 'perl(PDF::Reuse)'
> Setting up Install Process
> Setting up repositories
> Reading repository metadata in from local files
> Parsing package install arguments
> No Match for argument: perl(PDF::Reuse)
> Nothing to do
> /etc>
>
> Any idea why this didn't work?
>


Well, some more search yielded this:

http://www.cyberciti.biz/faq/how-do-...a-perl-module/

So, I tried:

/etc> perl -MCPAN -e shell

which started with:

/usr/lib/perl5/5.8.6/CPAN/Config.pm initialized.

then, it led through an entire interactive interview just to setup the
CPAN configuration.

I will try no to re-run the above yum install 'perl(PDF::Reuse)' and
see what happens.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 09-05-2008, 11:52 AM
silenceseeker2003@yahoo.com
 
Posts: n/a
Default Re: How do I add a PERL module to an FC4 box?

On Aug 29, 2:59 pm, "silenceseeker2...@yahoo.com"
<silenceseeker2...@yahoo.com> wrote:
>
> /usr/lib/perl5/5.8.6/CPAN/Config.pm initialized.
>
> then, it led through an entire interactive interview just to setup the
> CPAN configuration.
>
> I will try now to re-run the above yum install 'perl(PDF::Reuse)' and
> see what happens.
>


Same thing happened. :-(

/etc> yum install 'perl(PDF::Reuse)'
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: perl(PDF::Reuse)
Nothing to do
/etc>

Will continue to research - unless the ultimate tip chimes in... :-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 09-05-2008, 11:52 AM
silenceseeker2003@yahoo.com
 
Posts: n/a
Default Re: How do I add a PERL module to an FC4 box?

On Aug 29, 3:02 pm, "silenceseeker2...@yahoo.com"
<silenceseeker2...@yahoo.com> wrote:
>
> Will continue to research - unless the ultimate tip chimes in... :-)
>


OMG - did I hit a wall? It seems that I wasn't the first one to
encounter this challenge... Here is a thread from 3 years ago:

http://linux.derkeiler.com/Mailing-L...5-11/1263.html

Do I understand correctly that my only resort is to use CPAN?
directly?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads for: How do I add a PERL module to an FC4 box?

Thread Thread Starter Forum Replies Last Post
Perl module Willem-Jan Meijer Apache Users 1 08-15-2008 08:55 PM
Net::FTP Perl Module Paul Dlug Solaris Sunhelp 0 06-30-2008 09:30 AM
Where can I get perl XML::XQL::DOM module Lars Behrens Slackware Linux Support 6 02-20-2008 07:45 AM
Tk module in Perl klee12 Slackware Linux Support 3 02-20-2008 06:55 AM
perl module help Gary Meerschaert comp.unix.solaris 1 01-11-2008 05:55 PM


All times are GMT. The time now is 11:10 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com