linux - Fred 的 ImageMagick Scripts-3DRotation 不工作,(3Drotate.sh : line 384: bc: command not found)

标签 linux bash imagemagick

在 Fred 的 ImageMagick 脚本中,我尝试运行 3DRotate.sh,但收到错误消息。但是我可以运行 cartoon.sh 我不知道为什么?如果有人知道这件事...请帮助我...

我收到这样的错误消息。

   root@vps-1100110-10106 [~/imagick]# ./3Drotate.sh pan=45 auto=zc test.jpg testfile.jpg
./3Drotate.sh: line 195: bc: command not found
expr: warning: unportable BRE: `^[0-9][0-9]*$': using `^' as the first character
of the basic regular expression is not portable; it is being ignored
expr: warning: unportable BRE: `^[+-][0-9][0-9]*$': using `^' as the first character
of the basic regular expression is not portable; it is being ignored
expr: warning: unportable BRE: `^[0-9]*[\\.][0-9]*$': using `^' as the first character
of the basic regular expression is not portable; it is being ignored
expr: warning: unportable BRE: `^[+-][0-9]*[\\.][0-9]*$': using `^' as the first character
of the basic regular expression is not portable; it is being ignored
./3Drotate.sh: line 384: bc: command not found
./3Drotate.sh: line 385: bc: command not found
./3Drotate.sh: line 387: [: too many arguments
./3Drotate.sh: line 388: bc: command not found
./3Drotate.sh: line 389: bc: command not found
./3Drotate.sh: line 390: bc: command not found
./3Drotate.sh: line 391: bc: command not found
./3Drotate.sh: line 230: bc: command not found
./3Drotate.sh: line 230: bc: command not found
./3Drotate.sh: line 230: bc: command not found
./3Drotate.sh: line 230: bc: command not found
./3Drotate.sh: line 230: bc: command not found
./3Drotate.sh: line 230: bc: command not found
./3Drotate.sh: line 230: bc: command not found
./3Drotate.sh: line 230: bc: command not found
./3Drotate.sh: line 230: bc: command not found
./3Drotate.sh: line 576: bc: command not found
./3Drotate.sh: line 577: bc: command not found
./3Drotate.sh: line 578: bc: command not found
./3Drotate.sh: line 579: bc: command not found
./3Drotate.sh: line 582: bc: command not found
./3Drotate.sh: line 582: [: -eq: unary operator expected
./3Drotate.sh: line 586: bc: command not found
./3Drotate.sh: line 586: [: -eq: unary operator expected
./3Drotate.sh: line 646: bc: command not found
./3Drotate.sh: line 660: bc: command not found
./3Drotate.sh: line 661: bc: command not found
./3Drotate.sh: line 662: bc: command not found
./3Drotate.sh: line 663: bc: command not found
./3Drotate.sh: line 664: bc: command not found
./3Drotate.sh: line 665: bc: command not found
./3Drotate.sh: line 669: bc: command not found
./3Drotate.sh: line 670: bc: command not found
./3Drotate.sh: line 676: bc: command not found
./3Drotate.sh: line 689: bc: command not found
./3Drotate.sh: line 690: bc: command not found
./3Drotate.sh: line 691: bc: command not found
./3Drotate.sh: line 692: bc: command not found
./3Drotate.sh: line 693: bc: command not found
./3Drotate.sh: line 701: bc: command not found
./3Drotate.sh: line 230: bc: command not found
./3Drotate.sh: line 230: bc: command not found
./3Drotate.sh: line 230: bc: command not found
./3Drotate.sh: line 230: bc: command not found
./3Drotate.sh: line 230: bc: command not found
./3Drotate.sh: line 230: bc: command not found
./3Drotate.sh: line 230: bc: command not found
./3Drotate.sh: line 230: bc: command not found
./3Drotate.sh: line 230: bc: command not found

--- NOT A VALID SET OF MATRIX ROWS ---

我的 Imagemagick

Version: ImageMagick 6.7.1-7 2012-06-18 Q16

最佳答案

BC 是一个计算器/数学程序,我假设您的服务器上没有安装它。您可以要求您的主机安装它。

我假设这与您之前的帖子有关,使用 Freds 代码执行的操作可以在 Imagemagick 中完成,无论如何您需要计算出您想要的内容,并且可以使用标准 php 函数而不是 bc 执行计算.

关于linux - Fred 的 ImageMagick Scripts-3DRotation 不工作,(3Drotate.sh : line 384: bc: command not found),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11143377/

相关文章:

c++ - 下载文件 c++ linux GCC

bash - 给定 IP 地址和网络掩码,如何使用 bash 计算子网范围?

linux - 在 bash 中提取位置文件名和扩展名

bash 健壮性 : what is a correct and portable way to trap for the purpose of an "on exit" cleanup routine?

css - 使用 nodejs 的 GraphicsMagick 未返回正确的图像

linux - 如何将版本信息嵌入到共享库和二进制文件中?

php - 试图用php删除linux中的一个目录和他的隐藏文件

php - 使用没有 Ghostscript 的 ImageMagick 将 pdf 转换为 jpg

linux - 如何将多个 PDF 页面合并为一个页面

c++ - Linux 的输入键不可管理,我如何在 C++ 中绕过它?