473,407 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

./configure --with-headaches

Trying to compile PHP 5 beta 4, and not having much fun...

% ./configure --with-apxs --with-mod_charset --with-zlib --with-bz2
--with-curl --with-gd --with-mhash --with-pspell --enable-sqlite-utf8
--with-tidy --disable-libxml
....[snip]...
checking for BZip2 support... yes
checking for BZip2 in default path... found in /usr
checking for BZ2_bzerror in -lbz2... no
configure: error: bz2 module requires libbz2 >= 1.0.0
% where bzip2
/sw/bin/bzip2
% bzip2 -V
bzip2, a block-sorting file compressor. Version 1.0.2, 30-Dec-2001.

Why is it finding BZip2 in /usr, when it's *not* in /usr, it's in
/sw/bin? And, as you can see, the version most certainly is >= 1.0.0. I
tried putting --with-bz2-dir=/sw/bin/ in the ./configure command, but
that has no effect. If I leave out --with-bz2, it then whines in a
similar manner with curl (which is also in /sw/bin). Is there just a way
to tell it to use the same damn bzip2 I access when I type "bzip2"?

Can't get libxml to work either, hence why I have it --disabled above;
but I can't remember what exactly was wrong with that as it is four in
the morning.

TIA for any help you can provide.
Jul 17 '05 #1
3 6760
Garrett Albright <i@think.not> wrote:
Trying to compile PHP 5 beta 4, and not having much fun...

% ./configure --with-apxs --with-mod_charset --with-zlib --with-bz2
--with-curl --with-gd --with-mhash --with-pspell --enable-sqlite-utf8
--with-tidy --disable-libxml
...[snip]...
checking for BZip2 support... yes
checking for BZip2 in default path... found in /usr
checking for BZ2_bzerror in -lbz2... no
configure: error: bz2 module requires libbz2 >= 1.0.0
% where bzip2
/sw/bin/bzip2
% bzip2 -V
bzip2, a block-sorting file compressor. Version 1.0.2, 30-Dec-2001.

Why is it finding BZip2 in /usr, when it's *not* in /usr, it's in
/sw/bin? And, as you can see, the version most certainly is >= 1.0.0. I
tried putting --with-bz2-dir=/sw/bin/ in the ./configure command, but
that has no effect. If I leave out --with-bz2, it then whines in a
similar manner with curl (which is also in /sw/bin). Is there just a way
to tell it to use the same damn bzip2 I access when I type "bzip2"?

Can't get libxml to work either, hence why I have it --disabled above;
but I can't remember what exactly was wrong with that as it is four in
the morning.


I don't know if it'll help or not.. but you might try:

--with-bz2=/sw

I believe it's looking for the headers and libraries, NOT the actual
binary executable.

Compiling stuff on a mac (which is what I assume you've got, with fink)
can be really touchy in my experience.

Jamie
Jul 17 '05 #2
Garrett Albright wrote:
Trying to compile PHP 5 beta 4, and not having much fun...

% ./configure --with-apxs --with-mod_charset --with-zlib --with-bz2
--with-curl --with-gd --with-mhash --with-pspell --enable-sqlite-utf8
--with-tidy --disable-libxml
...[snip]...
checking for BZip2 support... yes
checking for BZip2 in default path... found in /usr
checking for BZ2_bzerror in -lbz2... no
configure: error: bz2 module requires libbz2 >= 1.0.0


I'm not an expert in compilation but you should try this:

% for a in `cat /etc/ld.so.conf` ; do \
echo $a ; ls $a | grep bz2 ; done

On my system, I got various messages including:

/usr/lib
libbz2.a
libbz2.la
libbz2.so
libbz2.so.1
libbz2.so.1.0.0

These are the files needed by the compilation. If these files don't appear
with my tiny script, first check that the user doing the compilation has the
needed access rights to all library folders. Any way, find the libbz2.* and
check that the path is in your ld.so.conf and accessible.

Them same applies to "curl" and "xml". Let's customize our little script:

% cat > checklib <<EOF
for a in `cat /etc/ld.so.conf` ; do \
echo $a ; ls $a | grep $1 ; done
EOF
% chmod +x ./checklib

% ./checklib curl

% ./checklib xml

I just noticed that all these libs are in /usr/lib on my system. I think
that either you have no /usr at all or the path to these libs isn't in your
ld.so.conf.

See ya,

================
Remi Villatel
ma*****@tele2.fr
================
Jul 17 '05 #3
th******@yahoo.com wrote:
I don't know if it'll help or not.. but you might try:

--with-bz2=/sw
Thanks for the suggestion, but this does not supress the error.
Compiling stuff on a mac (which is what I assume you've got, with fink)
can be really touchy in my experience.
A correct assumption. Fink works 99% of the time; it's great. Just push
a button and it installs! Idiot-proof. I *really* wish there were a PHP
5 package on Fink right about now.

Remi Villatel wrote: I'm not an expert in compilation but you should try this:

% for a in `cat /etc/ld.so.conf` ; do \
echo $a ; ls $a | grep bz2 ; done


Thank you for putting so much effort into your reply, but I've got to
stop you here; there is no /etc/ld.so.conf on my machine, nor is there a
ld.so.conf in any other directory.
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Christopher De Vries | last post by:
The predominant operating system in my workplace is Solaris, with a bit of Linux and MacOS X thrown in. As such people expect to install new software with the sequence: ../configure make make...
0
by: Markus Wollny | last post by:
Hello! When I try to run ./configure --with-java, it complains that ant doesn't work. However ant is installed, as is the latest Java SDK 1.4.2 from sun, PATH and JAVA_HOME are set correctly; ...
0
by: Samuel M. Smith | last post by:
I am trying to build python2.4.2 on an arm 9 running Debian 3 Sarge when I run ./configure it fails with ../configure checking MACHDEP... linux2 checking EXTRAPLATDIR... checking for...
1
by: Markus Wollny | last post by:
Hi! I am trying to build PostgreSQL 7.4.3 with Java enabled; I've got Apache Ant version 1.5 and j2sdk1.4.1_05 installed: Verifiying ant: # which javac /usr/java/j2sdk1.4.1_05/bin/javac #...
7
by: Hal Vaughan | last post by:
I have a problem with port forwarding and I have been working on it for over 2 weeks with no luck. I have found C programs that almost work and Java programs that almost work, but nothing that...
14
by: david | last post by:
I have developed web forms including login by using ASP.NET via HTTP. Now I want to secure the connection from client to the server via HTTPS. How can I configure the server or something else to...
0
by: Satish S Nandihalli | last post by:
following errors were found on executing configure file: 1) configure: WARNING: thread.h: present but cannot be compiled configure: WARNING: thread.h: check for missing prerequisite headers?...
1
by: Jim McCullars | last post by:
Greetings: Getting configure errors trying to build PHP 5.2.5 under Solaris 9. The configure command I use is this: ../configure --with-mysql --with-gd --with-jpeg-dir=/usr/local...
7
by: Mathieu Prevot | last post by:
Hi, I have the following error when I run configure: checking size of wchar_t... configure: error: cannot compute sizeof (wchar_t) what can I do ? Mathieu
0
by: lee.walczak | last post by:
I actually post a topic relating to my problem here: (http://groups.google.co.uk/group/comp.lang.python/browse_thread/ thread/a073d532c4481bfe?hl=en# ) But I thought it could be useful to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.