oracle10g install problem

本文记录了在CentOS 5.8上安装Oracle 10g遇到的问题及解决过程,包括因缺少libXp.so.6导致的Java界面无法启动问题,并通过安装相应rpm包成功解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

今天为了研究bbed命令,必须安装下oracle 10g 才有相应的包,
所以东找找西找找,下载了centos5.8(还是高了)和linux oralce10g 安装过程中遇到了如下的问题。

-46-32PM. Please wait ...[oracle@ora10g database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2018-02-08_01-46-32PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(Unknown Source)
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at sun.security.action.LoadLibraryAction.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
        at sun.awt.DebugHelper.<clinit>(Unknown Source)
        at java.awt.Component.<clinit>(Unknown Source)

安装Java的界面出不来

需要安装如下的包

[root@ora10g ~]# rpm -ivh libXp-1.0.0-8.1.el5.i386.rpm
warning: libXp-1.0.0-8.1.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing...                ########################################### [100%]
   1:libXp                  ########################################### [100%]
[root@ora10g ~]# rpm -ivh libXp-1.0.0-8.1.el5.x86_64.rpm
warning: libXp-1.0.0-8.1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing...                ########################################### [100%]
   1:libXp                  ########################################### [100%]

这里的操作系统是centos5.8 需要安装的数据库是oracle10g

[oracle@ora10g database]$ ./runInstaller 
Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
                                      Passed

奈何操作系统不支持 所以我们就忽悠下系统

[root@ora10g ~]# cat /etc/redhat-release
CentOS release 4.8 (Final)

然后界面就可以正常弹出了

(base) PS C:\Users\86172.亦甜> pip install cx_Oracle Defaulting to user installation because normal site-packages is not writeable Collecting cx_Oracle Using cached cx_Oracle-8.3.0.tar.gz (363 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: cx_Oracle Building wheel for cx_Oracle (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for cx_Oracle (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [21 lines of output] <string>:6: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. C:\Users\86172.亦甜\AppData\Local\Temp\pip-build-env-8jo88sgn\overlay\Lib\site-packages\setuptools\config\expand.py:126: SetuptoolsWarning: File 'C:\\Users\\86172.亦甜\\AppData\\Local\\Temp\\pip-install-it9ofuh3\\cx-oracle_38869229756c4b35995ef75f50a7ce8d\\README.md' cannot be found return '\n'.join( C:\Users\86172.亦甜\AppData\Local\Temp\pip-build-env-8jo88sgn\overlay\Lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: BSD License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running bdist_wheel running build running build_ext building 'cx_Oracle' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for cx_Oracle Failed to build cx_Oracle ERROR: Could not build wheels for cx_Oracle, which is required to install pyproject.toml-based projects
最新发布
06-17
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值