GCC configuring help PLEASE!!!
Im trying to configure GCC so that I can build it and im a little stuck! Here is what the ReadMe is telling me to do:
To configure GCC: % mkdir objdir % cd objdir % srcdir/configure [options] [target] the location of the GCC file i downloaded is /home/john/Desktop Do I enter?: cd /home/john/Desktop/gcc-4.1.0 mkdir objdir cd objdir srcdir/configure [options] [target] when i did this it kept telling me that there is no such dir as srcdir... not really sure how do to this and any help would be appriciated!!! |
Try this:
Code:
cd /home/john/Desktop/gcc-4.1.0 |
actually there really is no directory srcdir
error messages are so cool that way Code:
cd /home/john/Desktop/gcc-4.1.0 |
Thank you so much... now its telling me that there is no acceptable cc found in path$
|
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? |
Adding CC to terminal
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 |
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 Brian1 |
Export CC
You can have multiple versions of gcc as well and tell it which one you want to use at compile time.
Code:
su |
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.
|
Two threads have been merged. They are about one problem and, together, give a better view on the situation.
|
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!! |
All times are GMT -5. The time now is 03:34 AM. |