安装程序出现Can’t load xx.so文件的错误

install_driver(Oracle) failed: Can’t load ‘/u01/TEST18/apps/tech_st/10.1.3/perl/lib/site_perl/5.8.3/i686-linux-thread-multi/auto/DBD/Oracle/Oracle.so’ for module DBD::Oracle: /u01/TEST18/apps/tech_st/10.1.2/lib/libclntsh.so.10.1: cannot restore segment prot after reloc: Permission denied at /u01/TEST18/apps/tech_st/10.1.3/perl/lib/5.8.3/i686-linux-thread-multi/DynaLoader.pm line 229.

 

解决办法:chcon -t texrel_shlib_t /u01/TEST18/apps/tech_st/10.1.3/perl/lib/site_perl/5.8.3/i686-linux-thread-multi/auto/DBD/Oracle/Oracle.so 引入相关的.so文件(绝对路径)

共有 0 条评论

Top