Re: Custom PHP extension: Invalid library (maybe not a PHP library)
| From: | Matijn Woudt | Date: | Wed, 29 Feb 2012 13:51:58 +0000 |
| Subject: | Re: Custom PHP extension: Invalid library (maybe not a PHP library) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-316802@lists.php.net to get a copy of this message | ||
>
> The code compiles well with these commands:
> $ ./configure --enable-hello2
> $ make -j5
> # make install
>
It's a long time since I built PHP extensions, but aren't you supposed
to run phpize before configure?
> But after I execute the command:
> $ php5 -d"extension=hello2.so" -v
> I get the following output.
>
> PHP Warning: PHP Startup: Invalid library (maybe not a PHP library)
> 'hello2.so' in Unknown on line 0
>
> What I am missing here? Can someone help me?
> Thanks in advance.
Have you tried google?
I found this comment on the PHP sites[1], and it says that the module
didn't work when copied into the apache directory, but make install
worked fine for him
- Matijn
[1] http://www.php.net/manual/en/ref.ssh2.php#67197