ChopperCharles has asked for the wisdom of the Perl Monks concerning the following question:

I want to install this: http://search.cpan.org/~tokuhirom/AnyEvent-MPRPC-0.13/lib/AnyEvent/MPRPC/Client.pm I'm installing it on an ubuntu virtual machine. "sudo apt-get install libanyevent" wasn't enough. It installed AnyEvent, but it didn't get the RPC that I need. How do I get this to install? I'm a Windows guy, so you're going to have to be specific and list the exact commands, I fear. :( Thanks! Charles.

Replies are listed 'Best First'.
Re: How to install Anyevent MPRPC?
by Anonymous Monk on Feb 07, 2012 at 03:12 UTC
Re: How to install Anyevent MPRPC?
by shriken (Priest) on Feb 07, 2012 at 17:04 UTC

    Are you aware there are two different ways to tackle managing the Perl modules? You can use Ubuntu's package management, or you can install your own "local" Perl and use CPAN to dial the modules as you wish.

    The easiest, and least effort, is to "apt-get install" the apropriate Ubuntu package for the Perl module you want. You can search on the packages.ubuntu.com site to see if there is a package for the module(s) you want. (And, as already mentioned, Ubuntu and apt-get aren't apropos of PerlMonks.) You CAN fire up the Ubuntu-installed Perl's cpan utility, but you can run into problems. Subsequent Ubuntu updates may rollback, step on, or cause incompatibilities with modules you've installed by hand. Anyway, if Ubuntu has a package for the module you want, just apt-get install that package and leave your system Perl "on track" with Ubuntu packages.

    For total control, you can download a copy of perl and compile/install it somewhere on your system. Then you use cpan (the command line utility) to install and manage your modules. Then you invoke your "local" perl specifically when coding, leaving the system Perl in a state exactly as your system packages expect it to be.

      The easiest, and least effort, is to "apt-get install" the apropriate Ubuntu package for the Perl module you want.

      Gee, thats what the OP was trying to do, but apt-get doesn't pack all of CPAN, there doesn't seem to be a

      libanyevent-mprpc-perl

      and AnyEvent::MPRPC::Client is pure-perl

      http://www.deepakg.com/prog/2009/01/cpan-modules-on-ubuntu-apt-get-vs-perl-mcpan/

      sudo apt-get libanyevent-perl

      sudo cpan AnyEvent::MPRPC::Client

      I don't know what "apropos" means. "sudo perl -MCPAN -e 'install AnyEvent::MPRPC'" fixed my problem and installed it. Of course, now the problem is that it is missing basic functionality that the ruby version of MessagePack-RPC has (like Login, for instance). Sigh. Charles.