semifor / Net-Twitter

A Perl interface to the Twitter APIs
83 stars 37 forks source link

Invalid version format (non-numeric data) at /loader/0x1bed638/App/cpanminus/script.pm line 1134 #45

Closed michichan closed 7 years ago

michichan commented 10 years ago

Yes, I am aware of a previous thread on this.. but upgrading cpanm is not working. I am getting this message on any of the 4.x versions.

root@rectest:/home/cdbs# cpanm --self-upgrade
App::cpanminus is up to date. (1.7001)
root@rectest:/home/cdbs# cpanm --version
cpanm (App::cpanminus) version 1.5007
root@rectest:/home/cdbs# cpanm Net::Twitter
--> Working on Net::Twitter
Fetching http://search.cpan.org/CPAN/authors/id/M/MM/MMIMS/Net-Twitter-4.01004.tar.gz ... OK
Configuring Net-Twitter-4.01004 ... OK
Invalid version format (non-numeric data) at /loader/0x998638/App/cpanminus/script.pm line 1134.

Ubuntu 12.04 64-bit on Digital Ocean

shadowcat-mst commented 10 years ago

That's the self-upgrade process not working - notice you still have 1.5007.

This is because you have a cpanm ahead of the 1.7001 version in your $PATH

This is not a bug in anything except your current shell setup :)

jmacdotorg commented 9 years ago

FWIW, seeing the above two comments helped me resolve this issue on my own machine. I suffered from confusion stemming from cpanm --self-upgrade somehow targeting a different cpanm instance than my perlbrew-bound one. Once I upgraded that one (via perlbrew install-cpanm), I could cpanm Net::Twitter just fine.