Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GLIBC Version is not supported to install Libsql extension of php. #1888

Open
rijalsubash opened this issue Dec 3, 2024 · 7 comments
Open
Labels

Comments

@rijalsubash
Copy link

Description:
I am trying to use bref with Turso Database, which use Libsql extension.
I am using this extension. https://github.com/tursodatabase/turso-client-php/releases/tag/turso-php-extension-v1.4.0. which requires GLIBC_2.29 but bref docker image has GLIBC_2.27.
it throws following error
PHP Warning: PHP Startup: Unable to load dynamic library 'liblibsql_php' (tried: /opt/bref/extensions/liblibsql_php (/opt/bref/extensions/liblibsql_php: cannot open shared object file: No such file or directory), /opt/bref/extensions/liblibsql_php.so (/lib64/libm.so.6: version GLIBC_2.29' not found (required by /opt/bref/extensions/liblibsql_php.so)))`

How to reproduce:
Here is my DockerFile

FROM bref/php-81-fpm:2

 # Copy the extrnsion so file
COPY ./php/estensions/liblibsql_php.so /opt/bref/extensions/

# Copy the source code in the image
COPY . /var/task
 
# Configure the handler file (the entrypoint that receives all HTTP requests)
CMD ["public/index.php"]

and here is my php ini.

extension_dir=/opt/bref/extensions/
extension=liblibsql_php
@rijalsubash rijalsubash added the bug label Dec 3, 2024
@GrahamCampbell
Copy link
Contributor

This probably can't be resolved until the Amazon Linux 2023 upgrade project is completed.

@GrahamCampbell
Copy link
Contributor

Unless you can build the extension yourself linked against an older version of glibc, assuming the code compiles against that version.

@mnapoli
Copy link
Member

mnapoli commented Jan 18, 2025

Ah that's too bad, I find Turso interesting for Lambda, I wish it could work before we move to AL2023…

@GrahamCampbell
Copy link
Contributor

Unless you can build the extension yourself linked against an older version of glibc, assuming the code compiles against that version.

This is worth exploring, still. ;)

@mnapoli
Copy link
Member

mnapoli commented Jan 20, 2025

Right, I don't think I'll have the time myself to dive into that for now 🥲

@GrahamCampbell
Copy link
Contributor

It might be best to open an issue with Turso, @rijalsubash.

@GrahamCampbell
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants