On Wed, 29 Mar 2006, jpadie wrote:

>
>Hi there
>
>my host (1 and 1) have compiled php5 without sqlite.  but I have a couple of
>php applications that would benefit from SQLite (for portability).


You could raise a ticket with 1 and 1 to install sqlite.


>
>The server is a linux box and I do not have root, SSH or telnet access
>(although i have found using php i can eval and exec commands (eg. apt-get)
>outside of the document root: opens up possibilities...)


What version and distro of Linux? Do you know?


>
>I do not operate any linux boxes elsewhere so have no way of compiling and
>uploading source code.
>
>Now the issue:
>
>I am trying to find a way to "install" and use SQLite even though it is not
>compiled in to php5.  PDO and PDO_SQLite are installed.
>
>i can dl() extensions (.so) but when I try to do this with the SQLite
>extension 2.8.17 or later i get the message:
>--
>Warning: dl() [function.dl]: Unable to load dynamic library
>'/homepages/6/OCCLUDED/htdocs/pear/extensions/sqlite-2.8.17.so' -
>/lib/libc.so.6: version `GLIBC_2.3' not found


This means that sqlite-2.8.17.so is compiled against glibc 2.3, which is
included with most modern distros. Debian Woody uses glibc 2.2, as does RH
7.x and derived products (RH AS 1.x) RH 8.x was the first glibc 2.3 based
RH distribution, I believe. Not sure about the Suse distros.

It could be that:
- The Linux box it is installed on is using glibc < 2.3, in which case
  you'll have to get hold of library binaries compiled on an old distro
  with suitable glibc.
- PHP is running in a chroot environment, such that the system glibc is
  not available. The fact you can run external binaries makes this
  unlikely.


Christian


-- 
    /"\
    \ /    ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
     X                           - AGAINST MS ATTACHMENTS
    / \

Reply via email to