Jump to content

Perl and Modules


DogTags
 Share

Recommended Posts

Hi All

 

The default MD 9.2 perl install is threaded, and the executable is located at /usr/bin. There are also about 733 perl modules that are recognized.

 

We need to install a non-threaded version of perl, however.

 

So, we installed perl 5.8.2 and the executable is under /usr/local/bin. When we counted the perl modules under this, we found only about 330 modules.

 

The original perl install is working okay, and the 733 modules still show up all right.

 

1. Why does the /usr/local/bin perl not see all 733 modules?

 

2. How can we get the /usr/local/bin/perl install to use the same modules as /usr/bin/perl ?

 

Thing is, we need the DBD::mysql that the /usr/bin/perl recoginizes to work with the /usr/local/bin/perl

 

We tried installing DBD::mysql with a reference to /usr/local/bin/perl, but it returned an error. It couldn't find 'mysql_config'

 

That's why we're thinking that if we can get /usr/loca/bin/perl to use all the same modules as /usr/bin/perl, we should probably be okay.

 

Thanks very much :)

Link to comment
Share on other sites

  • 4 weeks later...

i noticed that you never used CPAN in order to add modules to your perl install.

 

try this from Konsole:

 

perl -MCPAN -e shell

 

at the prompt do (for example):

install Time::Parsedate

 

This will install the Time::Parsedate module - it will be downloaded ,compiled and put into your perl library. Easy peasy.

 

The CPAN network is awesome, in that , you've just downloaded some perl app, and it complains about a module not being loaded.

 

just use CPAN and your problems are solved.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...