LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-29-2004, 07:16 PM   #1
CelticWhisper
LQ Newbie
 
Registered: May 2004
Distribution: Ubuntu 7.10 i386
Posts: 22

Rep: Reputation: 0
qt compiling woes-Beware n00bish questions :)


So I'm trying to compile qt to get the latest version of KDE to run-I run ./configure -system-zlib -qt-gif -system-libpng -system-libjpeg -plugin-imgfmt-mng -thread -no-stl -no-g++-exceptions, then I run make, and I get this error that says:

/usr/lib/qt/bin/moc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
make[2] : *** [.moc/release-shared-mt/qapplication_x11.moc] Error 127
make[2]: Leaving directory `/usr/lib/qt/src'
make[1]: *** [sub=src] Error 2
make[1]: Leaving directory `/usr/lib/qt'
make: *** [init] Error 2

Anyone know how I can get make to run on qt? Running RH9, and both "make" and "/usr/bin/gmake" yield the same results

Thanks much.

Last edited by CelticWhisper; 11-29-2004 at 07:20 PM.
 
Old 11-30-2004, 12:45 AM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
what version of gcc you got there ?
redhat9 came with gcc 3.2.2 yes ?
unfortunately that was libstdc++.so.5
i think libstdc++.so.6 is the gcc 3.4 series
gcc is not a reverse compatable thing so don't replace your old one
but you can try compiling new gcc from source with --prefix=/opt/gcc-3.4
then copy the lib into /usr/lib and see if it will fly
can't imagine if it will work
you can even use the newer compiler to compile stuff but you glibc is compiled with
gcc 3.2 and this sounds like a train wreck in the making
but as long as no system files in /usr are overwriten no harm just be carefull
 
Old 12-01-2004, 04:36 PM   #3
CelticWhisper
LQ Newbie
 
Registered: May 2004
Distribution: Ubuntu 7.10 i386
Posts: 22

Original Poster
Rep: Reputation: 0
Okay, I'm a teeny bit fuzzy on what you're suggesting...I'll try to bear with you though.

You want me to compile the new GCC using the old one, with that --prefix option?

Because...that would mean using ./configure, make, make install, which is where it fails. Kind of a catch-22, isn't it? I think? Unless there's a way to force it to use the old GCC that was already installed?

Heh, these were the n00b questions I warned of. I think what I need is kind of an if/then step-by-step fix. I know it's asking a lot, and I wish I knew more. So many online guides assume a level of knowledge far greater than what I really have, though. Thanks for helping, I really appreciate it.

Also, should I rmdir the gcc directory in my /home, or just leave that be? It's where I untarred and compiled the new GCC.

Thanks,
CelticWhisper

Last edited by CelticWhisper; 12-01-2004 at 05:33 PM.
 
  


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
Compiling woes Cards_STL Linux - Software 8 10-30-2005 10:14 PM
Lots of newbie questions, BEWARE! Draconian992 Linux - Newbie 10 09-18-2003 07:55 AM
using Redhat 9: Please Translate this readme into n00bish bird Linux - Hardware 9 09-09-2003 09:54 PM
compiling woes elliore Slackware 6 07-15-2003 06:51 PM
Kernel compiling woes.... noobix Slackware 7 06-04-2003 11:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:28 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