2012-06-21 17 views
0

在Fred的ImageMagick腳本中,我嘗試運行3DRotate.sh,但收到錯誤消息。但是我可以運行cartoon.sh我不知道爲什麼?請如果有人知道這個..幫我...Fred的ImageMagick Scripts-3DRotation不起作用,(3Drotate.sh:line 384:bc:command not found)

我得到這樣的錯誤消息。

[email protected] [~/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

+0

如果我輸入這樣的錯誤信息:root @ vps-1100110-10106 [〜/ imagick]#./3Drotate.sh ./3Drotate.sh:line 195:bc:command not found – Gobi

回答

1

BC是一個計算器/數學程序,我假設它沒有安裝在你的服務器上。你可以讓你的主機安裝它。

我認爲這與您以前的帖子有關,使用Freds代碼執行的操作可以在Imagemagick中完成,無論如何您需要計算出您想要的內容並且可以使用標準php函數執行計算,而不是公元前。

+0

謝謝,我明白了...... – Gobi

+0

@Gobi:不要說「謝謝」,而應該*讚賞*好答案(點擊每個答案左側的小灰色'^'圖標),*接受*最好的(你現在應該能夠找出自己該怎麼做)。 –

0

嘗試安裝BC:http://linux.about.com/od/commands/l/blcmdl1_bc.htm

(請注意,我假設你正在使用的尼克斯*一番風味)。

+0

謝謝。 。我知道了... – Gobi

+0

@Gobi:不要說「謝謝」,而應該*讚賞*好答案(點擊每個答案左側的灰色小^'圖標),*接受*最好的(你現在應該能夠找出自己如何做到這一點)。 –