linux安装软件包

一些环境.本来看别人搭建总是很简单..很容易..搭建这么多的环境..发现!其实别人一般剔除了自己遇到的问题.而直接写下了最直接最简单的路径! 本来就打算手动建ORACLE11g库. 最后真是各种报错….首先百度了建库的步骤. 首先第一步是要 linux包的安装检查..
# rpm -q \

binutils \

compat-libstdc++-33 \

elfutils-libelf \

elfutils-libelf-devel \

expat \

gcc \

gcc-c++ \

glibc \

glibc-common \

glibc-devel \

glibc-headers \

libaio \

libaio-devel \

libgcc \

libstdc++ \

libstdc++-devel \

make \

pdksh \

sysstat \

unixODBC \

unixODBC-devel | grep “not installed”
或许对于运维来说这些是小菜一碟… 但是对于我这个linux白痴来说..简直是登天的难.
首先百度了如何查看软件包是否已经安装
rpm -q compat-libstdc++-33
找到那些条件中还没有安装过的包
然后我尝试在windows下下载了软件包..然后传到linux中. (secureCRT)
后来我百度了 rpm命令安装软件包. 但是总给我报错
(warning: compat-libstdc++-33-3.2.3-47.3.i386.rpm: 是我下载的文件)
[root@Oracle-RAC1 ~]# rpm -ivh compat-libstdc++-33-3.2.3-47.3.i386.rpm
warning: compat-libstdc++-33-3.2.3-47.3.i386.rpm: Header V3 DSA/SHA1 Signature, key ID 1d1e034b: NOKEY
error: Failed dependencies:
libc.so.6 is needed by compat-libstdc++-33-3.2.3-47.3.i386
libc.so.6(GLIBC_2.0) is needed by compat-libstdc++-33-3.2.3-47.3.i386
libc.so.6(GLIBC_2.1) is needed by compat-libstdc++-33-3.2.3-47.3.i386
libc.so.6(GLIBC_2.1.3) is needed by compat-libstdc++-33-3.2.3-47.3.i386
libc.so.6(GLIBC_2.2) is needed by compat-libstdc++-33-3.2.3-47.3.i386
libc.so.6(GLIBC_2.3) is needed by compat-libstdc++-33-3.2.3-47.3.i386
libgcc_s.so.1 is needed by compat-libstdc++-33-3.2.3-47.3.i386
libgcc_s.so.1(GCC_3.0) is needed by compat-libstdc++-33-3.2.3-47.3.i386
libgcc_s.so.1(GCC_3.3) is needed by compat-libstdc++-33-3.2.3-47.3.i386
libgcc_s.so.1(GLIBC_2.0) is needed by compat-libstdc++-33-3.2.3-47.3.i386
libm.so.6 is needed by compat-libstdc++-33-3.2.3-47.3.i386

百度过后我看到论坛上有人说yum可以解决这个依赖的问题..后来我执行了:
[root@Oracle-RAC1 cdrom]# yum install compat-libstdc++-33-3.2.3-47.3.i386.rpm
Loaded plugins: security
Setting up Install Process
http://public-yum.oracle.com/repo/OracleLinux/OL6/UEKR3/latest/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - “Couldn’t resolve host ‘public-yum.oracle.com’”
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: public_ol6_UEKR3_latest. Please verify its path and try again
百度后看到这个错误是由没配置yum源产生的.我尝试去配置
vi /etc/yum.repos.d/Oracle.repo 内容如下:

[Cluster]
name= Cluster
baseurl=file:/share/
enabled=1
gpgcheck=0
[ClusterStorage]
name= ClusterStorage
baseurl=file:/share/
enabled=1
gpgcheck=0
[Server]
name=Server
baseurl=file:/share/
gpgcheck=0
enabled=1
[VT]
name=VT
baseurl=file:/share/
gpgcheck=0
enabled=1

我完全看不懂意思..只知道baseurl指的应该是路径.然后按照我mount挂载的文件夹路径胡乱填上去了.

后来.死活都报错.
[root@Oracle-RAC1 cdrom]# yum install compat-libstdc++-33-3.2.3-47.3.i386.rpm
Loaded plugins: security
Setting up Install Process
http://public-yum.oracle.com/repo/OracleLinux/OL6/UEKR3/latest/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - “Couldn’t resolve host ‘public-yum.oracle.com’”
Trying other mirror.
重复几次后.我顺着路径找.是个链接.. 然后我考虑可能是网络不通.下载不了..ping了一下www.sohu.com. 果然..配置完网络后. yum list all 更新可以进入下载界面. 后来有一个问题..就是一个问题死活报错找不到路径…
意外的看到 ../etc/yum.repo.d/文件夹下.最好只留有自己配置的repo文件..将他移除到其他文件夹下就OK了… 可惜..从半夜12点..已经到早上6点.. 这个只是.安装静默手动oracle的第一个回合…..后面还有更多问题等我.

你可能感兴趣的:(linux)