The Boomerang Perl Error

More than a year ago I was playing with Perl and had this error message, (I was playing with the delicious package).

Now that I am on a new server I’m trying to install a cron job using the same delicious package again and guess what…

 1: leau.net@cl02:~/data/scripts/delicious$ perl delicious.pl > yes
 2: Can't locate auto/Config/Simple/autosplit.ix in @INC
 3: (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /
 4: usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
 5: /usr/local/lib/site_perl .) at /usr/share/perl/5.8/AutoLoader.pm line 160.
 6: at Config/Simple.pm line 13

Ha! The same error… Somehow I managed to get it running the last time although I forgot what this error means. Do you recognize that feeling?

As far as I remember i kept adding packages like Config/Simple.pm etc.. until I realized it was something else, something “Configuration” or “wrong package installed” … hmm…the wrong Config/Simple.pm…. I don’t know anymore…. I think.

update: Millerh helped me: I copied all Perl Modules from the archives to the folder and they worked, however Config::Simple was one I needed to make it first:

 1:
 2: leau.net@cl13:~/data/scripts/delicious/Config-Simple-4.59$ ls
 3: Changes MANIFEST MANIFEST.SKIP META.yml Makefile.PL README Simple.pm t
 4: leau.net@cl13:~/data/scripts/delicious/Config-Simple-4.59$ perl Makefile.PL
 5: Checking if your kit is complete...
 6: Looks good
 7: Writing Makefile for Config::Simple
 8: leau.net@cl13:~/data/scripts/delicious/Config-Simple-4.59$ make
 9: cp Simple.pm blib/lib/Config/Simple.pm
 10: AutoSplitting blib/lib/Config/Simple.pm (blib/lib/auto/Config/Simple)
 11: Manifying blib/man3/Config::Simple.3pm
 12: leau.net@cl13:~/data/scripts/delicious/Config-Simple-4.59$ make test
 13: PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
 14: t/bug...............ok
 15: t/create............ok
 16: t/guess_syntax......ok
 17: t/import............ok
 18: t/ini...............ok
 19: t/is_modified.......ok
 20: t/read-rv...........ok
 21: t/simple............ok
 22: t/simplified-ini....ok
 23: t/tie...............ok
 24: All tests successful.
 25: Files=10, Tests=89, 1 wallclock secs ( 0.30 cusr + 0.03 csys = 0.33 CPU)

Obviously when I then tried to install it, it gave me an error since I have no root rights on this Grid Server:

 1: leau.net@cl13:~/data/scripts/delicious/Config-Simple-4.59$ make install
 2: mkdir /usr/local/lib/perl: Read-only file system at /usr/share/perl/5.8/ExtUtils/Install.pm line 112
 3: make: *** [pure_site_install] Error 255

So I just copied the contents of /blib/lib to the root of my scripts folder and *presto* it worked. Well… now just a bug remains which is partly because it can not write to table wp_post2cat, which has recently been depricated by WordPress 2.3.

So… let’s see if we can update it to add the del.icio.us tags to the WP tags tables. First … on the codex the general description of the WordPress tables is described:

image

Now what happens when we would add a tag e.g. “wordpress” to a blogposting?

Continue reading The Boomerang Perl Error