Re: extensions problems
| From: | Jani Taskinen | Date: | Wed, 03 Jul 2002 22:42:41 +0000 |
| Subject: | Re: extensions problems | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-85783@lists.php.net to get a copy of this message | ||
On Wed, 3 Jul 2002, Rafa Rodriguez Hernandez wrote:
>
>#if COMPILE_DL_GD
>ZEND_GET_MODULE(gd)
>#endif
>
>I compile with this:
>gcc -rdynamic -fpic -DCOMPILE_DL=1 -I/opt/php/include/php/main/ -I/opt/php/include/php/TSRM/
>-I/opt/php/include/php/Zend/ -I/opt/php/include/php/ -c gd.c
You need to define it -DCOMPILE_DL_GD or it won't work.
Aren't you aware of the 'phpize' tool?
Just 'cd ext/gd ; phpize ; ./configure ; make'
(this works if you have installed PHP before and not disabled pear)
--Jani