DebianThis forum is for the discussion of Debian Linux.
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.
Distribution: Debian 4.0, Ubuntu 6.10, Ubuntu Server 6.06
Posts: 134
Rep:
libstdc++6 error
I'm having difficulty getting the game euchre installed (I'm using Debian Etch). I downloaded the binary from sourceforge, and when I try to run it, I get the following error:
Code:
error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory
I've searched for this and have found a number of people on a different forum who have solved it by installing a compat-somethingorother .RPM - but they were all using Fedora or Mandriva.
I have everything installed that seems necessary, including libstdc++6, -dev, and libc6, -dev.
Seeing as I hit a roadblock there, I decided to go and download the game's source and try to compile it. Here's where I get slammed:
Code:
checking for gtk-config... no
checking for GTK - version >= 1.2.0... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
configure: error: Cannot find GTK: Is gtk-config in path?
This looks a little more promising. I'm sure one of you (or dozens, most likely) is looking at this and the answer is painfully obvious... but for a guy who's thankfully (or maybe "unfortunately") never really run into big problems compiling, I don't really know what to do now.
Well, somewhere in the makefile should be an entry where the program expects GTK to be. If you are sure where GTK is on your system, change the path in the Makefile, or create a symlink from where the program expects it to where it actually is. Careful, you may break your system as you'll need to be root for making that symlink!
True, but isn't that package installed as a dependency? Couldn't determine if it is, couldn't open the untarred archive files from /tmp with a texteditor to read it.
cd /tmp
wget http://ftp.debian.org/debian/pool/main/g/gtk+1.2/libgtk1.2-dev_1.2.10-18_i386.deb
ar x libgtk1.2-dev_1.2.10-18_i386.deb
zcat control.tar.gz | grep -a -A 10 Version
Debian Etch comes with gcc-4.1, your game's code was compiled with gcc-2, you need to install gcc-2 libraries. I have Debian testing, the packages in synaptic on my system are:
Code:
libstdc++2.10-glibc2
libstdc++2.10-dev
The extraversion (10) is not important, just as long as you install the proper version (2). Not sure if you need both of these, I would think so, might want to try the first one first if you don't want to install too many packages.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.