6

I want to install the PHP ITL extension so I can use it.

Do I need to compile this, and if so, how do I compile it? I need it to work for both Windows and Linux.

BryanH
  • 5,826
  • 3
  • 34
  • 47
Basit
  • 16,316
  • 31
  • 93
  • 154

3 Answers3

4

Why not read the README?

  • libitl must be already be installed along with header files.
  • Download php source code and create directory $PHP_SRC_DIR/ext/itl and copy the files config.m4 itl.c php_itl.h and itl.php to it
  • Run the following commands cd $PHP_SRC_DIR/ext/itl phpize ./configure --with-itl=/path/to/libitl
  • The ITL functions can be enabled by compiling the php-itl extension and copying the resulting .so file to PHP's extension directory.
Pekka
  • 442,112
  • 142
  • 972
  • 1,088
  • Hehe, I used to think that way. Fortuntately not anymore :) – Pekka Feb 09 '10 at 00:11
  • lol i have read the readme, but i dont want to compile it with php, i just want to add it on php.ini and run it like i do with other extension.. phppdf.ext you know.. – Basit Feb 09 '10 at 00:28
  • 1
    The steps described in the readme show how to compile the extension in Linux. The result is a .so file you can include in your PHP.ini. As for Windows, that's a different matter - I don't know how to produce it there. Maybe asking the project maintainers for ready-made Windows binaries helps. – Pekka Feb 09 '10 at 00:30
1

Check out the README: http://svn.arabeyes.org/viewvc/projects/itl/ports/php/README?revision=11087&view=markup

mr-sk
  • 13,174
  • 11
  • 66
  • 101
1

I suggest you take a look at this section in the PHP manual. Specifically this section on compiling extensions with the phpize command.

Jordan S. Jones
  • 13,703
  • 5
  • 44
  • 49