This content has been marked as final. Show 7 replies
I'm not sure what you are trying to accomplish. Are you trying to install gcc by compiling it from source? Then you might run into a "chicken and egg" problem here - you need a compiler in order to compile gcc :)
However, this should not be necessary, as gcc is included as a pre-compiled package in the distribution. "yum install gcc" should install it.
actually I download gcc-4.6.1.tar.gz ,then extract it in/tmp dir and finally try to execute configure file, but it shows that error :(
Also i tried "yum install gcc", but it reply no package gcc available :(
then what should i do ?
you know I wanna to install "make" and it also says same error "No acceptable C compiler found in $PATH", then I decide to install "gcc" and ... :(
The packages you need are available from the installation DVD, Oracle ULN subscription or public yum following the setup instructions on http://public-yum.oracle.com.
I am new in linux, I have oracle linux 6 only in command promt mode.I suggest to reinstall the OS, but next time, customize the packages. There is a "customize now" ratio button, that will allow you to select a GUI desktop such as gnome or kde, and you can also include the development packages you need including gcc and others.
Stay with Oracle Linux 5 if you plan to install Oracle database. OL 6 is not certified yet and there is no "oracle-validated" package that will help you to setup prerequisites in order to install Oracle database.
first I should thank for your recommendation, i don't want to use GUI, i want to try with the command line syntax to improve my self more ;), by the way i wanna know more about the "yum" could you tell me what is this exactly ? also i tried
how can I install gcc.rpm from OL dvd ?
now I got a new problem, i tried this command "+rpm -Uhv /mnt/cdrom/Packages/gcc-4.4.5-6.e16.x86_64.rpm+" to execute "gcc" package but unbelievable it says "no such file or directory " !! i check the file spell several time and it is correct, I put the screen shot of this here, can you tell me why and what i should do ?
You have a typo in your command: rpm -Uhv /mnt/cdrom/Packages/gcc-4.4.5-6.e*1*6.x86_64.rpm -> this should be a small "L" instead: rpm -Uhv /mnt/cdrom/Packages/gcc-4.4.5-6.el6.x86_64.rpm
By the way, to avoid such typos, let the shell take care of expanding the file name, simply type "gcc-" and press the "Tab" key.