Can't exec "epstopdf": No such file or directory 報錯解決


1、運行perl程序遇到如下報錯,Can't exec "epstopdf": No such file or directory

  

 

2、 安裝 epstopdf

git clone https://github.com/lgong30/epstopdf.g
cd epstopdf/ chmod +x ./eps2pdf.sh

 

 

3、加權限、創建軟連接

chmod 777 epstopdf.pl ln -s epstopdf.pl epstopdf

 

 

4、加入環境變量 

echo "export PATH=$PATH:/home/software/test/epstopdf" >> /etc/profile
source /etc/profile

 

 

 

5、再次測試程序

 已經沒有報錯,程序已經運行正常。


免責聲明!

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



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