[vox-tech] New Perl is messing up apt-get

Jay Strauss vox-tech@lists.lugod.org
Sat, 29 Mar 2003 14:45:53 -0600


Hi,

I'm running debian woody.  I installed Perl 5.8 from source (into
/usr/local/bin).  Now when I use apt-get I get an error, basically my @INC
doesn't include the necessary directory.  To fix I did:

export PERL5LIB=/usr/share/perl5

How was I supposed to install a new perl to avoid this?

below is my error (and fix):
thanks
Jay

meir:/usr/local/src# apt-get install vim
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  vim
0 packages upgraded, 1 newly installed, 0 to remove and 0  not upgraded.
Need to get 3751kB of archives. After unpacking 12.2MB will be used.
Get:1 ftp://debian.uchicago.edu stable/main vim 6.1.018-1 [3751kB]
Fetched 3751kB in 1m45s (35.6kB/s)
debconf: Perl may be unconfigured (Can't locate Debconf/Log.pm in @INC (@INC
con
tains: /usr/local/lib/perl5/5.8.0/i686-linux /usr/local/lib/perl5/5.8.0
/usr/loc
al/lib/perl5/site_perl/5.8.0/i686-linux /usr/local/lib/perl5/site_perl/5.8.0
/us
r/local/lib/perl5/site_perl .) at (eval 1) line 4.
BEGIN failed--compilation aborted at (eval 1) line 4.
) -- aborting
Selecting previously deselected package vim.
(Reading database ... 36389 files and directories currently installed.)
Unpacking vim (from .../vim_6.1.018-1_i386.deb) ...
Setting up vim (6.1.018-1) ...

meir:/usr/local/src# find / -name Debconf -print
/usr/share/perl5/Debconf

meir:/usr/local/src# export PERL5LIB=/usr/share/perl5

meir:/usr/local/src# apt-get remove vim
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  vim
0 packages upgraded, 0 newly installed, 1 to remove and 0  not upgraded.
Need to get 0B of archives. After unpacking 12.2MB will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 37258 files and directories currently installed.)
Removing vim ...
dpkg - warning: while removing vim, directory `/etc/vim' not empty so not
removed.
meir:/usr/local/src# apt-get install vim
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  vim
0 packages upgraded, 1 newly installed, 0 to remove and 0  not upgraded.
Need to get 0B/3751kB of archives. After unpacking 12.2MB will be used.
Selecting previously deselected package vim.
(Reading database ... 36392 files and directories currently installed.)
Unpacking vim (from .../vim_6.1.018-1_i386.deb) ...
Setting up vim (6.1.018-1) ...