You are not logged in.
I seem to have a problem installing php-gd
I uncommented the extension=gd.so line in /etc/php/php.ini which using phpinfo() is the correct php.ini file.
There is a gd.so file in the `/usr/lib/php/modules` directory
# ls -lah /usr/lib/php/modules/gd.so
-rwxr-xr-x 1 root root 104K Jun 11 20:52 /usr/lib/php/modules/gd.so
Running "php -m" I get
# php -m
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/gd.so' - libvpx.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
[PHP Modules]
Core
ctype
curl
date
dom
ereg
fileinfo
filter
gettext
hash
json
libxml
mbstring
mcrypt
mhash
mongo
mysql
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
readline
Reflection
session
SimpleXML
SPL
ssh2
standard
tokenizer
xml
xmlreader
xmlwriter
zlib
[Zend Modules]
So obviously the error is somewhere here:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/gd.so' - libvpx.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
I have no idea how to fix this, any help appreciated
Last edited by geezee (2015-06-16 08:27:18)
Offline
Post the output of
uname -a
file /usr/lib/php/modules/gd.so
Offline
Your php-gd package is out of date. It seems to require libvpx.so.1, but arch has now libvpx.so.2. Please perform a full system upgrade and maybe switch to a new mirror.
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
Post the output of
uname -a file /usr/lib/php/modules/gd.so
The output is
# uname -a
Linux lambda 4.0.5-1-ARCH #1 SMP PREEMPT Sat Jun 6 18:37:49 CEST 2015 x86_64 GNU/Linux
# file /usr/lib/php/modules/gd.so
/usr/lib/php/modules/gd.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=b338b3d0f588a10f2fac792aae31e798fa3204c8, stripped
I also performed a system update as progandy suggested. Still get the error
Offline
Please post the output of
pacman -Q php-gd
pacman -Syu
Offline
Please post the output of
pacman -Q php-gd pacman -Syu
This is the output
# pacman -Q php-gd
php-gd 5.6.10-1
# pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community 2.7 MiB 207K/s 00:13 [###################################################################################] 100%
multilib is up to date
:: Starting full system upgrade...
there is nothing to do
Offline
What's the output of
pacman -Q gd libvpx
Offline
What does `ldd /usr/lib/php/modules/gd.so|grep vpx` output? It should show that gd.so is linked with libvpx.so.2
That's a work-around that shouldn't be necessary; which is why this thread should not be marked 'solved'
Last edited by Spider.007 (2015-06-15 16:51:08)
Offline
What's the output of
pacman -Q gd libvpx
What does `ldd /usr/lib/php/modules/gd.so|grep vpx` output? It should show that gd.so is linked with libvpx.so.2
geezee wrote:That's a work-around that shouldn't be necessary; which is why this thread should not be marked 'solved'
The output is
# pacman -Q gd libvpx
gd 2.1.1-2
libvpx 1.4.0-2
# ldd /usr/lib/php/modules/gd.so|grep vpx
libvpx.so.2 => /usr/lib/libvpx.so.2 (0x00007f2380d61000)
libvpx.so.1 => /usr/lib/libvpx.so.1 (0x00007f238022a000)
I'll remove the solved mark
Offline
install pax-utils from Community, then run ldd-tree on that file. You should be able to see what is linked to the old version of the lib.
Offline