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 |
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-25-2004, 03:03 PM
|
#1
|
|
Member
Registered: Jan 2004
Location: New Haven
Distribution: rh9, fc2
Posts: 35
Rep:
|
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
|
|
|
|
09-25-2004, 10:48 PM
|
#2
|
|
Member
Registered: Oct 2003
Location: San Deigo, CA
Distribution: FC3, Win2k Server, XP Pro & 2003 Server
Posts: 198
Rep:
|
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
|
|
|
|
09-26-2004, 12:31 PM
|
#3
|
|
Member
Registered: Jan 2004
Location: New Haven
Distribution: rh9, fc2
Posts: 35
Original Poster
Rep:
|
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
|
|
|
|
09-26-2004, 01:03 PM
|
#4
|
|
Senior Member
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100
Rep:
|
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
|
|
|
|
09-26-2004, 01:22 PM
|
#5
|
|
Member
Registered: Jan 2004
Location: New Haven
Distribution: rh9, fc2
Posts: 35
Original Poster
Rep:
|
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
|
|
|
|
09-26-2004, 02:15 PM
|
#6
|
|
Senior Member
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100
Rep:
|
Right on, good luck with everything!
Peace,
JimBass
|
|
|
|
09-26-2004, 04:49 PM
|
#7
|
|
Member
Registered: Jan 2004
Location: New Haven
Distribution: rh9, fc2
Posts: 35
Original Poster
Rep:
|
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
|
|
|
|
09-26-2004, 05:00 PM
|
#8
|
|
Senior Member
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100
Rep:
|
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.
|
|
|
|
09-27-2004, 10:37 AM
|
#9
|
|
Member
Registered: Jan 2004
Location: New Haven
Distribution: rh9, fc2
Posts: 35
Original Poster
Rep:
|
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
|
|
|
|
09-27-2004, 05:43 PM
|
#10
|
|
Senior Member
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100
Rep:
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:17 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
|
|