Please find attached the zip file containing the config.log and config.status.

I have Apache Version 2.0.43 already installed. Higher versions of PHP require Apache version greater than 2.0.44. Since the same server is being used for lot of other services, I cannot change the Apache Configuration.

I have tried --with-curl=/usr/local too but it gives me the same error.

    I just noticed that you try to compile stuff on SPARC Sun Solaris 2.8. Let me see if I can reproduce that behaviour on a SPARC 2.8 server (fortunately enough, I've Oracle 9 on that machine, too).

    I'll post the results.

    EDIT: Which versions of the following tools are installed on your system ?

    libtool,flex,make,bison and sed

    Am I right that you have gcc 3.1 ?

    Thomas

      I am really new to unix based systems and have no idea how to check the versions of the tools that you have mentioned. Could you please tell me how do I check those?

      As you mentioned, GCC is version 3.1

        Just execute those commands with the option --version or --help to get the version.

        Thomas

          I successfully managed to compile PHP with curl support on a SPARC Solaris 8 server.

          Execute the following command and post the output:

          uname -a

          Thomas

            uname -a

            SunOS billsrv 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-4

            About the versions of the tools, libtool, flex and bison all give me "command not found"... so I think they are not installed on the server.

            For make, both --version and --help are giving unknown option. For sed too, --version, --help, -v, -h(all different combinations) are giving illegal option.

              Ok,

              let's check how your system looks like. You need at least

              flex 2.5.4
              bison 1.28 (or 1.35 or 1.75)

              Additionally, I'd recommend to use gnu make.

              First check if one of the following directories exists (or both):

              /usr/sfw
              /opt/sfw

              Then check which files are in /usr/local/bin and/or /usr/sfw/bin and /opt/sfw/bin (especially gnu make, flex, bison and the other tools should be in one or more of the three directories).

              Execute

              which make
              which sed
              which gcc
              which bash

              to get the command directories.

              Additionally, execute the commands

              echo $PATH
              echo $LD_LIBRARY_PATH

              and post the results.

              You can download precompiled sun packages of all neded tools at www.sunfreeware.com if they are not installed. Alternatively, use the companion cd to install the freeware packages but check if the versions are sufficient.

              On the server I used to test stuff I installed the packages from sunfreeware.com.

              Thomas

                Thanks for the response.

                None of the directories mentioned (/opt/sfw, /usr/sfw) exist in my system. But yes, there is a directory /opt/soft. Howvere, that does not contain any bin directory.

                which make
                /usr/ccs/bin/make

                which sed
                /usr/bin/sed

                which gcc
                no gcc in /export/home/pin8/opt/portal/6.2/bin
                /export/home1/Rational/releases/purify.sol.2003a.06.13
                /opt/home/oracle/app/oracle/product/8.1.7/bin
                /usr/bin /bin /opt/bin /usr/ccs/bin
                /export/home/pin8/opt/portal/6.2/lib/perl5
                /etc /usr/openwin/bin
                /opt/home/oracle/app/oracle/product/8.1.7/precomp/public
                /usr/include /usr/xpg4/bin

                which bash
                /usr/bin/bash

                echo $PATH
                /export/home/pin8/opt/portal/6.2/bin:
                /export/home1/Rational/releases/purify.sol.2003a.06.13:
                /opt/home/oracle/app/oracle/product/8.1.7/bin:
                /usr/bin:/bin:/opt/bin:/usr/ccs/bin:
                /export/home/pin8/opt/portal/6.2/lib/perl5:
                /etc:
                /usr/openwin/bin:/opt/home/oracle/app/oracle/product/8.1.7/precomp/public:
                /usr/include:/usr/xpg4/bin

                echo $LD_LIBRARY_PATH
                /opt/home/oracle/app/oracle/product/8.1.7/lib

                  Which files does /usr/local/bin contain ?

                  Thomas

                    Do you want me to give a list of all the files there?

                    It contains binaries like emacs, vim, tar, ssh. The curl binary was also placed there. Of the tools you asked about, gcc and make are also there in that directory.

                    Another thing is that even without flex, bison etc... PHP setup was existing (but that was without the cURL support). After I added --with-curl in the configure command, I have got these problems.

                      Ok,

                      let's try it again:

                      change the PATH environment variable and add the /usr/local/bin path so that it comes firt.

                      add /usr/local/lib to the LD_LIBRARY_PATH environment variable.

                      Download the Solaris 8 flex and bison packages and install them (they'll be installed to /usr/local/...)

                      Then remove or rename the php source directory and extract the source archive again so you have a clean build directory.

                      Then execute configure and make again.

                      Try to use the configure switches without specifying the directories first to see if the configure script is able to find the correct versions of the libraries itself (which means that the environment variables are set up correctly).

                      The configure script should be able to find the oracle libraries itself if the oracle environment variables are set correctly.

                      If that doesn't work then add the directories to the configure switches.

                      Thomas

                        2 months later

                        Hi....
                        I had been given a new system which was a Redhat Linux box... It had all the tools like flex, bison etc...

                        There I could build PHP with cURL in the first go itself.

                        All your help is highly appreciated.

                          Write a Reply...