LinuxQuestions.org
Visit Jeremy's Blog.
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 03-21-2006, 12:27 AM   #1
Dralnu
Member
 
Registered: Jul 2005
Posts: 335

Rep: Reputation: Disabled
GCC 4.x on SuSe 9.3 Pro Install/Compile


I'm not used to installing things from source, so I'll put everything here to get some help. The files that came with it are less then helpful. Doesn't make much sense to me (I got up to configuring. Anywho, here is my problem...

I've got an older version of GCC on my computer (3.2 I think). I downloaded GCC 4.1 because I need a library it has to run Wine 0.9.10, plus the upgrade might not be that bad. Anyways, I need either an faq for the installasion process, or pretty much a step-by-step walkthrough.

Thanks

BTW, the library I need is

#### YaST2 conflicts list - generated 2006-03-20 06:36:27 ####

libstdc++.so.6 not available
Required by:
wine requires libstdc++.so.6
Conflict Resolution:
( ) Remove the Referring Package
Do Not Install wine
( ) Ignore Conflict and Risk System Inconsistencies
wine 0.9.10-0.1 conflict
Unresolved Requirements:
wine requires libstdc++.so.6
Conflict Resolution:
( ) Do Not Install wine
( ) Ignore Conflict and Risk System Inconsistencies

#### YaST2 conflicts list END ###

thats the conflict.txt the YaST2 generated, so I figure that will help. In any case, thanks for the help
 
Old 03-21-2006, 04:09 AM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
you might be better off installing wine from source instead of gcc-4. Try installing it to /opt/wine ( or build an rpm of your build, check out stuff like checkinstall for this ) and setting up your paths and you should be good to go. If you really want to upgrade gcc, in a terminal do:
Code:
gcc -v
that will give you the configure options used to build the compiler that you have now, it's a good idea to use the same or similar options if you are upgrading, and if you are installing it in /usr, I highly recommend building an rpm of your build and installing it instead of "make install".

Last edited by __J; 03-21-2006 at 04:13 AM.
 
Old 03-21-2006, 01:41 PM   #3
Dralnu
Member
 
Registered: Jul 2005
Posts: 335

Original Poster
Rep: Reputation: Disabled
Ok, that helps some, but how the heck does one build an rpm of it? I tried to uninstall the old gcc, but alot of the files that went with it, removing them could cause system problems (so says YaST2). I think I may have the rpmbuild tool on my comp somewhere (if not, its prolly on disk somewhere), and to explain my newbie-ness, I'm a fairly recent Whinedoze convert.

Thanks for the info
 
Old 03-21-2006, 03:26 PM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
http://asic-linux.com.mx/~izto/checkinstall/

this is what I use, but there are other tools available. If you don't want to remove the old one (gcc), you can install the new one in /opt (something like /opt/gcc-4) and add /opt/gcc-4/lib to /etc/ld.so.conf and (as root) run ldconfig. If you want to use the new compiler instead of the 3.2 one, simply change your path to point to the new one before it hits the one in /usr/bin:
Code:
export PATH=/opt/gcc-4/bin:$PATH
this makes /opt/gcc-4/bin the very first directory searched for commands so gcc-4 will be picked up before the other one.
(if you just need the libstdc++.so.6 you will not need to alter your path for this, or even use the new compiler if you don't want to, just make sure you put the entry in /etc/ld.so.conf and run ldconfig).

Last edited by __J; 03-21-2006 at 03:27 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
can't compile simple C++ programs on Suse 9.1 after installing gcc cyclebain Linux - Software 9 07-04-2007 08:04 AM
Suse 9.3 Pro gcc install problem Detriamus SUSE / openSUSE 2 10-09-2005 06:11 PM
Compile GCC 3.3 on Minimal Install Enterprise xcel Linux - Newbie 2 01-31-2005 04:48 PM
instruction on how to compile new kernel for suse pro 9.1 feetyouwell Linux - Software 0 11-07-2004 02:42 PM
Problems Partitioning XP Pro to install Suse 9.1 Pro spcmiller Linux - Newbie 1 07-27-2004 11:08 PM

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

All times are GMT -5. The time now is 02:59 PM.

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