LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Removing a symbolic Link (https://www.linuxquestions.org/questions/linux-newbie-8/removing-a-symbolic-link-444266/)

michshelly 05-12-2006 08:43 PM

Removing a symbolic Link
 
Hi there,

In my attempt to install packages that were considered "failed dependenices", I installed the package called " compat gcc-7.3-2.96.126.src.rpm". This package is supposed to contain the files "libstdc++-libc6.2-2.so.3".

I then read on a site to link these two files. Which I have done but I still couldn't install avg antivirus software. Now, when I type in ls -l the files are flashing in red.

How do I fix it up, could you tell me please?

Here's what I typed at the bash terminal:
# ln -s /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so/usr/lib/libstdc++-libc6.1-2.so.3

Also, where can I actually find the proper missing dependencies for programs? AVG for instance and tuxpaint

Thanks
Michelle

donv2 05-12-2006 08:53 PM

It appears you made an error in the symbolic link creation, in that you didn't put a space between the the target and the link name. You should be able to do:

rm /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so/usr/lib/libstdc++-libc6.1-2.so.3

to get rid of the existing bad link and then

ln -s /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so /usr/lib/libstdc++-libc6.1-2.so.3

to create the link you wanted. Be careful about the sequence of arguments, you want to be
sure you don't mix the target and link names. The form is:

ln -s <target_here> <link_name_here>

michshelly 05-12-2006 09:06 PM

Hello Donv2,

Thanks for your quick answer. I got it, finally. I ended up just putting : rm libstdc++=1libc6.1-2.sp3.

Gee I make a lot of mistakes and perhaps need better glasses.

thanks
Michelle

Brian1 05-12-2006 09:06 PM

You can also use the -f option to force and overwrite of the softlink.
ln -sf /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so /usr/lib/libstdc++-libc6.1-2.so.3

Brian1

michshelly 05-12-2006 09:19 PM

Hi Brian,

The link doesnt work anyway. Is there somewhere I can get these dependencies, the correct ones?

They are such a pain.

Michelle

donv2 05-12-2006 09:19 PM

Quote:

Originally Posted by michshelly
I ended up just putting : rm libstdc++=1libc6.1-2.sp3.

I hope the 'sp3' at the end here is a typo; if not, you may have removed the wrong file?

michshelly 05-12-2006 09:22 PM

Nothing seems to be missing at the moment. Just the symbolic link has gone and the flashing.

Thanks
Michelle

Brian1 05-13-2006 08:03 AM

I have the same version file /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so and it comes from the rpm package. My system is CentOS 4.4+. Did not see which distro you are using?
compat-libstdc++-296-2.96-132.7.2.rpm

Then the file /usr/lib/libstdc++-libc6.2-2.so.3 is a symbloic link of /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so

Now in your first post you changed the link name from what you need from the beginning to libstdc++-libc6.1-2.so.3 instead of libstdc++-libc6.2-2.so.3

So to create the link if /usr/lib/libstdc++-libc6.2-2.so.3 exist is to use the command
ln -s /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so /usr/lib/libstdc++-libc6.2-2.so.3
First make sure the file /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so exist
Second make sure the link /usr/lib/libstdc++-libc6.2-2.so.3 does not exist.


Also what you have is a source rpm. How are you installing it?

Brian1

lotusjps46 05-13-2006 08:26 AM

Brian1 makes a good point. That "src" in the RPM name means that what you have is probably not what you want. That RPM gives you the source code for compiling the libraries, not the libraries themselves. I think what you want is an RPM with the same name, without the "src" in the name. I could be wrong (you might be compiling the libraries from source), but that RPM will not work without being compiled first.

Best of luck.

C


All times are GMT -5. The time now is 06:36 AM.