Re: Can't locate Dpkg.pm in @INC ...
True, this package has been split out from dpkg and dpkg-dev after the Lenny release. What does dpkg -l dpkg dpkg-dev print? ~ $ dpkg -l dpkg dpkg-dev Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name VersionDescription +++-==-==- ii dpkg 1.15.8.9 Debian package management system un dpkg-dev none (no description available) ~ after going: ~ dpkg --install dpkg-scanpackages/dpkg-dev_1.14.31_all.deb ~ # dpkg -l dpkg dpkg-dev Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++--- ii dpkg 1.15.8.9 Debian package management system iU dpkg-dev 1.14.31 Debian package development tools ~ # ls -l /usr/bin/dpkg-scanpackages -rwxr-xr-x 1 root root 8199 Jan 5 10:10 /usr/bin/dpkg-scanpackages ~ # which dpkg-scanpackages /usr/bin/dpkg-scanpackages ~ I am still getting dependency errors while trying to build my local Package.gz file (for which I need ) ~ dpkg: dependency problems prevent configuration of dpkg-dev: dpkg (1.15.8.9) breaks dpkg-dev ( 1.15.8) and is installed. Version of dpkg-dev to be configured is 1.14.31. dpkg: error processing dpkg-dev (--install): dependency problems - leaving unconfigured Errors were encountered while processing: dpkg-dev ~ and the same error I had before ~ Can't locate Dpkg.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/bin/dpkg-scanpackages line 8. BEGIN failed--compilation aborted at /usr/bin/dpkg-scanpackages line 8. ~ I still see no way out of this dependency problems ~ Thank you for any help lbrtchx -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktinvj_6ogh9b2g4e28tnswag0aq6_ayv3fl_u...@mail.gmail.com
Re: Can't locate Dpkg.pm in @INC ...
On 2011-03-15 14:29 +0100, Albretch Mueller wrote: True, this package has been split out from dpkg and dpkg-dev after the Lenny release. What does dpkg -l dpkg dpkg-dev print? ~ $ dpkg -l dpkg dpkg-dev Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name VersionDescription +++-==-==- ii dpkg 1.15.8.9 Debian package management system un dpkg-dev none (no description available) ~ after going: ~ dpkg --install dpkg-scanpackages/dpkg-dev_1.14.31_all.deb I suppose this gave you some error messages? # dpkg -l dpkg dpkg-dev Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++--- ii dpkg 1.15.8.9 Debian package management system iU dpkg-dev 1.14.31 Debian package development tools This combination does not work, and the package relationships declare that, as can be seen in the error message when dpkg tries to configure dpkg-dev: dpkg: dependency problems prevent configuration of dpkg-dev: dpkg (1.15.8.9) breaks dpkg-dev ( 1.15.8) and is installed. Version of dpkg-dev to be configured is 1.14.31. The reason for this is precisely the move of Dpkg.pm to libdpkg-perl in dpkg version 1.15.8 which breaks older versions of dpkg-dev. I still see no way out of this dependency problems Install a newer dpkg-dev along with its dependencies. And use apt to manage packages, it will prevent you from installing broken package combinations. Sven -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87r5a8l5nn@turtle.gmx.de
Re: Can't locate Dpkg.pm in @INC ...
On Tue, Mar 15, 2011 at 9:29 AM, Albretch Mueller lbrt...@gmail.com wrote: Can't locate Dpkg.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/bin/dpkg-scanpackages line 8. BEGIN failed--compilation aborted at /usr/bin/dpkg-scanpackages line 8. ~ I still see no way out of this dependency problems ~ here is that pm from a ubuntu box. it just exports some variables to whatever 'use's it. you might have to modify it some. haven't looked much into it. maybe look at the program you're trying to get working and see what it's expecting and modify this to suit those needs. also, if you don't know perl, that '1;' needs to be there: root@shawn-desktop:/etc/apache2# cat /usr/share/perl5/Dpkg.pm # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see http://www.gnu.org/licenses/. package Dpkg; use strict; use warnings; # This module is the only one provided by dpkg and not dpkg-dev # # Don't add things here if you don't need them in dpkg itself. # If you do, and also use the new stuff in dpkg-dev, you'll have to bump # the dependency of dpkg-dev on dpkg. use base qw(Exporter); our @EXPORT = qw($version $progname $admindir $dpkglibdir $pkgdatadir); our ($progname) = $0 =~ m#(?:.*/)?([^/]*)#; # The following lines are automatically fixed at install time our $version=1.15.5.6ubuntu2; our $admindir=/var/lib/dpkg; our $dpkglibdir=/usr/lib/dpkg; our $pkgdatadir=/usr/share/dpkg; $pkgdatadir = $ENV{DPKG_DATADIR} if defined $ENV{DPKG_DATADIR}; 1;
Re: Can't locate Dpkg.pm in @INC ...
~ I won't be anywhere near that box for a week. I will have to test it afterwards ~ Thanks lbrtchx -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/AANLkTi=J4H=jrmu3d8j6xtm+0pshroyh2vsuhafop...@mail.gmail.com
Re: Can't locate Dpkg.pm in @INC ...
On Mar 13, 2011 8:06 PM, Albretch Mueller lbrt...@gmail.com wrote: ~ in order to run dpkg-scanpackages, I need to install first lzma, patch, libtimedate-perl and dpkg-dev, which I do via dpkg --install (I have done this before without any problems whatsoever), but then when I try to run dpkg-scanpackages, I get: ~ ~ ~ ~ Can't locate Dpkg.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/bin/dpkg-scanpackages line 8. BEGIN failed--compilation aborted at /usr/bin/dpkg-scanpackages line 8. ~ ~ ~ ~ and when I look into dpkg-scanpackages (a perl script) there is not much I fing ~ # head -8 /usr/bin/dpkg-scanpackages #!/usr/bin/perl use warnings; use strict; use IO::Handle; use IO::File; use Dpkg; ~ What is really going on? To me it looks like a perl (which I am not familiar with) dependency problem. How can I fix it? What its telling you is that Dpkg.pm should be in one of those directories it told you it was looking in. IIRC, apt-get is a perl script too so you might look in there and see if it lists that module in a different namespace and maybe try to modify the script you're trying to run to reflect what you see in apt-get.
Re: Can't locate Dpkg.pm in @INC ...
On 2011-03-14 01:06 +0100, Albretch Mueller wrote: ~ in order to run dpkg-scanpackages, I need to install first lzma, patch, libtimedate-perl and dpkg-dev, which I do via dpkg --install (I have done this before without any problems whatsoever) This is very much not recommended, since dpkg will happily unpack packages with unfulfilled dependencies and only barf when it cannot configure them due to these missing dependencies. Why don't you use apt to install packages? , but then when I try to run dpkg-scanpackages, I get: ~ ~ ~ ~ Can't locate Dpkg.pm in @INC , | $ dpkg -S Dpkg.pm | libdpkg-perl: /usr/share/perl5/Dpkg.pm ` So libdpkg-perl is apparently not installed on your system. What is really going on? To me it looks like a perl (which I am not familiar with) dependency problem. How can I fix it? Install libdpkg-perl, or better run apt-get -f install. Sven -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87ei6a9pjp@turtle.gmx.de
Re: Can't locate Dpkg.pm in @INC ...
~ , | $ dpkg -S Dpkg.pm | libdpkg-perl: /usr/share/perl5/Dpkg.pm ` $ dpkg -S Dpkg.pm dpkg: *Dpkg.pm* not found. $ ls -l /usr/share/perl5/ total 27 drwxr-xr-x 2 root root 2048 Oct 28 2009 Crypt drwxr-xr-x 3 root root 120 Mar 14 07:27 Date drwxr-xr-x 8 root root 4096 Oct 18 17:35 Debconf drwxr-xr-x 5 root root 2048 Jan 24 16:24 Debian -rw-r--r-- 1 root root 13030 Jan 12 06:45 DebianNet.pm drwxr-xr-x 5 root root 440 Mar 14 07:27 Dpkg drwxr-xr-x 3 root root 2048 Dec 14 23:37 File drwxr-xr-x 2 root root 2048 Oct 7 13:27 Foomatic drwxr-xr-x 2 root root 2048 Dec 14 02:05 Text drwxr-xr-x 2 root root60 Mar 14 07:27 Time $ dpkg -S *.pm | grep Dpkg dpkg-dev: /usr/share/perl5/Dpkg/ErrorHandling.pm dpkg-dev: /usr/share/perl5/Dpkg/Cdata.pm dpkg-dev: /usr/share/perl5/Dpkg/Vars.pm dpkg-dev: /usr/share/perl5/Dpkg/Source/Package.pm dpkg-dev: /usr/share/perl5/Dpkg/Source/Patch.pm dpkg-dev: /usr/share/perl5/Dpkg/Source/Archive.pm dpkg-dev: /usr/share/perl5/Dpkg/Substvars.pm dpkg-dev: /usr/share/perl5/Dpkg/Changelog.pm dpkg-dev: /usr/share/perl5/Dpkg/Control.pm dpkg-dev: /usr/share/perl5/Dpkg/IPC.pm dpkg-dev: /usr/share/perl5/Dpkg/Source/Package/V1.pm dpkg-dev: /usr/share/perl5/Dpkg/Source/Functions.pm dpkg-dev: /usr/share/perl5/Dpkg/Shlibs.pm dpkg-dev: /usr/share/perl5/Dpkg/Fields.pm dpkg-dev: /usr/share/perl5/Dpkg/Exit.pm dpkg-dev: /usr/share/perl5/Dpkg/Shlibs/SymbolFile.pm dpkg-dev: /usr/share/perl5/Dpkg/Source/Package/V3/native.pm dpkg-dev: /usr/share/perl5/Dpkg/Shlibs/Objdump.pm dpkg-dev: /usr/share/perl5/Dpkg/Version.pm dpkg-dev: /usr/share/perl5/Dpkg/Deps.pm dpkg-dev: /usr/share/perl5/Dpkg/Source/Package/V3/git.pm dpkg-dev: /usr/share/perl5/Dpkg/Changelog/Debian.pm dpkg-dev: /usr/share/perl5/Dpkg/Source/CompressedFile.pm dpkg-dev: /usr/share/perl5/Dpkg/BuildOptions.pm dpkg-dev: /usr/share/perl5/Dpkg/Source/Package/V3/custom.pm dpkg-dev: /usr/share/perl5/Dpkg/Compression.pm dpkg-dev: /usr/share/perl5/Dpkg/Source/Package/V3/quilt.pm dpkg-dev: /usr/share/perl5/Dpkg/Source/Compressor.pm dpkg-dev: /usr/share/perl5/Dpkg/Source/Package/V2.pm dpkg-dev: /usr/share/perl5/Dpkg/Checksums.pm dpkg-dev: /usr/share/perl5/Dpkg/Source/Package/V3/bzr.pm dpkg-dev: /usr/share/perl5/Dpkg/Arch.pm dpkg-dev: /usr/share/perl5/Dpkg/Path.pm So libdpkg-perl is apparently not installed on your system. but there is no libdpkg-perl in lenny that I can find. http://packages.debian.org/search?searchon=nameskeywords=libdpkg Or where could I find it? ~ lbrtchx -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktimwsvj6kvzcogbhg9ihr4o5ejs1vk6hwnlxt...@mail.gmail.com
Re: Can't locate Dpkg.pm in @INC ...
On 2011-03-14 14:24 +0100, Albretch Mueller wrote: So libdpkg-perl is apparently not installed on your system. but there is no libdpkg-perl in lenny that I can find. True, this package has been split out from dpkg and dpkg-dev after the Lenny release. What does dpkg -l dpkg dpkg-dev print? Sven -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87ipvl91xp@turtle.gmx.de
Re: Can't locate Dpkg.pm in @INC ...
Also, let me point out that perl is installed on my default system: $ uname -a Linux Microknoppix 2.6.37 #13 SMP PREEMPT Sun Jan 23 23:54:32 CET 2011 i686 GNU/Linux $ which perl /usr/bin/perl $ perl --version This is perl, v5.10.1 (*) built for i486-linux-gnu-thread-multi (with 51 registered patches, see perl -V for more detail) Copyright 1987-2009, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using man perl or perldoc perl. If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktikohv_3nsl8-j1teu_ffplsxcvtbhsbr9dvq...@mail.gmail.com