Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
|
|
10-15-2014, 06:07 AM
|
#1
|
Member
Registered: Nov 2013
Distribution: CentOS 6.4
Posts: 209
Rep:
|
Help me please!!! I remove libcap package by mistake and...
I can't run commands like as:
ls, yum, rpm, ./configure, and...
The error is shown:
error while loading shared libraries: libcap.so.2: cannot open shared object file: No such file or directory
|
|
|
10-15-2014, 06:40 AM
|
#2
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,895
|
How did you remove it? First recommendation is to reverse that. If you did a rm of that and a variety of files, you can run package manager to fix and force reinstallation of the appropriate packages.
|
|
|
10-15-2014, 06:43 AM
|
#3
|
Member
Registered: Nov 2013
Distribution: CentOS 6.4
Posts: 209
Original Poster
Rep:
|
Quote:
Originally Posted by rtmistler
How did you remove it? First recommendation is to reverse that. If you did a rm of that and a variety of files, you can run package manager to fix and force reinstallation of the appropriate packages.
|
I've used rpm --nodeps -e libcap. RPM and yum doesn't work!!!
|
|
|
10-15-2014, 06:55 AM
|
#4
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,800
|
you need another host, download the package itself, unpack and copy the file libcap.so.2 into the system. That may allow to reinstall that package. Just copying the file is not sufficient.
|
|
|
10-15-2014, 06:56 AM
|
#5
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,895
|
Quote:
Originally Posted by pan64
you need another host, download the package itself, unpack and copy the file libcap.so.2 into the system. That may allow to reinstall that package. Just copying the file is not sufficient.
|
Either that or download the source for libpcap, then make and install it.
|
|
|
10-15-2014, 07:05 AM
|
#6
|
Member
Registered: Nov 2013
Distribution: CentOS 6.4
Posts: 209
Original Poster
Rep:
|
Quote:
Originally Posted by pan64
you need another host, download the package itself, unpack and copy the file libcap.so.2 into the system. That may allow to reinstall that package. Just copying the file is not sufficient.
|
where should I copy it?
|
|
|
10-15-2014, 07:10 AM
|
#7
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,800
|
it depends on your installation, probably: /lib/libcap.so.2 or /lib64/libcap.so.2 or /lib/x86_64-linux-gnu/libcap.so.2 or /lib/i386-linux-gnu/libcap.so.2
I'm not really sure, I would try /lib first.
|
|
1 members found this post helpful.
|
10-15-2014, 07:20 AM
|
#8
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,895
|
The path should be: /usr/lib/<system-type>-linux-gnu for instance i386 as the system-type. An issue here is that if you download/install on a parallel system, you potentially need the same kernel version, at the very least you need the same libpcap version you had before. That's why I wonder if it's better to try and get the source and then build and install it on your system where the problem is.
|
|
1 members found this post helpful.
|
10-15-2014, 07:32 AM
|
#9
|
Member
Registered: Nov 2013
Distribution: CentOS 6.4
Posts: 209
Original Poster
Rep:
|
Quote:
Originally Posted by pan64
it depends on your installation, probably: /lib/libcap.so.2 or /lib64/libcap.so.2 or /lib/x86_64-linux-gnu/libcap.so.2 or /lib/i386-linux-gnu/libcap.so.2
I'm not really sure, I would try /lib first.
|
Thank you, so much. . I was in a bad situation and you helped me, thank you.
Last edited by massy; 10-15-2014 at 07:33 AM.
|
|
|
10-15-2014, 09:14 AM
|
#10
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,800
|
glad to help you
Quote:
Originally Posted by rtmistler
An issue here is that if you download/install on a parallel system, you potentially need the same kernel version, at the very least you need the same libpcap version you had before.
|
I did not tell him to install it, just download and unpack the given package. Of course the same version - if he was able to identify.
Quote:
Originally Posted by rtmistler
That's why I wonder if it's better to try and get the source and then build and install it on your system where the problem is.
|
I have no idea which one is the better (make/make install from source or just do that trick to be able to reinstall).
|
|
|
All times are GMT -5. The time now is 11:49 AM.
|
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
|
|