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 · 0 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
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

1 participant