-
Notifications
You must be signed in to change notification settings - Fork 32
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
Unable to load dynamic library 'pdo_snowflake.so' #195
Comments
Here is what I get when trying to load the extension from the command line (using the install folder instead of the php extensions folder where I copied the extension to): bash-5.0# pwd
/var/www/html/pdo_snowflake
bash-5.0# $PHP_HOME/bin/php -dextension=modules/pdo_snowflake.so -m
Cannot load Zend OPcache - it was already loaded
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_snowflake.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20180731/pdo_snowflake.so (Error relocating /usr/local/lib/php/extensions/no-debug-non-zts-20180731/pdo_snowflake.so: setcontext: symbol not found), /usr/local/lib/php/extensions/no-debug-non-zts-20180731/pdo_snowflake.so.so (Error loading shared library /usr/local/lib/php/extensions/no-debug-non-zts-20180731/pdo_snowflake.so.so: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'modules/pdo_snowflake.so' (tried: modules/pdo_snowflake.so (Error relocating modules/pdo_snowflake.so: setcontext: symbol not found), /usr/local/lib/php/extensions/no-debug-non-zts-20180731/modules/pdo_snowflake.so.so (Error loading shared library /usr/local/lib/php/extensions/no-debug-non-zts-20180731/modules/pdo_snowflake.so.so: No such file or directory)) in Unknown on line 0
[PHP Modules]
apcu
bcmath
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gnupg
hash
iconv
json
libxml
mbstring
mongodb
mysqlnd
openssl
pcre
PDO
pdo_mysql
PDO_ODBC
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
readline
redis
Reflection
session
SimpleXML
soap
sodium
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache |
I have exactly the same issue. Did you already found a solution? |
This may or may not be the issue, but according to the README, this extension requires PHP 7.2. |
I have the same issue. After successful build, I tried to load it in memory to check if it's working
|
same error:
|
I am getting the same error: Docker container: php:7.4-fpm-alpine
Please note that all our error messages including the comments above from php 7.2 seem to be trying to load in the module with "pdo_snowflake.so.so" I have even tried renaming the file to this .so.so with no luck. Here are my dependencies needed to run the build for PDO snowflake
|
If you run the
I think its because the alpine images use musl in place of glibc. For me the fix was switching from alpine based php images to debian based. |
same error
|
Just gonna drop my dockerfile here
|
there is no such file in git repo like this "/modules/pdo_snowflake.so" |
I was having this same issue with php:7.2-fpm docker image and the key was running the compile script with bash: |
hi - trying to cleaning up the old issues here. |
I have tried everything I can think of to build the pdo extension for my docker image with no luck. I always end up with the following error when starting up php:
Here is my setup:
Dockerfile uses
php:7.3-fpm-alpine
which pulls down PHP 7.3.8.The script for building pdo_snowflake is:
I then include a pdo_snowflake.ini file with:
You can see from the error that it looks for the extension at
/usr/local/lib/php/extensions/no-debug-non-zts-20180731/pdo_snowflake.so
which I can confirm is there:Not sure what else I can try to get this extension working.
The text was updated successfully, but these errors were encountered: