Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
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.
Where are symbolic links stored? How can I determine what links exist and how can I remove unwanted symbolic links?
I am using Mandrake 8.1 if it makes any difference. Also, I am pretty new at this game so the simpler the explanation the greater the possibility I might understand it.
stored? symlinks aren't "stored" anywhere, they are a special type of file that simply points to another file. you can remove unwanted ones with a normal rm command like any otehr file.
I guess I am not making myself clear. I created (I think) a symbolic link that does not seem to work. I assume it exists somewhere out there in linux land. I would like to examine it, and possibly remove it, but I don't know how to view a file, no less remove it, without knowing its name or where it resides.
How did you create the link? Where did you create it? A link that doesn't work won't hurt anything. You can just leave it if you can't find it. It just takes up a little space.
Here’s the Deal. I downloaded xsane-0.84, from http://www.mostang.com/sane/. The sane-1.0.7 libraries on my box are in “/usr/local/lib” and I guess those are the backends in “/usr/local/lib/sane/”. In order for xsane to locate them the instructions say to add the path “/usr/local/lib” to /etc/ld.so.conf and call “ldconfig”. I did this with no success.
Finally, the instructions state” If all that does not help, make sure that ‘/usr/local/lib/libsane.so.’ are symbolic links to ‘/usr/local/lib/sane/libsane-dll.so.*’ or’ ./sane/libsane-dll.so.*” When I did this I got a message saying something like,”when making multiple links the last item in the link must be a directory. So I made the link again and this time left off the “libsane-dll.so.*” from the second argument. To the best of my knowledge, a link was created but xsane still cannot locate the sane libraries.
So all that being said, I would like to know; 1. If I have a link; 2. Is it going to the right place; and 3. if not can I kill it and try again? If it is a file, I should be able to see it and remove it, but there was no indication when I ran the “ln” command what the file name would be or what directory it would be put in or for that matter if it was even successfully created.
ok do as root, I suppose (mandy is bitching about files ownerships and stuff)
ls -l /usr/local/lib/libsane.so
if it shows you
lrwxrwxrwx ......./usr/local/lib/libsane.so->/usr/local/lib/sane/libsane-dll.so.x
or such you are ok (x is for number), if not, there might be libsane-dll.so.1,libsane-dll.so.2 and so on on the system, then make a symlink to point to one of them not all (can't do it, that's probably why you have this error message) to remove it
just do
rm /usr/local/lib/libsane.so
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.