473,569 Members | 2,652 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

./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 6784
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.f r
=============== =
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
1750
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 install I've written some python modules and scripts which I packaged as a source distribution with distutils and sent it to some of my colleagues
0
2828
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; helles:/ # /usr/java/apache-ant-1.5.4/bin/ant -version Apache Ant version 1.5.4 compiled on August 12 2003 It complains about some unsupported...
0
1303
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 --without-gcc... no checking for --with-cxx=<compiler>... no checking for c++... c++
1
3292
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 # ant -version Apache Ant version 1.5 compiled on October 15 2002
7
2368
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 does what I need. I've even tried writing a port forwarder in Java and found problems that nobody seems to have the answer to in forums. I need to...
14
3037
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 make the change? Thank you David
0
1268
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? configure: WARNING: thread.h: see the Autoconf documentation configure: WARNING: thread.h: section "Present But Cannot Be Compiled"...
1
3572
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 --with-png-dir=/usr/local --with-zlib-dir=/usr/local --with-apxs2=/usr/local/apache2/bin/apxs --with-libxml-dir=/usr/local and I get this error:
7
2798
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
1825
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 place an example of my problem here aswell. This a small piece of testcode that creates a TableList. When the cell is selected, a ComboBox Widget is...
0
7700
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7614
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8125
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1221
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.