LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-11-2007, 05:29 PM   #1
BaltikaTroika
Member
 
Registered: Sep 2004
Distribution: Debian 4.0, Ubuntu 6.10, Ubuntu Server 6.06
Posts: 134

Rep: Reputation: 15
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.

Any help is greatly appreciated!
 
Old 06-11-2007, 05:51 PM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
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!
 
Old 06-12-2007, 08:13 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Hello

Quote:
The gtk-config script installed by GTK could not be found
Why don't you just install gtk-config ?

The tip from Dutch Master would also work but the above is maybe simpler..
 
Old 06-12-2007, 08:36 AM   #4
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
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.
 
Old 06-12-2007, 09:05 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
http://ftp.debian.org/debian/pool/ma..._1.2.10-18.dsc


Code:
 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
=>

Version: 1.2.10-18
Section: libdevel
Priority: optional
Architecture: i386
Pre-Depends: dpkg (>= 1.6.8)
Depends: libgtk1.2 (= 1.2.10-18), libglib1.2-dev, libx11-dev, libxext-dev, libxi-dev, pkg-config
Suggests: libgtk1.2-doc
Conflicts: libgtk1 (<< 1:1.0.4), libgtk-dev, libgtk1.1.5-dev, libgtk1.1.6-dev, libgtk1.1.7-dev, libgtk1.1.8-dev, libgtk1.1.9-dev, libgtk1.1.11-dev, libgtk1.1.12-dev, libgtk1.1.13-dev, libgtk1.1.14-dev, libgtk1.1.15-dev, libgtk1.1.16-dev, libgtk1.2 (<< 1.2.10-4)
Replaces: libgtk-dev, libgtk1.1-dev, libgtk1.1.5-dev, libgtk1.1.6-dev, libgtk1.1.9-dev, libgtk1.1.11-dev, libgtk1.1.12-dev, libgtk1.1.13-dev, libgtk1.1.14-dev, libgtk1.1.16-dev, libgtk1.2 (<< 1.2.10-4)
Provides: libgtk-dev, libgtk1.1-dev

I think the OP has simply no development files for gtk1.2. Taking this package will also take gtk-config yes.
 
Old 06-14-2007, 02:19 PM   #6
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
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.
 
  


Reply



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
libstdc++.so.6 error taylorchase Linux - Software 3 03-03-2006 07:16 AM
Error: libstdc++-libc6.2-2 .so.3 ceenu99 Linux - Software 2 07-14-2005 11:53 PM
mismatched rpm versions of libstdc++ and libstdc++-devel pcweirdo Linux - Software 8 11-29-2004 09:30 AM
error while loading.... libstdc++.so.5 HTS Programming 3 07-28-2004 02:40 AM
Error regarding libstdc++-libc6.1-2.so.3 kirti Linux - Software 7 06-11-2004 01:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:38 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration