Re: [PHP-INSTALL] What need to do for supporting a new extension?)

[email protected] (Keith Roberts)
Newsgroups php.install
Message-ID <alpine.LFD.2.00.1001072235590.19107@karsites>
Pleased you have got it sorted now.

This is a public list, so all messages are automatically posted to everyone 
subscribed to it.

Kind Regards,

Keith

-----------------------------------------------------------------
Websites:
http://www.karsites.net
http://www.php-debuggers.net

Look on the bright side - For each and every negative
thought, there is an equal and opposite positive thought.

All email addresses are challenge-response protected with
TMDA [http://tmda.net]

Where will you spend Eternity?
http://www.fellowshiptractleague.org/tract_pdf/english/130.pdf
-----------------------------------------------------------------

On Thu, 7 Jan 2010, 陈雄 wrote:

> To: Keith Roberts <[email protected]>
> From: 陈雄 <[email protected]>
> Subject: Re: [PHP-INSTALL] What need to do for supporting a new 
> extension?
> 
> hi,
> first,Thanks you very much!
> I have solved that problem and the reason is similar to what you have
> described.
> 
> I forgot when I had installed PHP on ubuntu through "agt-get", containing
> phpize.
> I used phpize that ships with ubuntu, but I want to compile the php
> extension for my php version.
> 
> the correct command is:
> /usr/local/php5/bin/phpize   ( /usr/local/php5 is the installing 
> directory)
> 
> the reason is that I used a wrong version of phpize.
> 
> I am not familiar with this email-list,
> 
> can you forward the solution of this problem to everyone.
> 
> Thanks very much again.
> 
> 2010/1/7 Keith Roberts <[email protected]>
> 
>> 
>> On Wed, 6 Jan 2010, 陈雄 wrote:
>>
>>  To: [email protected]
>>> From: 陈雄 <[email protected]>
>>> Subject: [PHP-INSTALL] What need to do for supporting a new extension?
>>> 
>>> 
>>> I use Ubuntu 9.10,PHP 5.3.1,apache2.24
>>> I compiled the PHP from php source successfully.
>>> 
>>> Now I want to build the mbstring module from source. My operations:
>>> shell> cd php src dir/
>>> shell> phpize
>>> shell> .configure
>>> shell> make && sudo make install
>>> shell> echo ectension=mbstring.so >> php.ini
>>> Now it has built the mbstring.so.
>>> But my php still did not support this module.
>>> 
>>> I found something in the log files of Apache Httpd server.
>>> "PHP Startup: mbstring: Unable to initialize module
>>> 51 Module compiled with module API=20060613
>>> 52 PHP    compiled with module API=20090626
>>> 53 These options need to match "
>>> 
>>> It seems so strange:
>>> why the module APIS are different when I build the PHP and PHP modules
>>> from
>>> the same php source tar file.
>>> 
>>> another question:
>>> If I want to increase a dynamic module for PHP, What do I need to do?
>>> 1.setting the php.ini file
>>> 2.move the *.so files to the specified directory(extension_dir)
>>> 3.move the related headers to include directory( is this necessary?)
>>> is this enough for finishing that task( to support a module)?
>>> --
>>> Best Wishes,
>>> Joewan
>>> 
>> 
>> It sounds like you have conflicting PHP and possibly Apache packages
>> installed.
>> 
>> If you want to compile PHP yourself, you need to use the same version of
>> PHP that ships with Ubuntu.
>> 
>> You will also need to link the PHP to the correct apache apxs library.
>> 
>> Are you trying to compile PHP 5.2.x by any chance?
>> 
>> Kind Regards,
>> 
>> Keith Roberts
>> 
>> 
>> -----------------------------------------------------------------
>> Websites:
>> http://www.karsites.net
>> http://www.php-debuggers.net
>> 
>> Look on the bright side - For each and every negative
>> thought, there is an equal and opposite positive thought.
>> 
>> All email addresses are challenge-response protected with
>> TMDA [http://tmda.net]
>> 
>> Where will you spend Eternity?
>> http://www.fellowshiptractleague.org/tract_pdf/english/130.pdf
>> -----------------------------------------------------------------
>> 
>> 
> 
> 
> -- 
> Best Wishes,
> Joewan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.