472,986 Members | 2,881 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,986 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 6682
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...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.