Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: gboat on August 31, 2006, 09:47:13 AM
-
hi, i am new for linux, i want installed gcc in my server 7, I got some trouble , here is some information :-
[root@npf gccbuild]#tar zxvf gcc.3.4.6.tar.gz
[root@npf gccbuild]#yum install gcc
+++++++++++++++++++++++++++++++++++++++++++
Warning: Additional commands may be required after running yum
+++++++++++++++++++++++++++++++++++++++++++
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
No Match for Argument : gcc
Nothing to do
+++++++++++++++++++++++++++++++++++++++++++
No new rpms were installed. No additional commands are required.
+++++++++++++++++++++++++++++++++++++++++++
is somebody help me how to set it up step by step? Thx !
-
You can use the tar file for building / compiling gcc yourself. I suppose that is not what you want. The easiest way is retrieving and installing it with yum (which you seemed to try as well). You first have to enable the correct repositories.
This should do it for you:
- Go to your server manager --> 'Software installer' --> 'Change software installer settings' and enable the CentOS software repositories
- Open a command line console and enter following commands:
- yum install gcc
- yum install gcc-c++
- If you no longer need them, disable the CentOS software repositories.
-
Or. do it on one line...
yum --enablerepo=base --enablerepo=updates install gcc-c++ gcc
[root@tiger ~]# yum --enablerepo=base --enablerepo=updates install gcc-c++ gcc
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package gcc-c++.i386 0:3.4.6-3 set to be updated
---> Package gcc.i386 0:3.4.6-3 set to be updated
--> Running transaction check
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
--> Processing Dependency: libstdc++ = 3.4.6 for package: gcc-c++
--> Processing Dependency: libstdc++-devel = 3.4.6 for package: gcc-c++
--> Processing Dependency: cpp = 3.4.6-3 for package: gcc
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package glibc-devel.i386 0:2.3.4-2.25 set to be updated
---> Package cpp.i386 0:3.4.6-3 set to be updated
---> Package libstdc++-devel.i386 0:3.4.6-3 set to be updated
---> Package libstdc++.i386 0:3.4.6-3 set to be updated
--> Running transaction check
--> Processing Dependency: glibc-headers = 2.3.4-2.25 for package: glibc-devel
--> Processing Dependency: glibc-headers for package: glibc-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package glibc-headers.i386 0:2.3.4-2.25 set to be updated
--> Running transaction check
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers
--> Processing Dependency: kernel-headers for package: glibc-headers
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package glibc-kernheaders.i386 0:2.4-9.1.98.EL set to be updated
--> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
gcc i386 3.4.6-3 base 4.4 M
gcc-c++ i386 3.4.6-3 base 2.4 M
Installing for dependencies:
cpp i386 3.4.6-3 base 1.6 M
glibc-devel i386 2.3.4-2.25 base 1.9 M
glibc-headers i386 2.3.4-2.25 base 582 k
glibc-kernheaders i386 2.4-9.1.98.EL base 693 k
libstdc++-devel i386 3.4.6-3 base 8.6 M
Updating for dependencies:
libstdc++ i386 3.4.6-3 base 281 k
Transaction Summary
=============================================================================
Install 7 Package(s)
Update 1 Package(s)
Remove 0 Package(s)
Total download size: 20 M
Is this ok [y/N]:
For more help with yum...
man yum
For a list of yum repositories avaiable on your system..
db yum_repositories show | more
-
thx for your reply, i have enabled repositories all of them but still work failed :
Enabled repositories :
SME Server -addons
SME Server -os
SME Server -updates
SME Server -updates testing
[root@npf ~]# yum install gcc
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: gcc
Nothing to do
================================================================
No new rpms were installed. No additional commands are required.
================================================================
:cry: :cry:
-
thx for your reply, i have enabled repositories all of them but still work failed :
Enabled repositories :
SME Server -addons
SME Server -os
SME Server -updates
SME Server -updates testing
[root@npf ~]# yum install gcc
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: gcc
Nothing to do
================================================================
No new rpms were installed. No additional commands are required.
================================================================
:cry: :cry:
Maybe because you did the SME repositories and not the Centos ones which may not be visable in Server Manager.
Do the single command line I suggested and let me know how it went.
-
:-D :-D Thanks william_syd , it 's work!
-
:-D :-D william_syd,is it what you want? and thanks again
base : ################################################## 1500/1500
Added 1500 new packages, deleted 0 old in 13.69 seconds
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for gcc-c++ to pack into transaction set.
gcc-c%2B%2B-3.4.6-3.i386. 100% |=========================| 35 kB 00:11
---> Package gcc-c++.i386 0:3.4.6-3 set to be updated
---> Downloading header for gcc to pack into transaction set.
gcc-3.4.6-3.i386.rpm 100% |=========================| 42 kB 00:05
---> Package gcc.i386 0:3.4.6-3 set to be updated
--> Running transaction check
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
--> Processing Dependency: libstdc++ = 3.4.6 for package: gcc-c++
--> Processing Dependency: libgcc >= 3.4.6-3 for package: gcc
--> Processing Dependency: libstdc++-devel = 3.4.6 for package: gcc-c++
--> Processing Dependency: cpp = 3.4.6-3 for package: gcc
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for glibc-devel to pack into transaction set.
glibc-devel-2.3.4-2.25.i3 100% |=========================| 90 kB 00:11
---> Package glibc-devel.i386 0:2.3.4-2.25 set to be updated
---> Downloading header for libgcc to pack into transaction set.
libgcc-3.4.6-3.i386.rpm 100% |=========================| 33 kB 00:04
---> Package libgcc.i386 0:3.4.6-3 set to be updated
---> Downloading header for cpp to pack into transaction set.
cpp-3.4.6-3.i386.rpm 100% |=========================| 35 kB 00:04
---> Package cpp.i386 0:3.4.6-3 set to be updated
---> Downloading header for libstdc++-devel to pack into transaction set.
libstdc%2B%2B-devel-3.4.6 100% |=========================| 66 kB 00:07
---> Package libstdc++-devel.i386 0:3.4.6-3 set to be updated
---> Downloading header for libstdc++ to pack into transaction set.
libstdc%2B%2B-3.4.6-3.i38 100% |=========================| 33 kB 00:02
---> Package libstdc++.i386 0:3.4.6-3 set to be updated
--> Running transaction check
--> Processing Dependency: glibc-headers = 2.3.4-2.25 for package: glibc-devel
--> Processing Dependency: glibc = 2.3.4-2.25 for package: glibc-devel
--> Processing Dependency: glibc-headers for package: glibc-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for glibc to pack into transaction set.
glibc-2.3.4-2.25.i686.rpm 100% |=========================| 121 kB 00:21
---> Package glibc.i686 0:2.3.4-2.25 set to be updated
---> Downloading header for glibc-headers to pack into transaction set.
glibc-headers-2.3.4-2.25. 100% |=========================| 124 kB 00:11
---> Package glibc-headers.i386 0:2.3.4-2.25 set to be updated
--> Running transaction check
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers
--> Processing Dependency: kernel-headers for package: glibc-headers
--> Processing Dependency: glibc-common = 2.3.4-2.25 for package: glibc
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for glibc-kernheaders to pack into transaction set.
glibc-kernheaders-2.4-9.1 100% |=========================| 73 kB 00:07
---> Package glibc-kernheaders.i386 0:2.4-9.1.98.EL set to be updated
---> Downloading header for glibc-common to pack into transaction set.
glibc-common-2.3.4-2.25.i 100% |=========================| 643 kB 00:54
---> Package glibc-common.i386 0:2.3.4-2.25 set to be updated
--> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
gcc i386 3.4.6-3 base 4.4 M
gcc-c++ i386 3.4.6-3 base 2.4 M
Installing for dependencies:
cpp i386 3.4.6-3 base 1.6 M
glibc-devel i386 2.3.4-2.25 base 1.9 M
glibc-headers i386 2.3.4-2.25 base 582 k
glibc-kernheaders i386 2.4-9.1.98.EL base 693 k
libstdc++-devel i386 3.4.6-3 base 8.6 M
Updating for dependencies:
glibc i686 2.3.4-2.25 base 5.1 M
glibc-common i386 2.3.4-2.25 base 16 M
libgcc i386 3.4.6-3 base 59 k
libstdc++ i386 3.4.6-3 base 281 k
Transaction Summary
=============================================================================
Install 7 Package(s)
Update 4 Package(s)
Remove 0 Package(s)
Total download size: 41 M
Is this ok [y/N]: y