LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 09-25-2004, 03:03 PM   #1
DaddyBad
Member
 
Registered: Jan 2004
Location: New Haven
Distribution: rh9, fc2
Posts: 35

Rep: Reputation: 15
vnc problem finding libstdc++ lib


In FC2

I'm trying to run vncserver and I come up with

vncpasswd: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory.

I tried downloading & installing the rpm, but basically I'm not sure what I'm doing, and it's not working...

rpm -ivh compat-gcc-c++-7.3-2.96.118.i386.rpm
error: Failed dependencies:
compat-gcc = 7.3-2.96.118 is needed by compat-gcc-c++-7.3-2.96.118
compat-libstdc++ = 7.3 is needed by compat-gcc-c++-7.3-2.96.118
compat-libstdc++-devel = 7.3 is needed by compat-gcc-c++-7.3-2.96.118

Can anybody help this poor noob out?

Thanx.

Scott
 
Old 09-25-2004, 10:48 PM   #2
rakriege
Member
 
Registered: Oct 2003
Location: San Deigo, CA
Distribution: FC3, Win2k Server, XP Pro & 2003 Server
Posts: 198

Rep: Reputation: 30
Go to RPM.org and find those listed depdents

compat-gcc = 7.3-2.96.118 is needed by compat-gcc-c++-7.3-2.96.118
compat-libstdc++ = 7.3 is needed by compat-gcc-c++-7.3-2.96.118
compat-libstdc++-devel = 7.3 is needed by compat-gcc-c++-7.3-2.96.118

load those depents first then load your compact-c*.rpm
 
Old 09-26-2004, 12:31 PM   #3
DaddyBad
Member
 
Registered: Jan 2004
Location: New Haven
Distribution: rh9, fc2
Posts: 35

Original Poster
Rep: Reputation: 15
rpm.org sez to use google, which I've already done. The informationthat I've found is
confusing and very vague, much like your reply...

My specific question:
How do I go about "finding" those specific items?

What do I do with them once I've found them? I've already downloaded lots of
blah-blah-blah-version.subversion-somethingelse.rpm. The man pages on rpms are
over my head, assuming I know much more about rpms than I do. I've read through
lots of other posts of similar problems, and tried to understand what they did, but I
don't. I'm not a moron. just a newbie.

How do I load these components? Please be specific.
This seems to be a problem of circular non-resolution. I don't think this is a case
of me being to dumb to load software. I've done plenty of that. This is a special case.

Please try to be helpful. Thank You.

Scott
 
Old 09-26-2004, 01:03 PM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
I think what rakriege meant was that you find the missing dependencies, and install them. rpm.org is fine, I prefer using http://rpmfind.net, but (http://google.com/linux) will help as well. There are many sites to find rpm's at.

I went to rpmfind.net, and put "compat-libstdc++" in the search box. It had 18 hits, so I narrowed it down by putting Fedora Core 2 in the arch search box. The results of that search are here:
http://rpmfind.net/linux/rpm2html/se...fedora+2&arch=

There are several rpm's on that page, and there are 2 specifically for fedora 2, one for a 64 bit processor, and one for the much more common slower chip. I would think you'd want the slower one, unless you're playing with a 64 bit machine.

Looking further, I see that compat-libstdc++ is for backwards compatibility for Redhat 7.3 compilers. If your VNC install is asking for that, it leads me to strongly suspect that you have an old vncserver rpm?
Ah now I see - realvnc and tightvnc have an rpm installer, but it is aimed at redhat 7.3. Ok, you do need it to install from the rpm. You may want to try installing from source, it may drop that dependency issue.

Now, my very strong suggestion to get things working well for you would be to try the apt-get utility. You can find directions on how to download and install it form fedora core on the site http://apt.freshrpms.net/ Apt is a beautiful to resolve dependencies. On other pages of the freshrpms site you'll find instructions on how to upgrade things. A command that can be helpful to you is:
apt-get build-dep vncserver If all goes well, apt will download and install all of those rpms that are giving you grief at present.

One other note - you may be hurting yourself with the command rpm -ivh (name). i is the tag to install, but if you have an older version of the program you need, you should use the u tag, for upgrade. rpm -uvh will upgrade, whereas -ivh will install, and you can end up with 2 different versions of the same command. To know which to use, issue the command "rpm -qa |grep (rpm name)". If you get an answer, you already have a version installed, and use -uvh. If you get nothing back, it is safe to use -ivh.

So in short, you can use "rpm hunt" sites to find those dependencies that you lack, and then install them, or install apt-get and use it to rock the dependencies.

Please write back if this isn't clear, or you need more help on something else.

Peace,
JimBass
 
Old 09-26-2004, 01:22 PM   #5
DaddyBad
Member
 
Registered: Jan 2004
Location: New Haven
Distribution: rh9, fc2
Posts: 35

Original Poster
Rep: Reputation: 15
Thanx Jim,

No I understand why this has been so obtuse & difficult.

Thanks so much for the detailed and explicit reply. I've used apt-get
before, and it is sooo much easier than thrashin around with rpms.

I will either do that, or build from source, as you recommend.
Thanks again. I'll keep you posted...

Scott
 
Old 09-26-2004, 02:15 PM   #6
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
Right on, good luck with everything!

Peace,
JimBass
 
Old 09-26-2004, 04:49 PM   #7
DaddyBad
Member
 
Registered: Jan 2004
Location: New Haven
Distribution: rh9, fc2
Posts: 35

Original Poster
Rep: Reputation: 15
So I'm trying to install apt, which I have used successfully, and here is what happens...

rpm -Uvh apt-*
warning: apt-0.5.15cnc6-1.1.fc2.fr.i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
error: can't create transaction lock

How do I deal with that?

What does it all mean? Why must it all be so difficult.

thanx in advance for any help.

Scott
 
Old 09-26-2004, 05:00 PM   #8
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
Well, if you already have apt installed, there is no need to install it again. issue the command
$rpm -qa |grep apt*

if you have results, you are done, it is in and will work. If you haven't installed it on this system, then use the rpm -ivh for install instead of upgrade. Also you have to be root to install, but I suspect you knew that.

Also looking at your context to install apt, that is slightly odd. The wildcard will work, but only if you are in the same directory that the rpm is in. A much easier way to get the command at a terminal is to type out $ rpm -ivh apt ....... and then hit the tab key. It will fill in the possibilities, so as long as you only have 1 apt rpm in the directory that the terminal is in, it will fill in the remaining text for you. If you happen to have 2 or more, just type enough so you have the beginning of the newest rpm.

Once you either get the new apt-get in or with the one you already ahve, try issuing these commands as root:

apt-get update
apt-get dist-upgrade
apt-get build-dep vncserver

If you have older versions of apt-get installed, then do rpm -uvh with the newest rpm to upgrade them. Or do rpm -e (old apt-get name) to remove the old one, then try to install the newer one. Plenty of possibilities to poke around with.

JimBass

Last edited by JimBass; 09-26-2004 at 05:02 PM.
 
Old 09-27-2004, 10:37 AM   #9
DaddyBad
Member
 
Registered: Jan 2004
Location: New Haven
Distribution: rh9, fc2
Posts: 35

Original Poster
Rep: Reputation: 15
For those of you who want to know how it all worked out...

I installed apt, but STILL couldn't resolve my original vncserver/vncpasswd issues. So...

I downloaded the source for vnc, at http://www.realvnc.com/, and built it all from
scratch. The README includes simple instructions for building it.

Rather than installing the whole mess, and risking having to back out, I renamed my old
/sr/local/bin/vncpasswd and copied the new one there, ran vncserver and it all worked just
fine.

Thanks so much to JimBass for his patience and persistance. This is a shining example of how
well open source community support can work.

Scott
 
Old 09-27-2004, 05:43 PM   #10
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
Scott,

I'm glad everything worked out for you! I manged to make that exact same rpm work on Fedora Core 1 a few months ago, but never tried it on 2. Good choice to build it from source - that way you get a result that will be fully compatible with your system. Or a specific error message to troubleshoot. Also very good on your part to chuck the defective rpmpasswd file, and let a new one be built.

Peace,
JimBass
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
problems finding libstdc++.la Penguin Dropout Linux - Software 5 04-11-2005 05:21 PM
mismatched rpm versions of libstdc++ and libstdc++-devel pcweirdo Linux - Software 8 11-29-2004 09:30 AM
/usr/lib/libstdc++.so.5: version 'GLIBCPP_3.2.2' not found vidi Linux - Software 1 06-10-2004 09:26 AM
Problem when using libstdc++ maga_lm Programming 4 05-04-2004 06:49 AM
problem with libstdc++.la kiedis Linux - Software 3 02-22-2004 03:21 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration