国产化操作系统升级改造过程中,Red Hat Enterprise Linux Server release 7.6 (Maipo)在线升级迁移到BigCloud Enterprise Linux For Euler release 21.10 (LTS-SP2),oracle用户下执行proc报错:
[oracle@superman ~]$ proc
proc: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory
[oracle@superman ~]$
[root@superman ~]# rpm -qa |grep libnsl
libnsl2-1.3.0-2.oe1.x86_64
[root@superman ~]#
发现libnsl版本是libnsl2。
[root@superman ~]# yum search all libnsl
Last metadata expiration check: 0:09:10 ago on Thu 07 Sep 2023 09:43:29 AM CST.
===================================================================================== Name & Description Matched: libnsl ======================================================================================
libnsl.x86_64 : Public client interface for NIS(YP) and NIS+
============================================================================= Name & Summary & Description & URL Matched: libnsl ==============================================================================
libnsl2-devel.x86_64 : The development for libnsl2
================================================================================== Name & Description & URL Matched: libnsl ===================================================================================
libnsl2.x86_64 : Public client interface library for NIS(YP) and NIS+
[root@superman ~]#
发现yum源有libnsl。
[root@superman ~]# yum install -y libnsl
Last metadata expiration check: 0:09:45 ago on Thu 07 Sep 2023 09:43:29 AM CST.
Dependencies resolved.
===============================================================================================================================================================================================================
Package Architecture Version Repository Size
===============================================================================================================================================================================================================
Installing:
libnsl x86_64 2.28-79.oe1 bclinux-for-Euler21.10-update 52 k
Transaction Summary
===============================================================================================================================================================================================================
Install 1 Package
Total download size: 52 k
Installed size: 94 k
Downloading Packages:
libnsl-2.28-79.oe1.x86_64.rpm 4.7 MB/s | 52 kB 00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 4.1 MB/s | 52 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : libnsl-2.28-79.oe1.x86_64 1/1
Running scriptlet: libnsl-2.28-79.oe1.x86_64 1/1
Verifying : libnsl-2.28-79.oe1.x86_64 1/1
Installed:
libnsl-2.28-79.oe1.x86_64
Complete!
[root@superman ~]#
从正常编译环境拷贝libnsl.so.1文件到/usr/lib64/文件夹目录下,然后执行ldconfig。
点赞,你的认可是我创作的动力!
⭐️ 收藏,你的青睐是我努力的方向!
✏️ 评论,你的意见是我进步的财富!