Errors installing gcc on RHEL 4
[root@localhost ~]# cd /usr/lib
[root@localhost lib]# find gcc-lib gcc-lib gcc-lib/i386-redhat-linux gcc-lib/i386-redhat-linux/2.96 gcc-lib/i386-redhat-linux/2.96/crtend.o gcc-lib/i386-redhat-linux/2.96/libgcc_eh.a gcc-lib/i386-redhat-linux/2.96/crtbegin.o gcc-lib/i386-redhat-linux/2.96/crtbeginS.o gcc-lib/i386-redhat-linux/2.96/libgcc.a gcc-lib/i386-redhat-linux/2.96/crtendS.o [root@localhost ~]# cd /usr/libexec/ [root@localhost libexec]# find gcc gcc gcc/i386-redhat-linux gcc/i386-redhat-linux/3.4.3 gcc/i386-redhat-linux/3.4.3/cc1 gcc/i386-redhat-linux/3.4.5 [root@localhost ~]# rpm -qa | grep gcc libgcc-3.4.5-2 compat-libgcc-296-2.96-132.7.2 [root@localhost ~]# rpm -ivh gcc-version.rpm error: open of gcc-version.rpm failed: No such file or directory i tried installing libpcap got following results [root@localhost libpcap-1.0.0]# ./configure 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 gcc... no checking for cc... no checking for cl.exe... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. |
Why not use YUM to work out the dependencies for you? RPM is still vaulable, but my whitebox system uses YUM.
eg yum info gcc. |
Quote:
Code:
# rpm -ivh gcc-version.rpm 1. Before moving on to step (2), make sure the file you intend to install is present on your computer. One way to do this is to create a directory listing and read the file names in the directory. If one of the names in the directory listing matches the file you intend to install, then it's all right to move on to step 2. Otherwise it is not all right to move on to step 2. 2. # rpm -ivh (filename) 3. You do understand, don't you, that when I type "rpm (filename)", that my typing (filename) is just a make-believe example file name, and you're supposed to replace (filename) with an actual file name that is located on your computer, in your house. Yes? 4. If this is all too overwhelming, try starting again at step (1) above. This time read more slowly. |
Yum is not installed by default , Redhat EL 4.
'up2date' is used to get packages from Redhat, if you remembered to sign up .. and pay. The system gcc is 3.4.x , the latest update is 3.4.6-11 ( gcc-3.4.6-11.i386.rpm ) gcc4 = gcc4-4.1.2-44.EL4.i386.rpm is available too. ( You can have as many compilers, as you want.) Example link for these packages : http://mirror.centos.org/centos/4.8/...6/CentOS/RPMS/ If you don't have a Redhat account , and not wanting one, why not install the free version of Redhat EL = CentOS ... ..... ..... The command # 'rpm -ivh <package>' is a one time / first time only for that package. The versatile command is 'rpm -Uvh <package>' . Please read 'man rpm' to see why. ..... |
All times are GMT -5. The time now is 08:20 PM. |