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
configure.in:3: warning: prefer named diversions
configure.in:3: 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

Linux OS DevPHPPerl

Avatar of undefined
Last Comment

8/22/2022 - Mon

Try installing libz and libpng first.

yum install libz libpng

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

This the solution for my problem
Your help has saved me hundreds of hours of internet surfing.