FreeNAS 11.1 Jail php-GD extension installation problem

Status
Not open for further replies.

OliverF

Cadet
Joined
Dec 16, 2017
Messages
7
For a Owncloud X installation I need the php-gd library.
What I get is :
Code:
PHP Startup: Unable to load dynamic library 'gd.so' (tried: /usr/local/lib/php/20170718/gd.so (/lib/libz.so.6: version ZLIB_1.2.9 required by /usr/local/lib/libpng16.so.16 not found)


Simple steps to get this error:

Cerate a new Jail

in the Console
Code:
pkg upgrade
pkg install php72	 it is the same for 70 and 71

Code:
root@test:/ # php -m															
[PHP Modules]																
Core																			
date																			
libxml																		
mysqlnd																		
pcre																			
Reflection																	
SPL																			
standard																		
																			
[Zend Modules]																

Confirms that php ist installed well.
Code:
pkg install php72-gd

Code:
root@test:/ # php -m															
PHP Warning:  PHP Startup: Unable to load dynamic library 'gd.so' (tried: /usr/local/lib/php/20170718/gd.so (/lib/libz.so.6: version ZLIB_1.2.9 required by /usr
/local/lib/libpng16.so.16 not found), /usr/local/lib/php/20170718/gd.so.so (Cannot open "/usr/local/lib/php/20170718/gd.so.so")) in Unknown on line 0		
[PHP Modules]																
Core																			
date																			
libxml																		
mysqlnd																		
pcre																			
Reflection																	
SPL																			
standard																		
																			
[Zend Modules]   


Any hint?
 
Last edited:

bolinches

Cadet
Joined
Sep 29, 2016
Messages
3
Happens the same on php56 too

# php -m
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/gd.so' - /lib/libz.so.6: version ZLIB_1.2.9 required by /usr/local/lib/libpng16.so.16 not found in Unknown on line 0
[PHP Modules]
bcmath
Core
ctype
date
dom
ereg
gettext
json
ldap
libxml
mbstring
mysql
mysqli
mysqlnd
pcre
Reflection
session
SimpleXML
snmp
sockets
SPL
standard
xml
xmlreader
xmlwriter

[Zend Modules]
 

OliverF

Cadet
Joined
Dec 16, 2017
Messages
7
Solution for me is:

Don't try to saddle dead horse :)
The Jail with the "old" GUI is only BSD 11.0 which is not longer under support.
Try to give the iocage in the "new" GUI a shot.

root@freenas:~ # iocage fetch

[0] 9.3-RELEASE (EOL)

[1] 10.1-RELEASE (EOL)

[2] 10.2-RELEASE (EOL)

[3] 10.3-RELEASE

[4] 10.4-RELEASE

[5] 11.0-RELEASE (EOL)

[6] 11.1-RELEASE


Type the number of the desired RELEASE

Press [Enter] to fetch the default selection: (11.1-RELEASE)

Type EXIT to quit:


So no problem to get a fresh release for the Jail.
Problem for me was the new GUI :) But with the command line and a little search it is running now.
If you do it on the command line you can see what to fill in the GUI.
 

bolinches

Cadet
Joined
Sep 29, 2016
Messages
3
Yeap I went iocage CLI. All good there

iocage create -n zabbix ip4_addr="vnet0|192.168.0.27/24" vnet=on allow_raw_sockets=1 allow_sysvipc=1 defaultrouter=192.168.0.1 -r 11.1-RELEASE

# php -m
[PHP Modules]
bcmath
Core
ctype
date
dom
ereg
gd
gettext
json
ldap
libxml
mbstring
mysql
mysqli
mysqlnd
pcre
Reflection
session
SimpleXML
snmp
sockets
SPL
standard
xml
xmlreader
xmlwriter

[Zend Modules]
 
Status
Not open for further replies.
Top