Link to home
Start Free TrialLog in
Avatar of dnzone88
dnzone88Flag for Malaysia

asked on

Problems installing haru extension in Fedora 15

When installing the haru extension in Fedora 15. I'm stuck with the following error. Can anyone please help. This is my first time trying Linux so my knowledge in Linux is quite limited. Thanks.

The command that I used to install the haru extenstion
# pecl install haru

Open in new window

The complete message from the terminal
downloading haru-1.0.0.tgz ...
Starting to download haru-1.0.0.tgz (23,336 bytes)
......done: 23,336 bytes
4 source files, building
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626 warning: prefer named diversions warning: prefer named diversions
Please provide the prefix of libharu installation [autodetect] : /usr/lib
building in /var/tmp/pear-build-root0N0TQs/haru-1.0.0
running: /var/tmp/haru/configure --with-haru=/usr/lib
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.13.5 (ok)
checking for gawk... gawk
checking for Haru PDF support... yes, shared
checking for the location of libz... no
checking for the location of libpng... no
not found
configure: error: Could not find Haru PDF library in /usr/lib
ERROR: `/var/tmp/haru/configure --with-haru=/usr/lib' failed

Open in new window

Avatar of NoiS
Flag of Brazil image

Try installing libz and libpng first.

yum install libz libpng
Avatar of dnzone88
Flag of Malaysia image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dnzone88


This the solution for my problem