Linux - NewbieThis 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.
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.
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
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
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.
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.
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:
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.