Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
isn't it
./configure
?
----------------
the general rules for installing things by compiling them is:
untar it (I can't remember it, but in the previous post it has it)
./configure
make
su (you need to get into root) password for root
make install
exit (?) (you don't want to be root regularly)
titanium_geek
Last edited by titanium_geek; 06-14-2005 at 01:37 PM.
Well, first of all:
1) does your distro have some notion of package management?
--no: switch distro
--yes: install gcc via the package management system.
...so, installing via the package management system it is.
2) does your distro provide you with centralized repositories?
--no: switch distro
--yes: get gcc from there.
3) are the centralized repositories divided into `main', `contrib' and `non-free'?
--no: switch distro
--yes: then you're using The Right Distro
(the jury will disregard question 3)
---
A bit more seriously, though: get the most official, reasonably up-to-date gcc package (rpm, deb, whatever) and install it `The <your-distro> way'. I wouldn't know your distro, so I can't offer specific advice.
Quote:
by the way, i'm using winlinux 2003, compatible to linux 7 or 8
There is no linux 7 and 8. You might mean (Red Hat | Mandrake | Slackware | ...) 7 or 8;
Also, if you go to `User CP -> Edit profile -> Distro' and type in your distro, you don't have to repeat it in every post.
Quote:
and thanx for telling me where to get gcc: Pengy:
If someone helped you, it's customary to thank them in the thread where they provided the help.
In that way they're also more likely to find you that you appreciate the help (i.e. if they're subscribed to the thread the get email notification).
i'm just starting to get familiar linux system, so bare with me:-)
now, i unpacked gcc to root/gcc3
on the terminal window, i typed ./configure --prefix=/opt/gcc-3.0.4
all the directories are okay, i checked them , i get this error
Configuring for a i686-pc-linux-gnuoldld host.
Created "Makefile" in /gcc3/gcc-3.0.4 using "mt-frag"
*The command 'cc-o conftest -g conftest.c ' failed
*You must set the enviroment variable cc to a working compiler
i tried to set my compiler , so i type ./configure i get
*i686-pc-linux-gnuoldld host
then the same messages as a above
what am i doing worng,
*are there any significants between gcc 3 and 4 , will all apps work with both,
i know 4 is better, it must be
i'm just starting to get familiar linux system, so bare with me:-)
sure
Quote:
*The command 'cc-o conftest -g conftest.c ' failed
*You must set the enviroment variable cc to a working compiler
This means that you must have a C compiler in order to compile C programs (such as the C compiler)--there a slight `chicken-or-the-egcs (or eggs)' about it.
The solution is getting a (tarball, package) with gcc binaries. I would think they're available from your distro repositories; if not, you can get them from gcc.gnu.org.
That is exactly what I was going to suggest. Another thing that came into my mind was "installpkg" command. I'm not sure if WinLinux03 supports it or not. You can try.
what you need to do is set gcc to take over cc calls. Say the version of gcc your using to compile this version of gcc is located in /usr/bin, you will need to make a symbolic link from the gcc binary to cc so you would do something like this :
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.