linux下問題記錄

          Posted on 2008-09-26 10:20 lhn070 閱讀(149) 評論(0)  編輯  收藏
          執行程序時找不到庫文件的解決辦法
            提示 :
             cannot open shared object file: No such file or directory
            解決方法如下:
              /usr/bin/ld: cannot find -llibname
             把.so連接庫所在的目錄添加到 /etc/ld.so.conf文件中

             include ld.so.conf.d/*.conf
             include /home/zhengxh/chinautrust/cadev/*.so

             運行命令
               #ldconfig
             就可以了

          命令窗口出現亂碼解決
            定義語言為英文 ,使用命令export LANG=en_US.TUF-8

          執行程序時,提示依賴的庫文件權限不夠的解決

            現象如:
                ./dlserver: error while loading shared libraries: ./libwstlib.so: cannot restore segment prot after reloc: Permission denied
             錯誤原因在于selinux禁用了訪問此共享庫

             解決辦法: 關閉selinux

              1、編輯/etc/selinux/config文件,找到SELINUX=enforcing,改為SELINUX=disabled
              2、編輯/etc/sysconfig/selinux文件,找到SELINUX=enforcing,改為SELINUX=disabled
              3、重啟電腦

          shell關閉,程序或是服務退出的解決:
           
          解決方法為在命令前加上nohup,再在后面加& 如 >nohup startup.sh &




          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 轮台县| 获嘉县| 定兴县| 达日县| 工布江达县| 鄱阳县| 抚松县| 阿坝县| 文安县| 三门峡市| 台南县| 杭锦后旗| 巴南区| 镇康县| 澄江县| 潮州市| 吴川市| 紫金县| 阜宁县| 兴和县| 宁波市| 疏勒县| 拉萨市| 德州市| 芦溪县| 张家港市| 托克托县| 郁南县| 进贤县| 博湖县| 奉贤区| 电白县| 武清区| 闽清县| 英吉沙县| 通化市| 南通市| 鲁山县| 清远市| 方城县| 华宁县|