gcc compiler install problem
help please with GCC compiler installation.
I found very detailed document on installation. I follow instructions. When I run configure I get: [root@localhost objdir]# ../gcc-3.3.1/configure --prefix=/opt/gcc-3.3.1 Configuring for a i686-pc-linux-gnu host. Created "Makefile" in /gcc3/objdir using "mt-frag" ../gcc-3.3.1/configure: line 8: cc: command not found *** The command 'cc -o conftest -g conftest.c' failed. *** You must set the environment variable CC to a working compiler. [root@localhost objdir]# How to set the environment... Please provide detailed help. Thanks. Michael. |
Are you trying to compile gcc from source?
If so you'll need a working compiler to do so first or follow the steps at the gcc homepage. If you already got a version of gcc on there you'll find where it is with whereis gcc. Normally its /usr/bin/gcc as a symlink to whatever version you got on there. |
"export CC=/usr/bin/cc" should work (if that's where your cc lives).
You need a compiler to compile the new compiler. :) hw |
Probably I don't have any compiler :)
I think I didn't install packages for development 50Chapter3 • It is recommended to run the configure script in a directory other than the source code directory so that the source code tree is completely separate from the place where you build thecompiler. For the sake of this example, I have created a directory /gcc3/objdir and I ran the configure script from that directory. As you already know, the source code tree is under the /gcc3/gcc-3.0.4directory. You may need to add a prefix for GCC installation files. The pre-fix shows the directory where GCC files will be finally installed. The default prefix is /usr/local. This means that GCC binary files will be installed in /usr/local/bindirectory. For installation purposes, I have selected /opt/gcc-3.0.4directory as the prefix. In a typical development environment, you would do something similar to that. Just create a directory under /opt and install all of your tools and applications under /opt. The following command line will configure the GCC compilation process and will create many files under /gcc3/objdir. These files will be used later on to build the compiler. When you start the configure script, the following messages will start scrolling up. [root@laptop objdir]# ../gcc-3.0.4/configure --prefix=/opt/gcc-3.0.4 Configuring for a i686-pc-linux-gnu host.Created "Makefile" in /gcc3/gcc-3.0.4 using "mt-frag"Configuring libiberty...creating cache ../config.cachechecking host system type... i686-pc-linux- |
If possible check please text in previous post.
I created directories exactly as explained. May be I have to do something else for updating env.... |
All times are GMT -5. The time now is 04:39 PM. |