PHP 4.3.x and Tidy

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike Gifford

    #1

    PHP 4.3.x and Tidy

    Hello Folks,

    I'm trying to get tidy set up on a pretty standard fedora core 1 server.
    Looks pretty simple from here:


    Should just have to go:
    pear -v install tidy

    However, it won't work unless you have the following up and running on
    your system:
    php-devel libtool autoconf automake libtidy-devel libtidy

    Would be nice if it said that somewhere.

    I've got this set up on 3 servers, and it's still not quite
    working right.. I've got this error:

    Build complete.
    (It is safe to ignore warnings about tempnam and tmpnam).

    tidy.so copied to /tmp/tmpZVuvvk/tidy-1.1/tidy.so

    Build process completed successfully
    Installing 'tidy.so' at ext_dir
    (/usr/local/lib/php/extensions/no-debug-non-zts-20020429/tidy.so) rolling
    back 39 file operations
    failed to copy tidy.so to
    /usr/local/lib/php/extensions/no-debug-non-zts-20020429/tidy.so


    and also this error


    checking whether we are using the GNU C++ compiler... no checking whether
    g++ accepts -g... no checking how to run the C++ preprocessor... /lib/cpp
    configure: error: C++ preprocessor "/lib/cpp" fails sanity check See
    `config.log' for more details.
    `/tmp/tmp4atzbJ/tidy-1.1/configure --with-tidy' failed


    But I did get it working on my local machine:

    Build process completed successfully
    Installing 'tidy.so' at ext_dir (/usr/lib/php4/tidy.so) about to commit 36
    file operations
    successfully committed 36 file operations install ok: tidy 1.1


    I just can't seem to be able to access the php tidy functions via
    functions like:
    PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.


    Any suggestions?

    Mike

  • R. Rajesh Jeba Anbiah

    #2
    Re: PHP 4.3.x and Tidy

    Mike Gifford <mike@openconce pt.ca> wrote in message news:<pan.2004. 08.24.16.50.29. 427307@openconc ept.ca>...
    <snip>[color=blue]
    > I just can't seem to be able to access the php tidy functions via
    > functions like:
    > http://ca3.php.net/manual/en/functio...rse-string.php
    >
    > Any suggestions?[/color]


    What was the error? What you tried?

    --
    | Just another PHP saint |
    Email: rrjanbiah-at-Y!com

    Comment

    Working...