Linux 弗雷德';s ImageMagick脚本-3DRotation不工作,(3Drotate.sh:第384行:未找到bc:命令)

Linux 弗雷德';s ImageMagick脚本-3DRotation不工作,(3Drotate.sh:第384行:未找到bc:命令),linux,bash,imagemagick,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: warn

在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 6.7.1-7 2012-06-18 Q16

尝试安装bc:


(请注意,我假设您正在使用某种风格的*nix)。

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


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

如果我这样键入,我将收到错误消息:root@vps-1100110-10106[~/imagick]#./3Drotate.sh./3Drotate.sh:第195行:bc:命令不可用found@Gobi:与其说“谢谢”,不如投票选出好的答案(单击每个答案左侧的小灰色
^
图标),然后接受最好的答案(你现在应该能够了解如何做到这一点)。@Gobi:不要说“谢谢”,你应该选择好的答案(点击每个答案左侧的小灰色图标),然后接受最好的答案(你现在应该能够找到自己的方法了)。