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、再次测试程序

 已经没有报错,程序已经运行正常。

posted @ 2020-10-01 21:47  小鲨鱼2018  阅读(1145)  评论(0编辑  收藏  举报