473,383 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

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". ;)
Jun 27 '08 #1
8 16157
André Hänsel wrote:
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.
js*******@attglobal.net
==================
Jun 27 '08 #2
On Jun 27, 2:07 am, Jerry Stuckle <jstuck...@attglobal.netwrote:
André Hänsel wrote:
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.
jstuck...@attglobal.net
==================
checking the output of `strace php` might shed more light on missing
files

C.
Jun 27 '08 #3
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.
--
Sincerely Yours, AnrDaemon <an*******@freemail.ru>

Jun 29 '08 #4
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?
Jul 1 '08 #5
Greetings, André Hänsel.
In reply to Your message dated Tuesday, July 1, 2008, 18:49:29,
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.
Put it in PHP binary folder or in directory accessible through PATH variable,
if it isn't there already.
--
Sincerely Yours, AnrDaemon <an*******@freemail.ru>

Jul 1 '08 #6
On Jul 1, 7:54*pm, AnrDaemon <anrdae...@freemail.ruwrote:
Greetings, André Hänsel.
In reply to Your message dated Tuesday, July 1, 2008, 18:49:29,
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.
Jul 2 '08 #7
André Hänsel wrote:
On Jul 1, 7:54 pm, AnrDaemon <anrdae...@freemail.ruwrote:
>Greetings, André Hänsel.
In reply to Your message dated Tuesday, July 1, 2008, 18:49:29,
>>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.
js*******@attglobal.net
==================

Jul 2 '08 #8
Greetings, André Hänsel.
In reply to Your message dated Wednesday, July 2, 2008, 14:59:30,
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.
PHP Informix extension have the name "php_ifx.dll" under Windows.
Guess it has similar name under *NIX.
--
Sincerely Yours, AnrDaemon <an*******@freemail.ru>

Jul 2 '08 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mickael Faivre-Macon | last post by:
Hi, I have compiled a dynamic loaded PHP module and sometimes I get a "invalid library (maybe not a PHP library)" message. I just have to reload the page and my module is working again. ...
1
by: Sweep | last post by:
A question about linking with a static library that uses code from another static library. Suppose we have files A.h and A.cpp defining class A: ////////////////////// // A.h class A {...
10
by: David Soukal | last post by:
Hello, I have an interesting problem that I'm tackling with. I'm sure there must be some obvious solution... I have this big project. It's composed of several *.lib modules. Now, one of the...
2
by: steve bull | last post by:
how can I debug a code library using C# 2005 Express? I cannot find any way to make the library debuggable - even when I set DEBUG and No Optimize on the debug panel of the code library's property...
7
by: GS | last post by:
Hi! I am getting an "Invalid Xml" exception when I try to load an xsl file using XslTransform.Load(string url). The Xsl file is valid and works fine if I just rename the file. There are some...
5
by: voronwae | last post by:
Hi folks. Either I'm missing something really obvious (most likely) or I'm missing something really subtle. I've been building up a machine as an IMP webmail server, with php 5.1.2, cyrus-sasl,...
1
by: fallleaf | last post by:
i make library, this library function is create circula-queue in shared memory and attach, queue put, queue get, etc... sample program make, 1 sample program use library, test make queue in...
8
by: shuisheng | last post by:
Dear All, I have a libaray which provides a base class of name Base and several derived classes of name Derived1, Derived2 and so on. I want to add a client data into those classes, such as ...
7
by: =?Utf-8?B?QUo=?= | last post by:
Hi, I have created a custom membership provider for an ASP.NET web app which depends of the Enterprise Library (Data, Exception) handling blocks. This code currently runs from the App_Code...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.