./configure --with-headaches

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Garrett Albright

    ./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.
  • thumb_42@yahoo.com

    #2
    Re: ./configure --with-headaches

    Garrett Albright <i@think.not> wrote:[color=blue]
    > 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.[/color]

    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


    Comment

    • Remi Villatel

      #3
      Re: ./configure --with-headaches

      Garrett Albright wrote:
      [color=blue]
      > 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[/color]

      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
      maxilys@tele2.f r
      =============== =

      Comment

      • Garrett Albright

        #4
        Re: ./configure --with-headaches

        thumb_42@yahoo. com wrote:[color=blue]
        > I don't know if it'll help or not.. but you might try:
        >
        > --with-bz2=/sw[/color]

        Thanks for the suggestion, but this does not supress the error.
        [color=blue]
        > Compiling stuff on a mac (which is what I assume you've got, with fink)
        > can be really touchy in my experience.[/color]

        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:[color=blue]
        > 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[/color]

        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.

        Comment

        Working...