Warning: Illegal string offset 'addMap' in /home/mhd-01/www.gabcicala.it/htdocs/wp-content/plugins/mygeopositioncom-geotags-geometatags/mygeopositioncom-geotags-geometatags.php on line 639
Warning: Illegal string offset 'position' in /home/mhd-01/www.gabcicala.it/htdocs/wp-content/plugins/mygeopositioncom-geotags-geometatags/mygeopositioncom-geotags-geometatags.php on line 561
Warning: Illegal string offset 'position' in /home/mhd-01/www.gabcicala.it/htdocs/wp-content/plugins/mygeopositioncom-geotags-geometatags/mygeopositioncom-geotags-geometatags.php on line 603
Un trick molto utile per installare su di una Debian stable dei pacchetti CPAN è mediante l’utilizzo della utility dh-make-perl che permette di creare un “.deb” del pacchetto da installare. In questo modo la libreria CPAN viene trattata alla stessa stregua di un normale paccheto Debian e quindi mediante dpkg.
Come primo step bisogna installare il pacchetto dh-make-perl:
host:~# aptitude install dh-make-perl
dopodichè si passa al download e creazione del “.deb” (ad esempio della libreria Apache::LogRegex):
host:~# dh-make-perl –build –cpan Apache::LogRegex
una volta fatto il pacchetto si passa alla sua installazione:
host:~# dpkg -i libapache-logregex-perl_1.5-1_all.deb
Nella directory di compilazione compariranno le seguenti directory e pacchetti che è poi possibile cancellare:
host:~# ls -latrh
-rw-r–r– 1 root root 4.5K 2010-01-21 18:45 libapache-logregex-perl_1.5.orig.tar.gz
drwx—— 6 root root 4.0K 2010-01-21 18:45 Apache-LogRegex-1.5
-rw-r–r– 1 root root 8.2K 2010-01-21 18:45 libapache-logregex-perl_1.5-1_all.deb
Technorati Tags: PERL, CPAN, dh-make-perl, dpkg