Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-03-2006, 06:52 AM
|
#1
|
LQ Newbie
Registered: Jul 2006
Posts: 7
Rep:
|
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!
|
|
|
07-03-2006, 07:19 AM
|
#2
|
Member
Registered: Dec 2002
Location: UK
Distribution: Slackware 12; Ubuntu 7.10
Posts: 358
Rep:
|
Sorry this doesn't really help, but ... Slackware 4 ???? Why?
|
|
|
07-03-2006, 07:21 AM
|
#3
|
Member
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770
Rep:
|
Or is this gcc4.x on Slackware?
Slack 4 was a REALLY long time ago
|
|
|
07-03-2006, 07:50 AM
|
#4
|
Member
Registered: Apr 2005
Distribution: Exherbo
Posts: 474
Rep:
|
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.
|
|
|
07-03-2006, 10:01 AM
|
#5
|
Member
Registered: Mar 2006
Distribution: Slackware 13.0
Posts: 75
Rep:
|
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
|
|
|
07-03-2006, 04:57 PM
|
#6
|
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928
|
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?
|
|
|
07-04-2006, 05:23 AM
|
#7
|
LQ Newbie
Registered: Jul 2006
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
07-04-2006, 02:57 PM
|
#8
|
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928
|
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.
|
|
|
All times are GMT -5. The time now is 10:22 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|