Perl installation on Ubuntu

15 01 2009

Well, it looks like I’ll finally get a chance to try perl 5.10 — it’s installed by default.  I wonder if that bodes ill for CPAN.  I’ll try to use apt for as much as I can.

Start with:

apt-get update

apt-get dist-upgrade

I miss yum already, the summary and progress were nice.   So:

apt-get install aptitude

(it’s a Curses shell)

apt-get install locate

actually, it looks like it puts slocate in /etc/alternatives as an alias to locate, but I still get the error:

slocate: fatal error: load_file: Could not open file: /etc/updatedb.conf: No such file or directory

This “solves” the problem

touch /etc/updatedb.conf

https://lists.ubuntu.com/archives/ubuntu-devel/2008-February/025065.html

I miss Redhat again.  Ubuntu isn’t made for shell users.

This is the command I want to see what’s installed:

apt-cache pkgnames

What a great name!  I miss Redhat even more.

Nope, that’s not it, even though it says it is.  I think that’s a partial list of what’s available.

Okay, let’s switch gears.

apt-get install mod_perl

apt-get install modperl

apt-get install mod-perl

none of them exist.  If only there was a way to search packages with apt.

aptitude search mod_perl

aptitude search perl

still not getting anywhere.

It looks like (but you can’t really tell) that apache isn’t installed either.  Just guess:

apt-get install apache2 apache2-dev apache2-doc

whoops — what’s apache2-mpm-tik?  don’t I want apache2-mpm-prefork? Oh well, let’s let it ride:

aptitude install libapache2-mod-perl2 libapache2-mod-perl2-dev

And grab some random ones that sound good, because who knows what I really need?

aptitude install php5 php5-cli php5-pear

The following NEW packages will be installed:
apache2-mpm-prefork{a} libapache2-mod-php5{a} libxml2{a} php5 php5-cli php5-common{a} sgml-base{a}
xml-core{a}
The following packages will be REMOVED:
apache2-mpm-worker{a}

aha!

aptitude install libcatalyst-perl

aptitude install libcatalyst-modules-perl libcatalyst-model-cdbi-perl libcatalyst-engine-apache-perl libcatalyst-view-tt-perl libcatalyst-plugin-session-fast

aptitude install libcatalyst-modules-extra-perl libcatalyst-plugin-formvalidato

aptitude install libcatalyst-plugin-session-fast

aptitude install libxml-smart-perl libxml-writer-perl libxml-generator-perl libxml-xpath-perl libxml-dom-perl libxml-simple-perl libxml-csv-perl

Who knows how much of this worked, or what’s included in it?

That’s enough messing around for now.


Actions

Information

Leave a comment