Solution that fixed the problem in my case:
$ php -r 'var_dump(function_exists("gnupg_decrypt"));';
PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/gnupg.so' - **libgpgme.so.11: cannot open shared object file**: No such file or directory in Unknown on line 0
bool(false)
$ ldd /usr/lib/php5/20100525/gnupg.so
linux-vdso.so.1 => (0x00007fff715ff000)
**libgpgme.so.11 => not found**
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f087c815000)
/lib64/ld-linux-x86-64.so.2 (0x00007f087cdea000)
It seems that the server doesn’t load libraries from the /usr/local/lib
folder. To fix this problem just add /usr/local/lib
to /etc/ld.so.conf
or/and run ldconfig
.
gettext
port has been splitted into two different ports so you have outdates software that should be updated prior to the installations.
First, update your ports tree:
portsnap fetch update
This may take a while.
Then you have to install handful tool portmaster
:
make -C /usr/ports/ports-mgmt/portmaster install clean
Then you have to check whether your ports are in consistent state:
portmaster --check-depends
portmaster --check-port-dbdir
portmaster -y --clean-distfiles
Then you have to deinstall old gettext
:
pkg delete -f gettext
Now you probably want to install www/mod_php5
before lang/php5
- apache module is the separate port now, while CLI/FPM are still at the old location.
make -C /usr/ports/www/mod_php5 install clean
make -C /usr/ports/lang/php5 install clean
make -C /usr/ports/lang/php5-extensions install clean
Fresh gettext
will be installed automatically as dependence, as well as lot of other fresh ports.
While your host is a bit outdated, you'll need to update all the ports due to the security reasons:
portmaster -atd
You can stuck with another dependency errors, so just deinstall corresponding port (like gettext
was), and launch portmaster -aRtd
again and again until all the problems will be resolved. If some strange messages still present, you can reinstall all the ports at once by portmaster -aftd
P.S.
You should install software from ports/packages ONLY to avoid unforseen consequencies.
Best Answer
The ubuntu package is called php7.0
You may also want to use
In the future, you can check https://packages.ubuntu.com or run