0

在 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

4

2 回答 2

1

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

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

于 2012-06-21T19:20:27.333 回答
0

尝试安装 bc: http: //linux.about.com/od/commands/l/blcmdl1_bc.htm

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

于 2012-06-21T18:55:55.000 回答