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