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

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

原文地址:https://www.cnblogs.com/liujiaxin2018/p/13759226.html