原文出處:http://qingwang.blog.51cto.com/505009/116730
設置 support.s目錄755的權限。
if [ -f /etc/redhat-release ] && [ `grep -c "Taroon" /etc/redhat-release` -gt 0 ]; then
GBL_OS_TYPE=${GBL_OS_TYPE_RHEL3}
GBL_OS_TYPE_STRING="RHEL3"
# Else check if operating system is RHEL4.
elif [ -f /etc/redhat-release ] && [ `grep -c "Nahant" /etc/redhat-release` -gt 0 ]; then
GBL_OS_TYPE=${GBL_OS_TYPE_RHEL4}
GBL_OS_TYPE_STRING="RHEL4"
# Else check if operating system is RHEL5.
elif [ -f /etc/redhat-release ] && [ `grep -c "Tikanga" /etc/redhat-release` -gt 0 ]; then
GBL_OS_TYPE=${GBL_OS_TYPE_RHEL5}
GBL_OS_TYPE_STRING="RHEL5"
― ― ― ― ― ― ― ― ― ― ― ― ― ― ― ― ― ― ― ― ― ― ― ― ― ― ― ― ― ―
CentOS release 5.2 (Final)
[ ] 2. Server Administrator Web Server
[ ] 3. Storage Management
[ ] 4. All
Enter q to quit.
- All
- Server Administrator CLI
- Server Administrator Web Server
- Storage Management
[x] 2. Server Administrator Web Server
[x] 3. Storage Management
[x] 4. All
Enter c to copy selected components to destination folder.
Enter i to install the selected components.
Enter r to reset selection and start over.
Enter q to quit.
Do you want to change it?
Press ('y' for yes | 'Enter' for default): Enter'
Installing the selected packages.
Preparing... ########################################### [100%]
1:srvadmin-omilcore ########################################### [ 8%]
To start all installed services without a reboot,
enter the following command: srvadmin-services.sh start
2:srvadmin-syscheck ########################################### [ 15%]
3:srvadmin-deng ########################################### [ 23%]
4:srvadmin-omauth ########################################### [ 31%]
5:srvadmin-omacore ########################################### [ 38%]
6:srvadmin-jre ########################################### [ 46%]
7:srvadmin-ipmi ########################################### [ 54%]
8:srvadmin-hapi ########################################### [ 62%]
9:srvadmin-isvc ########################################### [ 69%]
10:srvadmin-cm ########################################### [ 77%]
11:srvadmin-iws ########################################### [ 85%]
12:srvadmin-omhip ########################################### [ 92%]
13:srvadmin-storage ########################################### [100%]
Press ('y' for yes | 'Enter' to exit): y
Starting mptctl:
Waiting for mptctl driver registration to complete:
[ OK ]
Starting dell_rbu: [ OK ]
Starting ipmi driver: [ OK ]
Starting Systems Management Data Engine:
Starting dsm_sa_datamgr32d: [ OK ]
Starting dsm_sa_eventmgr32d: [ OK ]
Starting DSM SA Shared Services: [ OK ]
error: Failed dependencies:
libstdc++.so.5 is needed by srvadmin-iws-5.5.0-364.i386
libstdc++.so.5(GLIBCPP_3.2) is needed by srvadmin-iws-5.5.0-364.i386
libstdc++.so.5 is needed by srvadmin-omacore-5.5.0-364.i386
libstdc++.so.5(GLIBCPP_3.2) is needed by srvadmin-omacore-5.5.0-364.i386
libstdc++.so.5(GLIBCPP_3.2.2) is needed by srvadmin-omacore-5.5.0-364.i386
- Please refer to 'readme_ins.txt' file for more details.
- The readme_ins.txt can be found in srvadmin/docs/readme folder
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package compat-libstdc++-33.i386 0:3.2.3-61 set to be updated
--> Finished Dependency Resolution
Package Arch Version Repository Size
=============================================================================
Installing:
compat-libstdc++-33 i386 3.2.3-61 base 232 k
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Downloading Packages:
(1/1): compat-libstdc++-3 100% |=========================| 232 kB 00:01
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
Importing GPG key 0xE8562897 "CentOS-5 Key (CentOS 5 Official Signing Key) <[email protected]>" from http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: compat-libstdc++-33 ######################### [1/1]
Complete!