Debian This forum is for the discussion of Debian Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-26-2004, 11:43 AM
|
#1
|
Member
Registered: Jan 2003
Location: Malden, MA
Distribution: Debian, FreeBSD, gNewSense, Ubuntu, Ututo
Posts: 73
Rep:
|
dpkg broke with manual perl compile. how to reinstall dpkg?
I recently compiled perl from source on my Debian system, unknowingly breaking debconf (and probably other programs).
It seems as though merely moving DebianNet.pm into one of the directories in @INC temporarily fixed this problem. However, now if I try to install the latest unstable dpkg and/or debconf (or anything else, for that matter), I get an error like this:
# dpkg --install dpkg_1.10.22_i386.deb
dpkg: error processing dpkg_1.10.22_i386.deb (--install):
subprocess dpkg-split killed by signal (Segmentation fault)
Errors were encountered while processing:
dpkg_1.10.22_i386.deb
Is there any way I can fix this so I can use the apt system again? Without it, my system is relatively unusable at the moment.
I attempted to make and install dpkg from source, but it didn't seem like it was doing anything. It was all guesswork, since there was no INSTALL file available.
NOTE: I have also posted this to the debian-user mailing list at debian.org, and have received no replies. I posted there about a month ago.
Last edited by cparker15; 07-26-2004 at 05:06 PM.
|
|
|
07-26-2004, 02:11 PM
|
#2
|
Member
Registered: Jan 2003
Location: Malden, MA
Distribution: Debian, FreeBSD, gNewSense, Ubuntu, Ututo
Posts: 73
Original Poster
Rep:
|
Apparently, there is now a new version of dpkg in unstable as of a week or so ago, and this version's tarball has a more traditional install procedure.
It looks like I'm in luck.
|
|
|
07-26-2004, 02:33 PM
|
#3
|
Member
Registered: Jan 2003
Location: Malden, MA
Distribution: Debian, FreeBSD, gNewSense, Ubuntu, Ututo
Posts: 73
Original Poster
Rep:
|
Scratch that. Back to the drawing board.
I can ./configure, but when I go to make dpkg, I get this:
Code:
# make
make all-include all-optlib all-lib all-dpkg-deb all-split all-scripts all-utils
all-main all-dselect all-po all-methods all-man all-doc
make[1]: Entering directory `/downloads/sources/dpkg/dpkg-1.10.23'
make -w -C "include" "all"
make[2]: Entering directory `/downloads/sources/dpkg/dpkg-1.10.23/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/downloads/sources/dpkg/dpkg-1.10.23/include'
make -w -C "optlib" "all"
make[2]: Entering directory `/downloads/sources/dpkg/dpkg-1.10.23/optlib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/downloads/sources/dpkg/dpkg-1.10.23/optlib'
make -w -C "lib" "all"
make[2]: Entering directory `/downloads/sources/dpkg/dpkg-1.10.23/lib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/downloads/sources/dpkg/dpkg-1.10.23/lib'
make -w -C "dpkg-deb" "all"
make[2]: Entering directory `/downloads/sources/dpkg/dpkg-1.10.23/dpkg-deb'
gcc -g -O2 -Wall -Wwrite-strings -Wpointer-arith -Wimplicit -Wnested-externs
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wbad-function-cast
-Wcast-qual -Wcast-align -Winline -Wmissing-noreturn -Wsign-compare -DHAVE_CONFIG_H
-D_GNU_SOURCE -DLOCALEDIR=\"/usr/share/locale\" -I../intl -I../intl -I../include
-I.. -I. -I../include -I.. -I. -I../optlib -DUSE_ZLIB -c build.c
build.c:40:18: zlib.h: No such file or directory
build.c: In function `internalGzip':
build.c:151: error: `gzFile' undeclared (first use in this function)
build.c:151: error: (Each undeclared identifier is reported only once
build.c:151: error: for each function it appears in.)
build.c:151: error: parse error before "gzfile"
build.c:172: error: `gzfile' undeclared (first use in this function)
build.c:172: warning: implicit declaration of function `gzdopen'
build.c:178: warning: implicit declaration of function `gzwrite'
build.c:181: warning: implicit declaration of function `gzerror'
build.c:181: warning: initialization makes pointer from integer without a cast
build.c:182: error: `Z_ERRNO' undeclared (first use in this function)
build.c:191: warning: implicit declaration of function `gzclose'
make[2]: *** [build.o] Error 1
make[2]: Leaving directory `/downloads/sources/dpkg/dpkg-1.10.23/dpkg-deb'
make[1]: *** [all-dpkg-deb] Error 2
make[1]: Leaving directory `/downloads/sources/dpkg/dpkg-1.10.23'
make: *** [all-recursive] Error 2
Now I'm completely lost.
Anybody going to save my day?
Thanks.
Last edited by cparker15; 07-26-2004 at 02:41 PM.
|
|
|
07-26-2004, 05:47 PM
|
#4
|
Member
Registered: Jan 2003
Location: Malden, MA
Distribution: Debian, FreeBSD, gNewSense, Ubuntu, Ututo
Posts: 73
Original Poster
Rep:
|
I figured it out. I needed to install a couple of libraries that I swore I already had.
The two I've had to install so far are:
- zlib
- ncurses
Hopefully, when I finally have all libraries installed (again), I will be able to make dpkg and move on with life with this machine (finally).
|
|
|
07-28-2004, 12:36 PM
|
#5
|
Member
Registered: Jan 2003
Location: Malden, MA
Distribution: Debian, FreeBSD, gNewSense, Ubuntu, Ututo
Posts: 73
Original Poster
Rep:
|
I think I'm going to cry.
I now need to install gettext, it seems. I cannot compile gettext without g77, which I do not have. I've searched everywhere for g77 source, and it's nowhere to be found.
I think I'm going to have to break down and ask my server's host to reinstall dpkg from CD, if they can. I'm hoping I don't have to do that, but at this rate, it seems that is simply the inevitable.
Does ANYONE know what I should do? Anyone???
|
|
|
07-28-2004, 12:45 PM
|
#6
|
Member
Registered: Jan 2003
Location: Malden, MA
Distribution: Debian, FreeBSD, gNewSense, Ubuntu, Ututo
Posts: 73
Original Poster
Rep:
|
I Give Up
I've decided that my quest for fixing dpkg and/or getting everything I need to compile it is a hopeless effort.
Instead, I'm going to downgrade perl, and cross my fingers and hope that it fixes everything. HOW I'm going to downgrade perl, I don't know, but I'll figure out a way.
I just think that if anyone knew what I could do, they would have replied by now.
Thanks for reading.
|
|
|
All times are GMT -5. The time now is 02:51 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|