LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-03-2006, 06:52 AM   #1
mathewzhao
LQ Newbie
 
Registered: Jul 2006
Posts: 7

Rep: Reputation: 0
How can I install gcc on slack 4.0


I had installed gcc (Using Slackware 4.0 packages:gcc.tgz,binutils.tgz,egcs.tgz,libc.tgz) .
when I use g++ to compile a program(by C++ language) ,gcc always shows error messages:"streambuf.h:No such file or dirctory ".
could you tell if I need install another packages?
That's a big trouble!
 
Old 07-03-2006, 07:19 AM   #2
pbhj
Member
 
Registered: Dec 2002
Location: UK
Distribution: Slackware 12; Ubuntu 7.10
Posts: 358

Rep: Reputation: 32
Sorry this doesn't really help, but ... Slackware 4 ???? Why?
 
Old 07-03-2006, 07:21 AM   #3
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
Or is this gcc4.x on Slackware?
Slack 4 was a REALLY long time ago
 
Old 07-03-2006, 07:50 AM   #4
Samoth
Member
 
Registered: Apr 2005
Distribution: Exherbo
Posts: 474
Blog Entries: 1

Rep: Reputation: 32
Slack 4 ran a 1.xx kernel.....I still run slack 3.0 on an old 20Mhz laptop but, really, unless you cant, you better upgrade....

It is also quite possible he meant gcc 4.0; in that case, you go to the slackware package repository and download the .tgz packages for gcc/g++. Then you type upgradepkg/installpkg(depending on whether you have gcc installed already) on the package.
Code:
 installpkg gcc-xxxxxx.tgz
or
Code:
 upgradepkg gcc-xxxxxx.tgz
I would go with the second one.....because if you dont have it installed, it will just install it.

Last edited by Samoth; 07-03-2006 at 07:53 AM.
 
Old 07-03-2006, 10:01 AM   #5
b3rx
Member
 
Registered: Mar 2006
Distribution: Slackware 13.0
Posts: 75

Rep: Reputation: 15
dont forget to add the tag "--install-new" or else it would just produce error

the correct command is

Code:
upgradepkg --install-new gcc-xxxxx.tgz
 
Old 07-03-2006, 04:57 PM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
Look at the package names -that's old Slackware. I had pretty good luck running 3.3 and 3.5 both as my first linux installations, running inside MacBochs on my wifes iMac under Mac OS-9.3. Sink or swim!
Anyway, you really out to just upgrade as the new slackware runs just as easily on old hardware as ever.
Is the problem that you have to do a floppy installation, I mean you have no internet connection or CD drive with the computer?
 
Old 07-04-2006, 05:23 AM   #7
mathewzhao
LQ Newbie
 
Registered: Jul 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for your response!
I use slackware 4.0, not gcc 4.0
you suprise why I don't upgrade slaclware to higher version.
The reason is :I only use slackware with gcc(learning C language),and slackware 4.0 is enough for me.When I need use g++ now(Learing C++ Languge),I meet the problem.
By the way,My harddisk is 800M which capability is really small.
 
Old 07-04-2006, 02:57 PM   #8
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
You can easily fit a system with light-weight GUI and all you need for compiling in about 400-500 MB.

Since you are learning C, it would be better if you used a modern version of gcc since the coding standards have changed a lot over the years. I use various compilers on my system since I like to use some programs that were written awhile ago. Even stuff from around the year 2000 won't always compile with modern gcc and using modern libc.
Updating will also make it easier to get help with your problems here on the forum.
 
  


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
gcc upgrade in Slack 10.2 for wireless Belkin networking linuxhippy Slackware 3 05-30-2006 06:25 PM
Help me install GCC today! <-- 1yr without gcc :( nectron101 Linux - Newbie 4 04-17-2006 08:57 PM
install new gcc v3.4.5 over gcc v3.2.2 on red hat 9 mlaich Linux - Newbie 2 01-01-2006 09:52 PM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 03:13 PM
Slack 9.1 - Anyone else had gcc problems? jharris Slackware 3 10-18-2003 07:47 PM

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

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