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

php modules not installing (PHP Startup: Unable to load dynamic library) #754

Open
chrisvollorenew opened this issue Oct 25, 2023 · 0 comments

Comments

@chrisvollorenew
Copy link

chrisvollorenew commented Oct 25, 2023

Hello,

I am building php using mickledore branch, commit 57c5169 of meta-openembedded.

When I run php I get these errors:

HP Warning:  Failed loading Zend extension 'opcache.so' (tried: /usr/lib/php/modules/opcache.so (/usr/lib/php/modules/opcache.so: cannot open shared object file: No such file or directory), /usr/lib/php/modules/opcache.so.so (/usr/lib/php/modules/opcache.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'curl.so' (tried: /usr/lib/php/modules/curl.so (/usr/lib/php/modules/curl.so: cannot open shared object file: No such file or directory), /usr/lib/php/modules/curl.so.so (/usr/lib/php/modules/curl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'gettext.so' (tried: /usr/lib/php/modules/gettext.so (/usr/lib/php/modules/gettext.so: cannot open shared object file: No such file or directory), /usr/lib/php/modules/gettext.so.so (/usr/lib/php/modules/gettext.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'sqlite3.so' (tried: /usr/lib/php/modules/sqlite3.so (/usr/lib/php/modules/sqlite3.so: cannot open shared object file: No such file or directory), /usr/lib/php/modules/sqlite3.so.so (/usr/lib/php/modules/sqlite3.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'zip.so' (tried: /usr/lib/php/modules/zip.so (/usr/lib/php/modules/zip.so: cannot open shared object file: No such file or directory), /usr/lib/php/modules/zip.so.so (/usr/lib/php/modules/zip.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'iconv.so' (tried: /usr/lib/php/modules/iconv.so (/usr/lib/php/modules/iconv.so: cannot open shared object file: No such file or directory), /usr/lib/php/modules/iconv.so.so (/usr/lib/php/modules/iconv.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 8.1.16 (cli) (built: Feb 14 2023 18:59:41) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.16, Copyright (c) Zend Technologies

My build contains the following packages for IMAGE_INSTALL

    php \
    php-cli \
    php-dev \
    php-phar \
    php-cgi \
    php-fpm \
    php-modphp \
    php-opcache \
    apache2 \
   

My php_%.bbappend looks like this:

PACKAGECONFIG:append:pn-php = " sqlite3 imap pgsql mbstring opcache zip apache2"

EXTRA_OECONF:append = " --enable-mbstring --with-curl=${STAGING_LIBDIR}/.."
DEPENDS:append = " curl"

Why is this happening?

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

No branches or pull requests

1 participant