Can not run Fred's Script

A plethora of command-line scripts that perform geometric transforms, blurs, sharpens, edging, noise removal, and color manipulations.
Post Reply
bminh17
Posts: 1
Joined: 2017-10-10T18:54:28-07:00
Authentication code: 1151

Can not run Fred's Script

Post by bminh17 » 2017-10-10T19:00:14-07:00

Hi
I am using Cygwin on Windows to run Fred script
Here is my command line to run cylinderze script

Code: Select all

$ C:/Users/Jerry/Downloads/cylinderize  -m vertical -r 73 -l 120 -w 90 -p 5 -n 94 -e 2  user.jpg cup1.JPG outfile output.jpg
But there is error

Code: Select all

C:/Users/Jerry/Downloads/cylinderize: line 314: bc: command not found
C:/Users/Jerry/Downloads/cylinderize: line 315: [: -eq: unary operator expected
C:/Users/Jerry/Downloads/cylinderize: line 324: bc: command not found
C:/Users/Jerry/Downloads/cylinderize: line 325: [: -eq: unary operator expected
C:/Users/Jerry/Downloads/cylinderize: line 334: bc: command not found
C:/Users/Jerry/Downloads/cylinderize: line 335: bc: command not found
C:/Users/Jerry/Downloads/cylinderize: line 336: [: too many arguments
C:/Users/Jerry/Downloads/cylinderize: line 363: bc: command not found
C:/Users/Jerry/Downloads/cylinderize: line 364: [: -eq: unary operator expected
C:/Users/Jerry/Downloads/cylinderize: line 389: bc: command not found
C:/Users/Jerry/Downloads/cylinderize: line 390: [: -eq: unary operator expected

--- NO OUTPUT FILE SPECIFIED ---
How can i fixed that with my command line?

Thanks so much
Jerry

User avatar
fmw42
Posts: 22083
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

Re: Can not run Fred's Script

Post by fmw42 » 2017-10-10T19:58:35-07:00

Your Cygwin install did not include the unix command bc. You need to install Cygwin with the optional unix commands.

See
http://im.snibgo.com/cygwin.htm
viewtopic.php?f=26&t=25910&start=30#p113836

Also see my Pointers on my home page at the link below.

Post Reply