You are not logged in.

#1 2015-06-15 12:09:51

geezee
Member
From: Lausanne
Registered: 2013-07-12
Posts: 11

php-gd - Unable to load library gd.so - libvpx.so.1

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 smile

Last edited by geezee (2015-06-16 08:27:18)

Offline

#2 2015-06-15 13:22:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: php-gd - Unable to load library gd.so - libvpx.so.1

Post the output of

uname -a
file /usr/lib/php/modules/gd.so

Offline

#3 2015-06-15 13:38:25

progandy
Member
Registered: 2012-05-17
Posts: 5,280

Re: php-gd - Unable to load library gd.so - libvpx.so.1

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

#4 2015-06-15 14:30:24

geezee
Member
From: Lausanne
Registered: 2013-07-12
Posts: 11

Re: php-gd - Unable to load library gd.so - libvpx.so.1

karol wrote:

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

#5 2015-06-15 15:17:08

geezee
Member
From: Lausanne
Registered: 2013-07-12
Posts: 11

Re: php-gd - Unable to load library gd.so - libvpx.so.1

I managed to solve it,

I installed libvpx.so.1 from here as an rpm file
and used the instructions here to extract and install
the rpm file manually.

I no longer get the error

Offline

#6 2015-06-15 15:25:35

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: php-gd - Unable to load library gd.so - libvpx.so.1

Please post the output of

pacman -Q php-gd
pacman -Syu

Offline

#7 2015-06-15 15:30:22

geezee
Member
From: Lausanne
Registered: 2013-07-12
Posts: 11

Re: php-gd - Unable to load library gd.so - libvpx.so.1

karol wrote:

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

#8 2015-06-15 15:47:25

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: php-gd - Unable to load library gd.so - libvpx.so.1

What's the output of

pacman -Q gd libvpx

Offline

#9 2015-06-15 16:49:46

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: php-gd - Unable to load library gd.so - libvpx.so.1

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:

I managed to solve it,

I installed libvpx.so.1 from here as an rpm file
and used the instructions here to extract and install
the rpm file manually.

I no longer get the error

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

#10 2015-06-16 08:27:02

geezee
Member
From: Lausanne
Registered: 2013-07-12
Posts: 11

Re: php-gd - Unable to load library gd.so - libvpx.so.1

karol wrote:

What's the output of

pacman -Q gd libvpx
Spider.007 wrote:

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:

I managed to solve it,

I installed libvpx.so.1 from here as an rpm file
and used the instructions here to extract and install
the rpm file manually.

I no longer get the error

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

#11 2015-06-16 15:37:13

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,419

Re: php-gd - Unable to load library gd.so - libvpx.so.1

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

Board footer

Powered by FluxBB