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.
Do you have a C compiler installed? If you want to build from source, you need a compiler! If you do have a C compiler installed, then check the location of the executable and put it in your PATH environment variable. I think you do this with something like
export PATH=$PATH:/directory/to/be/added.
Check this though, as I'm not certain this is correct. Do you really need to build GCC though?
I have been trying to configure GCC and i have gotten to a part where the terminal is outputting the following and I'm stuck!!!:
Code:
john@ubuntu:~/Desktop/gcc-4.1.0$ ../gcc-4.1.0/configure
creating cache ./config.cache
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
checking build system type... i686-pc-linux-gnuoldld
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
john@ubuntu:~/Desktop/gcc-4.1.0$
john@ubuntu:~/Desktop/gcc-4.1.0$
How do I get CC into the terminal for use... I am using the latest distro of Ubuntu... Do I have CC or where can i get it? how do I add it to the terminal? Thanks!!!
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Looks like you need to install a gcc compiler. Do a search on the drive for gcc. If not there then you need to install one. If there then it may not be in your path. If you know the location then to temporary add to your path use the commmnad .
export PATH=$PATH:/some/path:/another/path
You need gcc to compile gcc, believe it or not. if you don't have gcc installed, you'll need to get and install a binary package. Since you're using Ubuntu, sudo apt-get install gcc ought to do the trick.
Jagtek - did you locate a binary copy of gcc and install it (e.g. with "apt-get gcc")? Are things squared away, or do you still want to build gcc from source too?
Yea. I actually found a thread on Ubuntu's fourms today that solved it for me. Thanks for all the help!!!! hopefully soon I will be able to contribute some back!
Oh on a side not anyone with Ubuntu can get gcc installed by just puttting in
sudo apt-get install build-essential
Maybe that will help someone in my situation out!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.