0

i was running my makefile which was using gcc perfectly fine until it stopped after a second configuration to tell me zlib is missing. so i installed the lib64z1-dev package from aptitude and proceeded to run make again when it stopped by telling me it can't find gcc. i looked for gcc in /usr/bin and mysteriously it is gone. I have no record in my console of doing anything in between other than running apt-get to install the libz package. though it sounds strange, it seems like installing the package somehow deleted my gcc executable. does anyone know why happened?

A1A2A3A4
  • 413
  • 1
  • 5
  • 11
  • if installing a dev package for a "simple" library forces removal of a compiler, then there's something seriously wrong with your setup, or the distro's packaging policies. – Marc B Jan 07 '14 at 14:17
  • yes, i have recently installed PearOS, so it's just like a fresh install of Ubuntu... – A1A2A3A4 Jan 07 '14 at 14:18
  • this is probably too strange and doesn't give enough clues for somebody to help me with. it's no problem to reinstall the libc package for gcc but i just want to understand what phantom caused this – A1A2A3A4 Jan 07 '14 at 14:19
  • check the dependencies of whatever you installed. it'll say what it requires, what it supersedes, etc... – Marc B Jan 07 '14 at 14:22
  • apt-cache depends lib64z1-dev lib64z1-dev:i386 Depends: lib64z1:i386 Depends: zlib1g-dev:i386 Depends: libc6-dev-amd64:i386 Replaces: Replaces: – A1A2A3A4 Jan 07 '14 at 14:30
  • http://packages.debian.org/squeeze/amd64-libs i think this is telling me that lib64gcc1 depends on amd64-libs-dev (or is it the other way around?). in any case this gives me more of an explanation – A1A2A3A4 Jan 07 '14 at 14:31
  • okay at this point i can't even do sudo apt-get autoremove because sudo and su have been removed from the /usr/bin. i think i'll have to take this up with the PearOS people. but isn't the apt package management independent of the distribution as long as its debian? is there a difference in how one debian distro handles apt packaging from another? – A1A2A3A4 Jan 07 '14 at 14:36
  • 1
    in that case, your system is totally hosed. Installing a library should **NOT** cascade up the system tree and remove fundamental system binaries. If sudo and su are gone, your system is totally fubared. – Marc B Jan 07 '14 at 14:37
  • yes i'll be reinstalling my os. my question is, is this a problem with the particular distribution? because aren't all dependencies and package managing done by debian? – A1A2A3A4 Jan 07 '14 at 14:43
  • no. debian might have been the basis of pearos, but the pearos people will simply take debian packages, compile them themselves, and add/remove/customize whatever it is they do to make "pearos" different from plain debian. Consider it like a Samsung Android phone. It might be running Google's Android, but Samsung's done a LOT to customize/modify the thing, so it's no longer "plain" android - problems with a samsung phone are samsung's problems, not googles, because it's not the original OS anymore. – Marc B Jan 07 '14 at 14:45
  • okay thanks for explaining that point. i'll comment on pearOS's forum, i guess that should help them. – A1A2A3A4 Jan 07 '14 at 14:47
  • and i guess this is why it's better to use the more popular distros like ubuntu and mint... – A1A2A3A4 Jan 07 '14 at 14:47

0 Answers0