cancel
Showing results for 
Search instead for 
Did you mean: 

Building sqlanywhere php module: configure fails

1,867

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.

Former Member
0 Kudos

Actually --with-php-config asks for php-config -- a tool for getting info about PHP configuration and compile options -- not for 'php' binary.

0 Kudos

Good point, question corrected.

View Entire Topic

Stripping all the DOS newline characters from ./configure solved the problem.

Suspect the problem due to some change between ubuntu11 & ubuntu12.