centos安裝perl時報錯問題處理


大家好,首先是我的安裝命令

wget http://www.cpan.org/src/5.0/perl-5.16.1.tar.gz
tar -xzf perl-5.16.1.tar.gz
cd perl-5.16.1
./Configure -des -Dprefix=/usr/local/perl

make && make test && make install
perl -v

前面的命令執行都沒有問題,到執行make && make test && make install這一步,一直報下面的錯

### Since not all tests were successful, you may want to run some of
### them individually and examine any diagnostic messages they produce.
### See the INSTALL document's section on "make test".
### You have a good chance to get more information by running
###   ./perl harness
### in the 't' directory since most (>=80%) of the tests succeeded.
### You may have to set your dynamic library search path,
### LD_LIBRARY_PATH, to point to the build directory:
###   setenv LD_LIBRARY_PATH `pwd`; cd t; ./perl harness
###   LD_LIBRARY_PATH=`pwd`; export LD_LIBRARY_PATH; cd t; ./perl harness
###   export LD_LIBRARY_PATH=`pwd`; cd t; ./perl harness
### for csh-style shells, like tcsh; or for traditional/modern
### Bourne-style shells, like bash, ksh, and zsh, respectively.
u=4.06  s=3.87  cu=396.83  cs=100.49  scripts=2165  tests=493255
make: *** [test] Error 1

根據報錯信息來看時test時沒有路徑依賴,百度之后嘗試以下方法

vi /root/.bashrc
再最底部加上
export LC_ALL=C
或者直接運行
echo "export LC_ALL=C" >> /root/.bashrc
然后執行一下:
source /root/.bashrc

之后繼續執行make && make test && make install名稱,發現還是報同樣的錯誤,之后我把make && make test && make install命令分開執行

1、先執行make,沒有報error

2、執行make test報error,我們不管他,直接執行下一個命令

3、執行make install

最后發現perl  -v已經顯示安裝成功了

 

 





免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM