LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-03-2005, 11:57 PM   #1
The_Messiah
Member
 
Registered: Jan 2004
Distribution: Slackware 10.1
Posts: 119

Rep: Reputation: 15
Upgrading gcc


I was wondering if I could update my gcc 3.2.3 to gcc 3.4.3.

I have gcc-3.4.3.tar.gz file and I wasn't sure if I could upgrade it without having a .tgz.

Any help is appreciated.
 
Old 04-04-2005, 12:22 AM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
yeah, but you need to do it correctly. If you are not sure on how to proceed, you'd probably be better off using the slackware packages from a slackware mirror ( IIRC they are in the /testing directory).
 
Old 04-04-2005, 12:29 AM   #3
The_Messiah
Member
 
Registered: Jan 2004
Distribution: Slackware 10.1
Posts: 119

Original Poster
Rep: Reputation: 15
www.slackware.com/pb doesn't show any packages that are gcc 3.4.3 highest they go to is 3.3.5...plus it's a slightly large download...took me a few hours to downloaded it.

Perhaps you could point me to a tutorial or something.

I assume upgradepkg wouldn't work unless it was .tgz
 
Old 04-04-2005, 12:52 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
http://slackware.osuosl.org/slackwar...ges/gcc-3.4.3/
http://slackware.mirrors.pair.com/sl...ges/gcc-3.4.3/
ftp://ftp.slackware.com/pub/slackwar...ages/gcc-3.4.3

Last edited by __J; 04-04-2005 at 12:54 AM.
 
Old 04-04-2005, 12:55 AM   #5
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
also, depending on what you use, you don't have to install the compilers you don't need. If you only use/need the c and c++, there is no point in installing objc, java, or f77.

oh yeah, one thing to note, if g++ upgrades libstdc++ to libstdc++.so.6 ( g++-3.x series come with so.5) can't guarantee c++ apps will work any longer unless you recompile them ( or manually toss in a libstdc++.so.5 ) ( think mozilla, firefox, all of kde, qt, etc..).....

Last edited by __J; 04-04-2005 at 12:59 AM.
 
Old 04-04-2005, 01:32 AM   #6
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
You are probably better off installing gcc-3.4.x alongside your current gcc install, especially since you'll be going from 3.3.x to 3.4.x. Maybe install it from source to /usr/local or a similair location. But as __J said, unless you are familiar with compiling gcc from source, you should spend some time reading the gcc documentation at http://gcc.gnu.org/install/. You can also reference the slackware build scripts to see how Pat configures it.
 
Old 04-04-2005, 01:54 AM   #7
BenneJezzerette
Member
 
Registered: Mar 2005
Location: In a Box where Slackware Rocks
Distribution: Slackware 11 -current
Posts: 274

Rep: Reputation: 30
Read the post about X11 and 1024x768, there is a nice explanation I just put there on how to updte all your slackware products.
 
Old 04-04-2005, 04:15 AM   #8
Nobber
Member
 
Registered: Jun 2002
Location: Nova Scotia
Distribution: Debian (home), Kubuntu 7.04 (work)
Posts: 265

Rep: Reputation: 30
Quote:
Originally posted by __J
oh yeah, one thing to note, if g++ upgrades libstdc++ to libstdc++.so.6 ( g++-3.x series come with so.5) can't guarantee c++ apps will work any longer unless you recompile them ( or manually toss in a libstdc++.so.5 ) ( think mozilla, firefox, all of kde, qt, etc..).....
I installed the gcc-g++-3.4.3 slackware package on Slackware 10.1 (where gcc-g++-3.3.4 is standard) and found that the newer libstdc++ sat right next to the older versions, no problems. In any case, if any of the older libstdc++ libs go missing, you can get them back by installing the cxxlibs package.
 
Old 04-04-2005, 12:26 PM   #9
BenneJezzerette
Member
 
Registered: Mar 2005
Location: In a Box where Slackware Rocks
Distribution: Slackware 11 -current
Posts: 274

Rep: Reputation: 30
Quote:
Originally posted by Nobber
I installed the gcc-g++-3.4.3 slackware package on Slackware 10.1 (where gcc-g++-3.3.4 is standard) and found that the newer libstdc++ sat right next to the older versions, no problems. In any case, if any of the older libstdc++ libs go missing, you can get them back by installing the cxxlibs package.
hope you don't mind here....

I am also going to be updating to that. gFTP all the newer packages and then you can install them by two things.

pkgtool and remove the entries for the new items. Or

upgradpkg and let it remove the entries and install the new pkgs. the file is in the sbin area. Its a script so I think you can look at it too.
 
Old 04-05-2005, 12:28 AM   #10
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
Code:
root@carboncopy:/# gcc -v
Reading specs from /usr/lib/gcc/i486-slackware-linux/3.4.3/specs
Configured with: ../gcc-3.4.3/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.4.3
gcc is very easy to compile on Slackware.

Download the gigantic source and configure using the configure flags above. and the make bootstrap (I think, better check the gcc INSTALL/README, I compiled it a long time ago.), checkinstall and you are done.

Oh, compiling gcc takes a long time.
 
Old 04-05-2005, 01:26 AM   #11
BenneJezzerette
Member
 
Registered: Mar 2005
Location: In a Box where Slackware Rocks
Distribution: Slackware 11 -current
Posts: 274

Rep: Reputation: 30
Quote:
Originally posted by carboncopy
Code:
root@carboncopy:/# gcc -v
Reading specs from /usr/lib/gcc/i486-slackware-linux/3.4.3/specs
Configured with: ../gcc-3.4.3/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.4.3
gcc is very easy to compile on Slackware.

Download the gigantic source and configure using the configure flags above. and the make bootstrap (I think, better check the gcc INSTALL/README, I compiled it a long time ago.), checkinstall and you are done.

Oh, compiling gcc takes a long time.
Better yet,. use gFTP and hook up to the slackware site. Look in the slackware-current directory listing and look around for al the packages you need. there is 4 I think. Then ftp all of them in que. Once done, open a terminal and change to the directory you downloaded them to. Type in upgradepkg g*.tgz and all the packages will be upgraded, and all the older ones will be removed. So you won't have a bunch of extra entries in the installed packages list. or a lot of disk space used for things you are no longer using. So far I have upgraded gcc++, X11 GTK and several other updated packages with no problems.
 
  


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
Upgrading gcc-3.4.3 from gcc-3.3.5 on Debian v3.1 MKSrivastava Debian 2 11-21-2005 10:09 PM
Upgrading GCC from 2.96 jared78 Linux - Software 6 05-11-2005 06:00 PM
upgrading gcc abs Slackware 3 08-25-2004 08:57 PM
Upgrading GCC properly. jon_k Linux - Software 2 08-22-2004 11:58 PM
upgrading gcc ecastro Linux From Scratch 1 02-09-2004 10:29 AM

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

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