 |
 |
Installing Perl Modules via cpan
|
 |
|
 |
|
Junior Member
Join Date: Nov 2003
Status:
Offline
|
|
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
|
|
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 ...
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Apr 2001
Location: Cary, NC
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Nov 2003
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|