Discussion:
[rancid] Problems after upgrade from 3.1 to 3.2
Alex D.
2015-03-30 19:19:23 UTC
Permalink
Hi all,

after upgrading from 3.1 to 3.2, i got the following error when running
rancid:

***@master:/opt/rancid$ rancid core-dd-ou
"inet_pton" is not exported by the Socket module
Can't continue after import errors at
/opt/rancid-3.2/lib/rancid/rancid.pm line 51
BEGIN failed--compilation aborted at
/opt/rancid-3.2/lib/rancid/rancid.pm line 51.
Compilation failed in require at /opt/rancid/bin/rancid line 61.
BEGIN failed--compilation aborted at /opt/rancid/bin/rancid line 61.

System is debian 6.0.10 with perl 5.10.1
Does anybody know how to fix this issue ?

Many thanks in advance.
Regards,
Alex
Alex D.
2015-03-30 19:57:14 UTC
Permalink
Sorry, after reading the daily digest, i saw, that this issue already
has beed discussed.
# apt-get install dh-make-perl
# dh-make-perl --build --core-ok --cpan ExtUtils::Constant
# dpkg -i ./libextutils-constant-perl*.deb
# dh-make-perl --build --core-ok --cpan Socket
# dpkg -i ./libsocket-perl*.deb
After successfully building a new Socket module, i got this error while
installation.
~# dpkg -i ./libsocket-perl_2.018-1_amd64.deb
(Reading database ... 44338 files and directories currently installed.)
Unpacking libsocket-perl (from .../libsocket-perl_2.018-1_amd64.deb) ...
dpkg: error processing ./libsocket-perl_2.018-1_amd64.deb (--install):
trying to overwrite '/usr/lib/perl/5.10/perllocal.pod', which is also
in package libextutils-constant-perl 0.16-1
Processing triggers for man-db ...
Errors were encountered while processing:
./libsocket-perl_2.018-1_amd64.deb

Any suggestions ?

Regards,
Alex
Hi all,
after upgrading from 3.1 to 3.2, i got the following error when
"inet_pton" is not exported by the Socket module
Can't continue after import errors at
/opt/rancid-3.2/lib/rancid/rancid.pm line 51
BEGIN failed--compilation aborted at
/opt/rancid-3.2/lib/rancid/rancid.pm line 51.
Compilation failed in require at /opt/rancid/bin/rancid line 61.
BEGIN failed--compilation aborted at /opt/rancid/bin/rancid line 61.
System is debian 6.0.10 with perl 5.10.1
Does anybody know how to fix this issue ?
Many thanks in advance.
Regards,
Alex
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
heasley
2015-03-30 20:36:36 UTC
Permalink
Post by Alex D.
Sorry, after reading the daily digest, i saw, that this issue already
has beed discussed.
# apt-get install dh-make-perl
# dh-make-perl --build --core-ok --cpan ExtUtils::Constant
# dpkg -i ./libextutils-constant-perl*.deb
# dh-make-perl --build --core-ok --cpan Socket
# dpkg -i ./libsocket-perl*.deb
After successfully building a new Socket module, i got this error while
installation.
~# dpkg -i ./libsocket-perl_2.018-1_amd64.deb
(Reading database ... 44338 files and directories currently installed.)
Unpacking libsocket-perl (from .../libsocket-perl_2.018-1_amd64.deb) ...
trying to overwrite '/usr/lib/perl/5.10/perllocal.pod', which is also
in package libextutils-constant-perl 0.16-1
Processing triggers for man-db ...
./libsocket-perl_2.018-1_amd64.deb
Any suggestions ?
possibly --force-overwrite ?
Alex D.
2015-03-30 20:50:14 UTC
Permalink
Post by heasley
Post by Alex D.
Sorry, after reading the daily digest, i saw, that this issue already
has beed discussed.
# apt-get install dh-make-perl
# dh-make-perl --build --core-ok --cpan ExtUtils::Constant
# dpkg -i ./libextutils-constant-perl*.deb
# dh-make-perl --build --core-ok --cpan Socket
# dpkg -i ./libsocket-perl*.deb
After successfully building a new Socket module, i got this error while
installation.
~# dpkg -i ./libsocket-perl_2.018-1_amd64.deb
(Reading database ... 44338 files and directories currently installed.)
Unpacking libsocket-perl (from .../libsocket-perl_2.018-1_amd64.deb) ...
trying to overwrite '/usr/lib/perl/5.10/perllocal.pod', which is also
in package libextutils-constant-perl 0.16-1
Processing triggers for man-db ...
./libsocket-perl_2.018-1_amd64.deb
Any suggestions ?
possibly --force-overwrite ?
@heasley: many thanks, this also works and seems to be the better way :-)
(banging my head against the wall, that i didn't read the manpage...)

# dpkg --force-overwrite -i libsocket-perl_2.018-1_amd64.deb
(Reading database ... 44347 files and directories currently installed.)
Preparing to replace libsocket-perl 2.018-1 (using
libsocket-perl_2.018-1_amd64.deb) ...
Unpacking replacement libsocket-perl ...
dpkg: warning: overriding problem because --force enabled:
trying to overwrite '/usr/lib/perl/5.10/perllocal.pod', which is also
in package libextutils-constant-perl 0.16-1
Setting up libsocket-perl (2.018-1) ...
Processing triggers for man-db ...

Alex D.
2015-03-30 20:45:18 UTC
Permalink
Hi,

as a quick workaround, i removed perllocal.pod from .deb archive.

# dpkg-deb -x libsocket-perl_2.018-1_amd64.deb tmp/
# dpkg-deb --control libsocket-perl_2.018-1_amd64.deb tmp/DEBIAN
# rm -r tmp/usr/lib/perl
# rm libsocket-perl_2.018-1_amd64.deb # remove "old" .deb
# dpkg -b tmp libsocket-perl_2.018-1_amd64.deb # build modified .deb
# dpkg -i libsocket-perl_2.018-1_amd64.deb
(Reading database ... 44338 files and directories currently installed.)
Unpacking libsocket-perl (from libsocket-perl_2.018-1_amd64.deb) ...
Setting up libsocket-perl (2.018-1) ...
Processing triggers for man-db ...

And afterwards, i updated /usr/lib/perl/5.10/perllocal.pod manually.
Hope this helps.

Regards,
Alex
Post by Alex D.
Sorry, after reading the daily digest, i saw, that this issue already
has beed discussed.
# apt-get install dh-make-perl
# dh-make-perl --build --core-ok --cpan ExtUtils::Constant
# dpkg -i ./libextutils-constant-perl*.deb
# dh-make-perl --build --core-ok --cpan Socket
# dpkg -i ./libsocket-perl*.deb
After successfully building a new Socket module, i got this error
while installation.
~# dpkg -i ./libsocket-perl_2.018-1_amd64.deb
(Reading database ... 44338 files and directories currently installed.)
Unpacking libsocket-perl (from .../libsocket-perl_2.018-1_amd64.deb) ...
trying to overwrite '/usr/lib/perl/5.10/perllocal.pod', which is also
in package libextutils-constant-perl 0.16-1
Processing triggers for man-db ...
./libsocket-perl_2.018-1_amd64.deb
Any suggestions ?
Regards,
Alex
Hi all,
after upgrading from 3.1 to 3.2, i got the following error when
"inet_pton" is not exported by the Socket module
Can't continue after import errors at
/opt/rancid-3.2/lib/rancid/rancid.pm line 51
BEGIN failed--compilation aborted at
/opt/rancid-3.2/lib/rancid/rancid.pm line 51.
Compilation failed in require at /opt/rancid/bin/rancid line 61.
BEGIN failed--compilation aborted at /opt/rancid/bin/rancid line 61.
System is debian 6.0.10 with perl 5.10.1
Does anybody know how to fix this issue ?
Many thanks in advance.
Regards,
Alex
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Loading...