Trying to compile the sqlanywhere php extension on ubuntu12:
phpize ./configure --with-php-config=/opt/php5/bin/php-config make make install
But configure fails:
: not found: 2519: ./configure: : not found: 2520: ./configure: ./configure: 11467: ./configure: Syntax error: end of file unexpected (expecting "then")
The failing lines in ./configure all had DOS newline characters (displayed as ^M in vim).
The configure script is generated by phpize.
Stripping all the DOS newline characters from ./configure solved the problem.
Suspect the problem due to some change between ubuntu11 & ubuntu12.
answered 05 Jul '12, 21:05