» IT tipps and howto's

Confixx Counterscript fails after upgrading Debian to Lenny

Last Update: 15.03.2010

This HowTo shows the problems I had with the Confixx Counterscript after an upgrade of a Debian server from etch to lenny. And fortunately also how I was able to solve it.

First, what exactly is not working anymore? Launching the Confixx Counterscript manually:

# /root/confixx/confixx_counterscript.pl
Can't locate Confixx/Filter.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /root/confixx/confixx_counterscript.pl line 2. BEGIN failed--compilation aborted at /root/confixx/confixx_counterscript.pl line 2.

Well this error message does not look really good... I have searched on Google and clearly this error is due to the upgrade from Perl 5.8.8 (etch) to Perl 5.10.0 (lenny). But a real solution was not available.
On this website on scriptworker.com I found some hints what to do about it. It basically advices to recompile the Confixx Updater perl module:

cd /root/confixx/admin/CPAN/
tar -xzf Updater-1.0.6.tar.gz
cd Updater-1.0.6
perl Makefile.PL

So far so good, but the following error message appeared when launching perl Makefile.PL:

# perl Makefile.PL
Checking if your kit is complete...
Warning: the following files are missing in your kit:
Filter.xs
Please inform the author.
GCC compiler has no problems.
'file' utility has no problems.
Checking if your kit is complete...
Warning: the following files are missing in your kit:
Filter.xs
Please inform the author.
Writing Makefile for Confixx::Filter

The above mentioned websites does not show information about this error, but it still gives the solution. With the installation of some additional packages the errors will disappear:

aptitude install libxml-dom-perl
aptitude install libproc-process-perl

So now we are able to relaunch the compilation again but this time the command 'make' causes problems:

perl Makefile.PL
make
cp lib/Confixx/Filter.pm blib/lib/Confixx/Filter.pm
Running Mkbootstrap for Confixx::Filter ()
chmod 644 Filter.bs
rm -f blib/arch/auto/Confixx/Filter/Filter.so
cc -shared -O2 -g -L/usr/local/lib Filter.o Cipher.o -o blib/arch/auto/Confixx/Filter/Filter.so \
\

/usr/bin/ld: crti.o: No such file: No such file or directory
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Confixx/Filter/Filter.so] Error 1

This error has nothing to do with perl, it is because of a problem with the compiler. The answer to this error was found on this blog entry on anaaman.blogspot.com which basically says you have to install libc6-dev:

aptitude install libc6-dev

We can now finally run the compilation of the Confixx perl module without errors:

perl Makefile.PL
make
make install

And after this the Confixx Counterscript ran again.

.
RSS feed

Blog Tags:

  AWS   Android   Ansible   Apache   Apple   Atlassian   BSD   Backup   Bash   Bluecoat   CMS   Chef   Cloud   Coding   Consul   Containers   CouchDB   DB   DNS   Database   Databases   Docker   ELK   Elasticsearch   Filebeat   FreeBSD   Galera   Git   GlusterFS   Grafana   Graphics   HAProxy   HTML   Hacks   Hardware   Icinga   Icingaweb   Icingaweb2   Influx   Internet   Java   KVM   Kibana   Kodi   Kubernetes   LVM   LXC   Linux   Logstash   Mac   Macintosh   Mail   MariaDB   Minio   MongoDB   Monitoring   Multimedia   MySQL   NFS   Nagios   Network   Nginx   OSSEC   OTRS   Office   PGSQL   PHP   Perl   Personal   PostgreSQL   Postgres   PowerDNS   Proxmox   Proxy   Python   Rancher   Rant   Redis   Roundcube   SSL   Samba   Seafile   Security   Shell   SmartOS   Solaris   Surveillance   Systemd   TLS   Tomcat   Ubuntu   Unix   VMWare   VMware   Varnish   Virtualization   Windows   Wireless   Wordpress   Wyse   ZFS   Zoneminder   


Update cookies preferences