Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Cpan problems

Reply
Thread Tools

Cpan problems

 
 
Jim Ford
Guest
Posts: n/a
 
      01-14-2008
I've used the cpan command line to install modules on several Linux
boxes in the past with no problems - cpan has installed 'out of the
box' with little or no configuration.

I've now set-up a Ubuntu 7.10 system (perl 5.8. and am having problems
with cpan (1.7602). Initially cpan was unable to connect with a site -
it just hung. After removing the local .cpan directory and re-installing
perl I can't even get that far - I'm now getting problems with
initialising cpan with 'o conf init'. This particular problem is that
when it gets to asking me to input a list of continents (with no options
displayed), it just loops stating that whatever I input is not a valid
option. The only way to break out of the loop is with a ^C.

I'd welcome any suggestions to enable me to get cpan up and running!

Jim Ford
 
Reply With Quote
 
 
 
 
John Bokma
Guest
Posts: n/a
 
      01-14-2008
Jim Ford <(E-Mail Removed)> wrote:

> I've used the cpan command line to install modules on several Linux
> boxes in the past with no problems - cpan has installed 'out of the
> box' with little or no configuration.
>
> I've now set-up a Ubuntu 7.10 system (perl 5.8. and am having problems
> with cpan (1.7602). Initially cpan was unable to connect with a site -
> it just hung. After removing the local .cpan directory and re-installing
> perl I can't even get that far - I'm now getting problems with
> initialising cpan with 'o conf init'. This particular problem is that
> when it gets to asking me to input a list of continents (with no options
> displayed), it just loops stating that whatever I input is not a valid
> option. The only way to break out of the loop is with a ^C.
>
> I'd welcome any suggestions to enable me to get cpan up and running!


I am new to Ubuntu, but from what I understand you /must not/ use CPAN,
but use the package manager (synaptic, apt-get) instead to get your
modules.

--
John

Arachnids near Coyolillo - part 1
http://johnbokma.com/mexit/2006/05/0...yolillo-1.html
 
Reply With Quote
 
 
 
 
brian d foy
Guest
Posts: n/a
 
      01-14-2008
[[ This message was both posted and mailed: see
the "To," "Cc," and "Newsgroups" headers for details. ]]

In article <(E-Mail Removed) m>, Jim
Ford <(E-Mail Removed)> wrote:

> I've used the cpan command line to install modules on several Linux
> boxes in the past with no problems - cpan has installed 'out of the
> box' with little or no configuration.
>
> I've now set-up a Ubuntu 7.10 system (perl 5.8. and am having problems
> with cpan (1.7602). Initially cpan was unable to connect with a site -
> it just hung. After removing the local .cpan directory and re-installing
> perl I can't even get that far - I'm now getting problems with
> initialising cpan with 'o conf init'.


Can you a complete transcript of everything that you are doing and
that cpan(1) is outputing?

Do you get the same behaviour when you start CPAN.pm directly?

$ perl -MCPAN -e shell

What's the output of `cpan -v`? I don't think I've ever released a
version 1.7602.

Thanks,
 
Reply With Quote
 
Jim Ford
Guest
Posts: n/a
 
      01-14-2008
In article <Xns9A25869722047castleamber@130.133.1.4>,
http://www.velocityreviews.com/forums/(E-Mail Removed) says...
> Jim Ford <(E-Mail Removed)> wrote:
>
> > I've used the cpan command line to install modules on several Linux
> > boxes in the past with no problems - cpan has installed 'out of the
> > box' with little or no configuration.
> >
> > I've now set-up a Ubuntu 7.10 system (perl 5.8. and am having problems
> > with cpan (1.7602). Initially cpan was unable to connect with a site -
> > it just hung. After removing the local .cpan directory and re-installing
> > perl I can't even get that far - I'm now getting problems with
> > initialising cpan with 'o conf init'. This particular problem is that
> > when it gets to asking me to input a list of continents (with no options
> > displayed), it just loops stating that whatever I input is not a valid
> > option. The only way to break out of the loop is with a ^C.
> >
> > I'd welcome any suggestions to enable me to get cpan up and running!

>
> I am new to Ubuntu, but from what I understand you /must not/ use CPAN,
> but use the package manager (synaptic, apt-get) instead to get your
> modules.


Interesting - where did you see that? I'm not sure how apt-get would
interogate the CPAN archives - doesn't it only deal with the Ubuntu
repositories?

On my old Kubuntu installation (5.10) cpan worked fine.

I'm not sure I really like the 'oven-ready' Linux distros like Ubuntu.
When everything works they're fine, but when something goes wrong they
can be a pain. I might go back to Slackware if I get any more problems.

Jim Ford
 
Reply With Quote
 
John Bokma
Guest
Posts: n/a
 
      01-14-2008
Jim Ford <(E-Mail Removed)> wrote:

> In article <Xns9A25869722047castleamber@130.133.1.4>,
> (E-Mail Removed) says...
>> Jim Ford <(E-Mail Removed)> wrote:


[..]

>> I am new to Ubuntu, but from what I understand you /must not/ use
>> CPAN, but use the package manager (synaptic, apt-get) instead to get
>> your modules.

>
> Interesting - where did you see that? I'm not sure how apt-get would
> interogate the CPAN archives - doesn't it only deal with the Ubuntu
> repositories?


It doesn't use CPAN, it requires that the module(s) you want are available
as a package apt/synaptic can handle. (for Fedora there is software to
make packages via CPAN)

Ubuntu installs some Perl modules via apt AFAIK. If you update those via
CPAN, I can imagine stuff goes out of sync. And vice versa of course.

> On my old Kubuntu installation (5.10) cpan worked fine.


Until you accidentally update a module via CPAN, which is also managed via
apt. At least that's my understanding of it all.

> I'm not sure I really like the 'oven-ready' Linux distros like Ubuntu.
> When everything works they're fine, but when something goes wrong they
> can be a pain.


In my experience that holds for any distro/OS.

(FWIW, I prefer the automatic update process of apt (et al) over manually
once in a while checking for updates, etc.)

--
John

http://johnbokma.com/
 
Reply With Quote
 
Peter Makholm
Guest
Posts: n/a
 
      01-15-2008
John Bokma <(E-Mail Removed)> writes:

> It doesn't use CPAN, it requires that the module(s) you want are available
> as a package apt/synaptic can handle. (for Fedora there is software to
> make packages via CPAN)
>
> Ubuntu installs some Perl modules via apt AFAIK. If you update those via
> CPAN, I can imagine stuff goes out of sync. And vice versa of course.


Most of the times it works just fine.

Of course you will have problems if you got some scripts depending on
different versions of a module. This problem doesn't arise from
having modules installed from both the dirstibution and cpan but from
having incompatible dependencies.

Otherwise most thing should work as long as you respect the correct
usage of INSTALLDIR={perl,site,vendor}.

Except for one tiny thing: Don't ever upgrade Errno.pm!

The standard Errno.pm checks that Config.pm hasn't changed in some
specific way since Errno.pm was generated. So suddenly you system
might break in quite unexpected ways.

//Makholm
 
Reply With Quote
 
John Bokma
Guest
Posts: n/a
 
      01-15-2008
Peter Makholm <(E-Mail Removed)> wrote:

> John Bokma <(E-Mail Removed)> writes:
>
>> It doesn't use CPAN, it requires that the module(s) you want are
>> available as a package apt/synaptic can handle. (for Fedora there is
>> software to make packages via CPAN)
>>
>> Ubuntu installs some Perl modules via apt AFAIK. If you update those
>> via CPAN, I can imagine stuff goes out of sync. And vice versa of
>> course.

>
> Most of the times it works just fine.


Which is not enough for me. Like I already wrote, I prefer a central
upgrade system anyway.

--
John

http://johnbokma.com/mexit/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting 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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 2.6 What modules and extensions are available for Perl? What is CPAN? What does CPAN/src/... mean? PerlFAQ Server Perl Misc 0 01-24-2011 11:00 PM
on windows 7 / cygwin / perl / cpan - cannot make cpan work SVCitian Perl Misc 1 10-22-2010 03:59 PM
rt.cpan.org, search.cpan.org: why so unuseable? Ben Bullock Perl Misc 12 07-08-2008 12:51 PM
Is there a better way to search CPAN than search.cpan.org? usenet@DavidFilmer.com Perl Misc 5 10-12-2005 04:50 AM
Upgrading to CPAN.pm v1.76 install Bundle::CPAN fails carl d. Perl Misc 1 05-10-2005 09:35 PM



Advertisments