Cannot determine all dependent dynamic libraries for /proc/self/exe

当启动Oracle数据库时,出现无法找到动态库文件的错误信息。本文提供了几种解决方案,包括使用正确的用户身份启动数据库、忽略错误消息或配置LD_LIBRARY_PATH环境变量。

when I startup the db ,alert.log shows these messages:

Starting ORACLE instance (normal)
Cannot determine all dependent dynamic libraries for /proc/self/exe
Unable to find dynamic library libocr10.so in search paths
RPATH = /ade/aime1_build2101/oracle/has/lib/:/ade/aime1_build2101/oracle/lib/:/ade/aime1_build2101/oracle/has/lib/:
LD_LIBRARY_PATH = /opt/ora10g/product/10.2.0/db_1/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin/
The default library directories are /lib and /usr/lib
Unable to find dynamic library libocrb10.so in search paths
Unable to find dynamic library libocrutl10.so in search paths
Unable to find dynamic library libocrutl10.so in search paths

metalink,ID 371408.1 ,I think this maybe a bug.the solution is:

------------------------------------------------------------------------------------------

Start  the Oracle database by  using the userid that owns the Oracle binaries/software  , if  you are starting the Oracle database by the userid other than owner of the Oracle binaries /software.
OR
You can safely ignore the error message in the alert.log.
OR
You can execute the following steps of implement the solution if LD_LIBRARY_PATH is NOT set or set incorrectly then
Include the $ORACLE_HOME/lib in the LD_LIBRARY_PATH
% export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
OR
Copy the files libocrb10.so and libocrutl10.so from $ORACLE_HOME/lib to /usr/lib. You need superuser privileges to be able to do this step.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22123669/viewspace-672063/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/22123669/viewspace-672063/

### 树莓派中 `gpio readall` 报错 `Unable to determine board revision from /proc/cpuinfo, no 'Hardware' line` 的原因及解决方法 在树莓派设备上运行 `gpio readall` 命令时,如果提示 `Unable to determine board revision from /proc/cpuinfo, no 'Hardware' line` 错误,通常是因为 WiringPi 库无法从 `/proc/cpuinfo` 文件中读取硬件信息。这种问题在较新版本的树莓派系统中尤为常见。 WiringPi 是一个用于操作树莓派 GPIO 的库,它依赖 `/proc/cpuinfo` 中的 `Hardware` 字段来识别硬件型号。然而,随着树莓派系统的更新,部分系统(尤其是基于 64 位架构的设备)可能不再提供传统的 `Hardware` 字段信息,导致 WiringPi 无法正确检测板卡版本[^2]。 此外,WiringPi 的某些旧版本(如 2.50)不支持树莓派 4B、Zero 2W 等较新型号,也会导致 `gpio readall` 报错并提示 `Oops - unable to determine board type... model: 17` 或 `model: 18` 等信息[^4]。 为了解决这个问题,可以采取以下几种方法: #### 1. 更新 WiringPi 到最新版本 官方提供了最新版本的 WiringPi,适用于树莓派 4B 及其他新型号。可以通过以下命令下载并安装最新版本的 `.deb` 包: ```bash cd /tmp wget https://project-downloads.drogon.net/wiringpi-latest.deb sudo dpkg -i wiringpi-latest.deb ``` 安装完成后,使用 `gpio -v` 命令验证版本是否为 2.52 或更高版本[^5]。 #### 2. 使用替代库(如 `RPi.GPIO` 或 `gpiozero`) 由于 WiringPi 已经多年未更新,且不再推荐用于新项目,建议使用 Python 的 `RPi.GPIO` 或 `gpiozero` 库替代。这些库由树莓派基金会维护,兼容性更好。 例如,使用 `RPi.GPIO` 控制 GPIO 的示例代码如下: ```python import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(18, GPIO.OUT) try: while True: GPIO.output(18, GPIO.HIGH) time.sleep(1) GPIO.output(18, GPIO.LOW) time.sleep(1) finally: GPIO.cleanup() ``` #### 3. 手动指定硬件型号 在某些情况下,可以通过设置环境变量手动指定树莓派的硬件型号。例如: ```bash export WIRINGPI_HARDSOFT=PI_MODEL_4B gpio readall ``` 该方法适用于特定型号的设备,但不推荐长期使用。 ### 总结 树莓派运行 `gpio readall` 出现 `Unable to determine board revision from /proc/cpuinfo, no 'Hardware' line` 错误,主要原因是 WiringPi 无法从 `/proc/cpuinfo` 获取硬件信息,以及旧版本 WiringPi 不支持新型号设备。解决方法包括更新 WiringPi 到最新版本、使用替代库或手动指定硬件型号。 ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值