Connecting Tech Pros Worldwide Help | Site Map

PHP Startup: Invalid library (maybe not a PHP library)

=?ISO-8859-1?B?QW5kcukgSORuc2Vs?=
Guest
 
Posts: n/a
#1: Jun 27 '08
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". ;)
Jerry Stuckle
Guest
 
Posts: n/a
#2: Jun 27 '08

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
==================
C. (http://symcbean.blogspot.com/)
Guest
 
Posts: n/a
#3: Jun 27 '08

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:
Hi,
>
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:
Regards,
André
>
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.
AnrDaemon
Guest
 
Posts: n/a
#4: Jun 30 '08

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>

=?ISO-8859-1?B?QW5kcukgSORuc2Vs?=
Guest
 
Posts: n/a
#5: Jul 1 '08

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?
AnrDaemon
Guest
 
Posts: n/a
#6: Jul 1 '08

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>

=?ISO-8859-1?B?QW5kcukgSORuc2Vs?=
Guest
 
Posts: n/a
#7: Jul 2 '08

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.
Jerry Stuckle
Guest
 
Posts: n/a
#8: Jul 2 '08

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
==================

AnrDaemon
Guest
 
Posts: n/a
#9: Jul 2 '08

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>

Closed Thread