The forum will experience an outage sometime between February 10 at 7:00pm EST and February 12 at 11:59 EST for installation of security updates. The actual time and duration of the outage are unknown but attempts will be made to minimize the downtime. We apologize for any inconvenience.

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.

asked 05 Jul '12, 20:27

Mark's gravatar image

Mark
2265917
accept rate: 25%

edited 07 Jul '12, 06:50

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

(06 Jul '12, 06:40) kaaposc
Replies hidden

Good point, question corrected.

(07 Jul '12, 06:53) Mark

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

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

permanent link

answered 05 Jul '12, 21:05

Mark's gravatar image

Mark
2265917
accept rate: 25%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×60
×47

question asked: 05 Jul '12, 20:27

question was seen: 863 times

last updated: 07 Jul '12, 06:53