Okay, so I found a post on here and it got me going with https://help.ubuntu.com/community/CompilingSoftware
That guy got to (his results):
-------------------------------------------------------
"Then I ran: ./configure
result:
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
Try the --with-gmp and/or --with-mpfr options to specify their locations.
Copies of these libraries' source code can be found at their respective
hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
See also http://gcc.gnu.org/install/prerequisites.html for additional info.
If you obtained GMP and/or MPFR from a vendor distribution package, make
sure that you have installed both the libraries and the header files.
They may be located in separate packages.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
then I ran: make
result:
make: *** No targets specified and no makefile found. Stop.
-------------------------------------------------------------------
(supposedly it was already installed after that for him)
Well, after about an hour, I finally extracted the .tar.bz2 GCC file. Then it took me another hour to realize it extracted to /home.
I opened up the folder "gcc-4.3.3" and it contained |another "GCC" folder a "libdecnumber" folder, a "libgcc" folder, and a "libgomp" folder along with 8 script files. Once script file says "configure" another says "compile".
If I open the "GCC" folder there are 8 more folders (different) with a few scripts (one says configure) and a whole mess of text editor files.
What I did: used alt + f2, Typed "./configure". Tried it with/without terminal, got "Error stating file '/home/myusername/configure': No such file or directory" Then I typed ./configure and ran it with both of the configure scripts, with/without terminal, and got the same error.
Same thing happens when I use alt + cntrl + Fx to enter commands. I need this to compile some text in C language and run it as I'm trying to follow some tutorial to learn C. What am I doing wrong? How do I get this program installed? How do I run it? Thanks for looking!
Bookmarks