MaxM
MaxM

Reputation: 33

Perl: Can't install/use CPAN modules

I'm trying to code a litte RSS Parser in perl. Just as simple as possible. To parse a rss feed (e.g. www.rssfeedhomepage.com/rssfeed.xml) I want to use a module from the CPAN Homepage, because it's much easer than create an own one. But I'm not able to install it. I tryied it using the shell ( "perl -MCPAN -e shell") and manually (unzip, install, make) but it didn't work out. I tried it with severals RSS modules but everytime the same problem. Do you have any ideas? I'm using ubuntu linux as a VM on Windows 7.

Thanks!

Upvotes: 1

Views: 6942

Answers (1)

sukria
sukria

Reputation: 508

I suggest using the awesome cpanminus tool to install a module from CPAN:

First install cpanminus itself:

$ curl -L http://cpanmin.us | perl - --sudo App::cpanminus

Then install whathever module you want like the following:

$ sudo cpanm Some::Module

cpanminus should work out of the box, it's a zeroconf tool written by Tatsuhiko Miyagawa

Upvotes: 8

Related Questions