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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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
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.
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.
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.