LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-12-2006, 08:43 PM   #1
michshelly
Member
 
Registered: Feb 2006
Posts: 71

Rep: Reputation: 15
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
 
Old 05-12-2006, 08:53 PM   #2
donv2
Member
 
Registered: Nov 2004
Location: Upper right corner of USA
Distribution: Ubuntu/Mint, unSLUng (NSLU2), Arch/PlugApps (Dockstar)
Posts: 50

Rep: Reputation: 15
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>
 
Old 05-12-2006, 09:06 PM   #3
michshelly
Member
 
Registered: Feb 2006
Posts: 71

Original Poster
Rep: Reputation: 15
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

Last edited by michshelly; 05-12-2006 at 09:14 PM.
 
Old 05-12-2006, 09:06 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
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
 
Old 05-12-2006, 09:19 PM   #5
michshelly
Member
 
Registered: Feb 2006
Posts: 71

Original Poster
Rep: Reputation: 15
Hi Brian,

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

They are such a pain.

Michelle
 
Old 05-12-2006, 09:19 PM   #6
donv2
Member
 
Registered: Nov 2004
Location: Upper right corner of USA
Distribution: Ubuntu/Mint, unSLUng (NSLU2), Arch/PlugApps (Dockstar)
Posts: 50

Rep: Reputation: 15
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?
 
Old 05-12-2006, 09:22 PM   #7
michshelly
Member
 
Registered: Feb 2006
Posts: 71

Original Poster
Rep: Reputation: 15
Nothing seems to be missing at the moment. Just the symbolic link has gone and the flashing.

Thanks
Michelle
 
Old 05-13-2006, 08:03 AM   #8
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
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
 
Old 05-13-2006, 08:26 AM   #9
lotusjps46
Member
 
Registered: Apr 2003
Location: Dallas
Distribution: Vector Linux, Suse 10.1
Posts: 186

Rep: Reputation: 30
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing a symbolic link lolipop Linux - Newbie 2 03-23-2005 11:53 AM
symbolic link ilnli Slackware 6 01-04-2005 05:05 PM
symbolic link jsetter Linux - Newbie 4 11-22-2004 07:18 AM
Symbolic link bwaynej2002 Linux - General 8 08-25-2003 10:06 PM
Help removing a symbolic link jamesmwlv Linux - Newbie 3 04-25-2003 11:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration