Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Installing Perl Modules via cpan

Installing Perl Modules via cpan
Thread Tools
Junior Member
Join Date: Nov 2003
Status: Offline
Reply With Quote
Nov 29, 2003, 04:07 PM
 
Hi all,

For some reason cpan cannot get any modules using LWP or Net::FTP, only cftp succeeds. Is there a way to get the cpan command to only try using ncftp and not bother with the other two? It is trying them first with all the mirrors I have set up, so installing a module takes very long.

Also, how do I install DBD::mysql?? It is trying to connect as root with no password during the tests, which of course fails.

Many thanks in advance,
_nmk
     
Mac Enthusiast
Join Date: Jul 2002
Location: Leiden, Netherlands
Status: Offline
Reply With Quote
Dec 1, 2003, 02:22 AM
 
Originally posted by _nmk:
Hi all,

For some reason cpan cannot get any modules using LWP or Net::FTP, only cftp succeeds. Is there a way to get the cpan command to only try using ncftp and not bother with the other two? It is trying them first with all the mirrors I have set up, so installing a module takes very long.

Also, how do I install DBD::mysql?? It is trying to connect as root with no password during the tests, which of course fails.

Many thanks in advance,
_nmk
ON jaguar I had problems myslef and ended up using a prcompiled version of the BDI, I foudn using google ...
     
Zim
Senior User
Join Date: Apr 2001
Location: Cary, NC
Status: Offline
Reply With Quote
Dec 1, 2003, 07:08 AM
 
Have you installed LWP (using CPAN)? (just to be sure)

For DBD::mysql, see http://forums.macnn.com/90/mac-os-x/184797/perl-cpan-failure-with-10-3-a/

Cheers,
Mike
     
_nmk  (op)
Junior Member
Join Date: Nov 2003
Status: Offline
Reply With Quote
Dec 2, 2003, 11:17 AM
 
I have installed DBI with no problems, DBD::mysql has trouble.

Also, LWP is up to date.

More ideas?

_nmk
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Dec 2, 2003, 03:06 PM
 
pretty sure i managed to do it, back in 10.1, but i had a ton of trouble getting things to behave. with subsequent builds, i've just downloaded from http://search.cpan.org and saved myself the bother
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Mac Enthusiast
Join Date: Nov 2001
Location: Adelaide, South Australia
Status: Offline
Reply With Quote
Dec 2, 2003, 05:38 PM
 
One common problem with CPAN is that your FTP transfers may not be happening in passive mode, and thus they might be blocked by a firewall. If you haven't already I'd recommend setting the environment variable FTP_PASSIVE to 1: that is,

setenv FTP_PASSIVE=1

if you're using tcsh, or maybe

export FTP_PASSIVE=1

if you've switched to bash or zsh.

Best of luck,
Paul
     
Dedicated MacNNer
Join Date: Jul 2001
Location: NC
Status: Offline
Reply With Quote
Dec 2, 2003, 08:46 PM
 
   As far as DBI goes, I wouldn't have any idea how to change the default user for tests but who cares about tests? Just do a force install and test it with usage.
Gary
A computer scientist is someone who, when told to "Go to Hell", sees the
"go to", rather than the destination, as harmful.
     
Mac Enthusiast
Join Date: Jul 2002
Location: Leiden, Netherlands
Status: Offline
Reply With Quote
Dec 3, 2003, 06:40 AM
 
Originally posted by Paul McCann:
One common problem with CPAN is that your FTP transfers may not be happening in passive mode,
Problems I had, was more compile related.
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:50 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2