Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

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
2565917
accept rate: 20%

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
2565917
accept rate: 20%

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:

×70
×68

question asked: 05 Jul '12, 20:27

question was seen: 1,617 times

last updated: 07 Jul '12, 06:53