Page 1 of 1

Can not run Fred's Script

Posted: 2017-10-10T19:00:14-07:00
by bminh17
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

Re: Can not run Fred's Script

Posted: 2017-10-10T19:58:35-07:00
by fmw42
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.