LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Accidentally nuked anything libgd* - where to begin the restoration? (https://www.linuxquestions.org/questions/linux-general-1/accidentally-nuked-anything-libgd%2A-where-to-begin-the-restoration-91309/)

mrodrigo 09-10-2003 01:19 PM

Accidentally nuked anything libgd* - where to begin the restoration?
 
Hi:

I was following a document to load some libraries for a GIS internet mapping app called Mapserver. Part of the doc called for "cleaning up" the libgd libraries. Problem is, I executed a rm -f /usr/lib/libgd* when it should have been libgd.*

Well, I cam caught in the deadly "INIT:ID "X" Respawing too fast" cycle.

Any ideas what I need to restore?

Thanks

Mark

P.S. This is Redhat 8 running on i386 platform.

MacKtheHacK 09-15-2003 12:15 PM

Yeah, you blew away the GD graphics library and the GDBM database library. Looks like your desktop needs them. :-) Boot it to runlevel 3 instead of 5 and use it in text mode. From there you can use rpm to assess the damage. Probably just forcing a re-install of the "gd" and "gdbm" packages would fix things. I'm not sure why your app's docs said to remove the GD libraries, that doesn't sound like a good idea to me.

BTW: you can find out if files are owned by any installed package by using a pipe such as this one:
/bin/ls /usr/lib/libgd* | xargs -n 1 rpm -qf | sort -u
If there's any output, then you know that you shouldn't remove those files because something else depends on them. I know, that won't prevent accidents like yours, but maybe it will help you down the road.

mrodrigo 09-15-2003 12:30 PM

Yep, thanks for that. Still learning. Got it back up by forcing the GD back in. Not sure what you meant by using RPM to assess the damage. a Rehat RPM?


That command will come in handy. I need to know about dependencies. Do you know of a good Linux book that tells how to do all the command line stuff to check for dependencies, how to load and manage libraries etc?

Thanks

Mark


All times are GMT -5. The time now is 07:24 PM.