PHP Startup: Invalid library (maybe not a PHP library) | | |
Hi,
I am using PHP on the command line. PHP version is 5.2.0-8+etch11
(cli) from Debian Sarge.
Apparently there is no informix extension in the package, so I got the
PHP 5.2.0 source and built it with --disable-all --with-
informix=shared.
When I try to load the extension I get:
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library)
'informix.so' in Unknown on line 0
What was my mistake?
Regards,
André
PS: There's no need to answer "using Debian". ;) | | | | re: PHP Startup: Invalid library (maybe not a PHP library)
André Hänsel wrote: Quote:
Hi,
>
I am using PHP on the command line. PHP version is 5.2.0-8+etch11
(cli) from Debian Sarge.
>
Apparently there is no informix extension in the package, so I got the
PHP 5.2.0 source and built it with --disable-all --with-
informix=shared.
>
When I try to load the extension I get:
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library)
'informix.so' in Unknown on line 0
>
What was my mistake?
>
Regards,
André
>
PS: There's no need to answer "using Debian". ;)
I don't use Infomix, but do you have the Infomix client installed, and
are the libraries available to your user?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. jstucklex@attglobal.net
================== | | | | re: PHP Startup: Invalid library (maybe not a PHP library)
On Jun 27, 2:07 am, Jerry Stuckle <jstuck...@attglobal.netwrote: Quote:
André Hänsel wrote: > Quote:
I am using PHP on the command line. PHP version is 5.2.0-8+etch11
(cli) from Debian Sarge.
> Quote:
Apparently there is no informix extension in the package, so I got the
PHP 5.2.0 source and built it with --disable-all --with-
informix=shared.
> Quote:
When I try to load the extension I get:
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library)
'informix.so' in Unknown on line 0
> Quote:
What was my mistake?
> > Quote:
PS: There's no need to answer "using Debian". ;)
>
I don't use Infomix, but do you have the Infomix client installed, and
are the libraries available to your user?
>
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
checking the output of `strace php` might shed more light on missing
files
C. | | | | re: PHP Startup: Invalid library (maybe not a PHP library)
Greetings, André Hänsel.
In reply to Your message dated Friday, June 27, 2008, 02:12:01, Quote:
I am using PHP on the command line. PHP version is 5.2.0-8+etch11
(cli) from Debian Sarge.
Quote:
Apparently there is no informix extension in the package, so I got the
PHP 5.2.0 source and built it with --disable-all --with-
informix=shared.
Quote:
When I try to load the extension I get:
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library)
'informix.so' in Unknown on line 0
Quote:
What was my mistake?
Don't try to load shared libraries as PHP extensions.
--
Sincerely Yours, AnrDaemon <anrdaemon@freemail.ru> | | | | re: PHP Startup: Invalid library (maybe not a PHP library)
On Jun 30, 1:27*am, AnrDaemon <anrdae...@freemail.ruwrote: Quote:
Greetings, André Hänsel.
In reply to Your message dated Friday, June 27, 2008, 02:12:01,
> Quote:
I am using PHP on the command line. PHP version is 5.2.0-8+etch11
(cli) from Debian Sarge.
Apparently there is no informix extension in the package, so I got the
PHP 5.2.0 source and built it with --disable-all --with-
informix=shared.
When I try to load the extension I get:
PHP Warning: *PHP Startup: Invalid library (maybe not a PHP library)
'informix.so' *in Unknown on line 0
What was my mistake?
>
Don't try to load shared libraries as PHP extensions.
I don't understand. I thought, PHP extensions were shared libraries? | | | | re: PHP Startup: Invalid library (maybe not a PHP library)
Greetings, André Hänsel.
In reply to Your message dated Tuesday, July 1, 2008, 18:49:29, Quote:
On Jun 30, 1:27*am, AnrDaemon <anrdae...@freemail.ruwrote: Quote:
>Greetings, André Hänsel.
>In reply to Your message dated Friday, June 27, 2008, 02:12:01,
>> Quote:
I am using PHP on the command line. PHP version is 5.2.0-8+etch11
(cli) from Debian Sarge.
Apparently there is no informix extension in the package, so I got the
PHP 5.2.0 source and built it with --disable-all --with-
informix=shared.
When I try to load the extension I get:
PHP Warning: *PHP Startup: Invalid library (maybe not a PHP library)
'informix.so' *in Unknown on line 0
What was my mistake?
>>
>Don't try to load shared libraries as PHP extensions.
Quote:
I don't understand. I thought, PHP extensions were shared libraries?
Shared library in this case - one that contain function calls to operate with
something. Like libMySql for MySQL or libeay32/ssleay32 for cURL SSL support.
Looking at library name, I guess you're trying to load Informix shared library
as PHP extension. Don't do that.
Put it in PHP binary folder or in directory accessible through PATH variable,
if it isn't there already.
--
Sincerely Yours, AnrDaemon <anrdaemon@freemail.ru> | | | | re: PHP Startup: Invalid library (maybe not a PHP library)
On Jul 1, 7:54*pm, AnrDaemon <anrdae...@freemail.ruwrote: Quote:
Greetings, André Hänsel.
In reply to Your message dated Tuesday, July 1, 2008, 18:49:29,
>
>
> Quote:
On Jun 30, 1:27*am, AnrDaemon <anrdae...@freemail.ruwrote: Quote:
Greetings, André Hänsel.
In reply to Your message dated Friday, June 27, 2008, 02:12:01,
> Quote: Quote:
I am using PHP on the command line. PHP version is 5.2.0-8+etch11
(cli) from Debian Sarge.
Apparently there is no informix extension in the package, so I got the
PHP 5.2.0 source and built it with --disable-all --with-
informix=shared.
When I try to load the extension I get:
PHP Warning: *PHP Startup: Invalid library (maybe not a PHP library)
'informix.so' *in Unknown on line 0
What was my mistake?
> Quote: Quote:
Don't try to load shared libraries as PHP extensions.
I don't understand. I thought, PHP extensions were shared libraries?
>
Shared library in this case - one that contain function calls to operate with
something. Like libMySql for MySQL or libeay32/ssleay32 for cURL SSL support.
Looking at library name, I guess you're trying to load Informix shared library
as PHP extension. Don't do that.
Well, I got the informix.so from the PHP source tree in ext/
informix/.libs after compiling it with --with-informix=shared. I
think, this should be a PHP extension. | | | | re: PHP Startup: Invalid library (maybe not a PHP library)
André Hänsel wrote: Quote:
On Jul 1, 7:54 pm, AnrDaemon <anrdae...@freemail.ruwrote: Quote:
>Greetings, André Hänsel.
>In reply to Your message dated Tuesday, July 1, 2008, 18:49:29,
>>
>>
>> Quote:
>>On Jun 30, 1:27 am, AnrDaemon <anrdae...@freemail.ruwrote:
>>>Greetings, André Hänsel.
>>>In reply to Your message dated Friday, June 27, 2008, 02:12:01,
>>>>I am using PHP on the command line. PHP version is 5.2.0-8+etch11
>>>>(cli) from Debian Sarge.
>>>>Apparently there is no informix extension in the package, so I got the
>>>>PHP 5.2.0 source and built it with --disable-all --with-
>>>>informix=shared.
>>>>When I try to load the extension I get:
>>>>PHP Warning: PHP Startup: Invalid library (maybe not a PHP library)
>>>>'informix.so' in Unknown on line 0
>>>>What was my mistake?
>>>Don't try to load shared libraries as PHP extensions.
>>I don't understand. I thought, PHP extensions were shared libraries?
>Shared library in this case - one that contain function calls to operate with
>something. Like libMySql for MySQL or libeay32/ssleay32 for cURL SSL support.
>Looking at library name, I guess you're trying to load Informix shared library
>as PHP extension. Don't do that.
>
Well, I got the informix.so from the PHP source tree in ext/
informix/.libs after compiling it with --with-informix=shared. I
think, this should be a PHP extension.
>
Yes, PHP extensions can be shared libraries. The only thing to be sure
if is that this is the .so created by your PHP build. I'd suggest you
check the file date/time to ensure that's the case.
And again - you need to ensure your informix libraries are available to
the PHP process (or web server process, if you're running under a web
server).
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. jstucklex@attglobal.net
================== | | | | re: PHP Startup: Invalid library (maybe not a PHP library)
Greetings, André Hänsel.
In reply to Your message dated Wednesday, July 2, 2008, 14:59:30, Quote: Quote: Quote:
I am using PHP on the command line. PHP version is 5.2.0-8+etch11
(cli) from Debian Sarge.
Apparently there is no informix extension in the package, so I got the
PHP 5.2.0 source and built it with --disable-all --with-
informix=shared.
When I try to load the extension I get:
PHP Warning: *PHP Startup: Invalid library (maybe not a PHP library)
'informix.so' *in Unknown on line 0
What was my mistake?
>> Quote:
>Don't try to load shared libraries as PHP extensions.
I don't understand. I thought, PHP extensions were shared libraries?
>>
>Shared library in this case - one that contain function calls to operate with
>something. Like libMySql for MySQL or libeay32/ssleay32 for cURL SSL support.
>Looking at library name, I guess you're trying to load Informix shared library
>as PHP extension. Don't do that.
Quote:
Well, I got the informix.so from the PHP source tree in ext/
informix/.libs after compiling it with --with-informix=shared. I
think, this should be a PHP extension.
PHP Informix extension have the name "php_ifx.dll" under Windows.
Guess it has similar name under *NIX.
--
Sincerely Yours, AnrDaemon <anrdaemon@freemail.ru> |  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 226,376 network members.
|