php 4.3.10 and macosx

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Terry Richards

    #1

    php 4.3.10 and macosx

    i have macosx 10.2.8. i am trying to install php-4.3.10. i am getting:

    make
    gcc -Iext/standard/ -I/Users/terryr/tmp/php-4.3.10/ext/standard/
    -DPHP_ATOM_INC -I/Users/terryr/tmp/php-4.3.10/include
    -I/Users/terryr/tmp/php-4.3.10/main -I/Users/terryr/tmp/php-4.3.10
    -I/Users/terryr/tmp/php-4.3.10/Zend
    -I/Users/terryr/tmp/php-4.3.10/ext/xml/expat -no-cpp-precomp
    -no-cpp-precomp -I/Users/terryr/tmp/php-4.3.10/TSRM -g -O2 -c
    /Users/terryr/tmp/php-4.3.10/ext/standard/info.c -o ext/standard/info.o
    && echo > ext/standard/info.lo
    gcc -IZend/ -I/Users/terryr/tmp/php-4.3.10/Zend/ -DPHP_ATOM_INC
    -I/Users/terryr/tmp/php-4.3.10/include
    -I/Users/terryr/tmp/php-4.3.10/main -I/Users/terryr/tmp/php-4.3.10
    -I/Users/terryr/tmp/php-4.3.10/Zend
    -I/Users/terryr/tmp/php-4.3.10/ext/xml/expat -no-cpp-precomp
    -no-cpp-precomp -I/Users/terryr/tmp/php-4.3.10/TSRM -g -O2 -c
    /Users/terryr/tmp/php-4.3.10/Zend/zend_strtod.c -o Zend/zend_strtod.o
    && echo > Zend/zend_strtod.lo
    /Users/terryr/tmp/php-4.3.10/Zend/zend_strtod.c:2 39: parse error before
    "uint32_t"

    :-)^2
  • ppalmieri@gmail.com

    #2
    Re: php 4.3.10 and macosx

    Not sure.. But here is a great package i installed from on my X
    machine..



    Comment

    • Terry Richards

      #3
      Re: php 4.3.10 and macosx

      ppalmieri@gmail .com wrote:[color=blue]
      > Not sure.. But here is a great package i installed from on my X
      > machine..
      >
      > http://www.entropy.ch/software/macosx/php/
      >[/color]
      i had that...i am looking to upgrade to php4.3.10 on a macosx 10.2.8
      installation. i am waiting for macosx 10.4 and am going to skip 10.3 for
      financial reasons. so far all i have done is ruin what i had working.
      where can i find folks who know more about macosx 10.2.8 and php-4.3.10?

      :-)^2

      Comment

      • Tony Reed

        #4
        Re: php 4.3.10 and macosx

        On Fri, 07 Jan 2005 13:26:55 -0500
        Terry Richards <sn00per1@bells outh.net> wrote:

        :ppalmieri@gmai l.com wrote:
        :> Not sure.. But here is a great package i installed from on my X
        :> machine.. http://www.entropy.ch/software/macosx/php/
        :>
        :i had that...i am looking to upgrade to php4.3.10 on a macosx 10.2.8
        :installation. i am waiting for macosx 10.4 and am going to skip 10.3
        :for financial reasons. so far all i have done is ruin what i had
        :working.
        :where can i find folks who know more about macosx 10.2.8 and php-4.3.10?

        What did you tell ./configure?

        I have 4.1 working with Jaguar, I'll get a copy of 4.3 this weekend
        and see what I can see. Can't do it sooner, sorry, the wife is busy
        with the Mac.

        --
        Tony Reed
        <trljc@altern.o rg>

        Comment

        • Terry Richards

          #5
          Re: php 4.3.10 and macosx

          Tony Reed wrote:[color=blue]
          > What did you tell ./configure?[/color]
          from INSTALL in php-4.3.10:

          ../configure --prefix=/usr \
          --sysconfdir=/etc \
          --localstatedir=/var \
          --mandir=/usr/share/man \
          --with-xml \
          --with-mysql \
          --with-apache=/Users/terryr/Desktop/apachebuild/apache_1.3.33/

          :-)^2

          Comment

          • Terry Richards

            #6
            Re: php 4.3.10 and macosx

            Terry Richards wrote:[color=blue]
            > Tony Reed wrote:
            >[color=green]
            >> What did you tell ./configure?[/color]
            >
            > from INSTALL in php-4.3.10:
            >
            > ./configure --prefix=/usr \
            > --sysconfdir=/etc \
            > --localstatedir=/var \
            > --mandir=/usr/share/man \
            > --with-xml \
            > --with-mysql \
            > --with-apache=/Users/terryr/Desktop/apachebuild/apache_1.3.33/
            >
            > :-)^2[/color]
            trying the above with php-5.0.3 i get:
            checking libxml2 install dir... no
            configure: error: xml2-config not found. Please check your libxml2
            installation.

            how do i direct to /sw/bin/xml2-config?

            :-)^2

            Comment

            • kicken

              #7
              Re: php 4.3.10 and macosx

              Terry Richards wrote:[color=blue]
              > Terry Richards wrote:
              >[color=green]
              >> Tony Reed wrote:
              >>[color=darkred]
              >>> What did you tell ./configure?[/color]
              >>
              >>
              >> from INSTALL in php-4.3.10:
              >>
              >> ./configure --prefix=/usr \
              >> --sysconfdir=/etc \
              >> --localstatedir=/var \
              >> --mandir=/usr/share/man \
              >> --with-xml \
              >> --with-mysql \
              >> --with-apache=/Users/terryr/Desktop/apachebuild/apache_1.3.33/
              >>
              >> :-)^2[/color]
              >
              > trying the above with php-5.0.3 i get:
              > checking libxml2 install dir... no
              > configure: error: xml2-config not found. Please check your libxml2
              > installation.
              >
              > how do i direct to /sw/bin/xml2-config?
              >
              > :-)^2[/color]

              Not that I know a thing about mac's, but maybe try --with-xml=/sw ? Are
              the include files for xml2 in /sw/include and the library files in /sw/lib ?

              Comment

              • Terry Richards

                #8
                Re: php 4.3.10 and macosx

                [color=blue][color=green][color=darkred]
                >>>
                >>>> What did you tell ./configure?
                >>>
                >>> from INSTALL in php-4.3.10:
                >>>
                >>> ./configure --prefix=/usr \
                >>> --sysconfdir=/etc \
                >>> --localstatedir=/var \
                >>> --mandir=/usr/share/man \
                >>> --with-xml \
                >>> --with-mysql \
                >>> --with-apache=/Users/terryr/Desktop/apachebuild/apache_1.3.33/[/color]
                >>
                >>
                >> trying the above with php-5.0.3 i get:
                >> checking libxml2 install dir... no
                >> configure: error: xml2-config not found. Please check your libxml2
                >> installation.
                >>
                >> how do i direct to /sw/bin/xml2-config?
                >>
                >> :-)^2[/color]
                >
                >
                > Not that I know a thing about mac's, but maybe try --with-xml=/sw ? Are
                > the include files for xml2 in /sw/include and the library files in
                > /sw/lib ?[/color]


                yes they are./sw/include/libxml2/libxml/ and /sw/lib/libxml.a; I tried
                --with-xml=/sw/bin/xml2-config, which is where it is - no go.

                :-)^2

                Comment

                • kicken

                  #9
                  Re: php 4.3.10 and macosx

                  Terry Richards wrote:[color=blue]
                  >
                  > yes they are./sw/include/libxml2/libxml/ and /sw/lib/libxml.a; I tried
                  > --with-xml=/sw/bin/xml2-config, which is where it is - no go.
                  >
                  > :-)^2[/color]

                  Just --with-xml=/sw
                  You only give it the prefix of the path, which is just /sw. The
                  /bin/xml2-config is implied by configure (as are the /include/ and /lib/
                  when it compiles.)

                  So basically with that path you gave, you're telling to look in
                  /sw/bin/xml2-config/bin/xml2-config, which obviosuly doesn't exist.

                  Comment

                  • Michael Guitton

                    #10
                    Re: php 4.3.10 and macosx

                    In article <eAhDd.41451$Gj 2.33387@bignews 1.bellsouth.net >,
                    Terry Richards <sn00per1@bells outh.net> wrote:
                    [color=blue]
                    > i have macosx 10.2.8. i am trying to install php-4.3.10. i am getting:
                    >
                    > make
                    > gcc -IZend/ -I/Users/terryr/tmp/php-4.3.10/Zend/ -DPHP_ATOM_INC
                    > -I/Users/terryr/tmp/php-4.3.10/include
                    > -I/Users/terryr/tmp/php-4.3.10/main -I/Users/terryr/tmp/php-4.3.10
                    > -I/Users/terryr/tmp/php-4.3.10/Zend
                    > -I/Users/terryr/tmp/php-4.3.10/ext/xml/expat -no-cpp-precomp
                    > -no-cpp-precomp -I/Users/terryr/tmp/php-4.3.10/TSRM -g -O2 -c
                    > /Users/terryr/tmp/php-4.3.10/Zend/zend_strtod.c -o Zend/zend_strtod.o
                    > && echo > Zend/zend_strtod.lo
                    > :239: parse error before
                    > "uint32_t"
                    >[/color]

                    Terry, I had a similar problem today and found a quick fix.

                    Please open "/Users/terryr/tmp/php-4.3.10/Zend/zend_strtod.c" with your
                    favorite editor.

                    Make the following changes to line 131:

                    #if defined(__sparc __) || defined(__ppc__ )

                    should read

                    #if defined(__sparc __)

                    VoilĂ !

                    Comment

                    • Michael Guitton

                      #11
                      Re: php 4.3.10 and macosx

                      In article
                      <noreply-5E5897.17402011 012005@news-reader.wanadoop ortails.com>,
                      Michael Guitton <noreply@usenet .net> wrote:
                      [color=blue]
                      > In article <eAhDd.41451$Gj 2.33387@bignews 1.bellsouth.net >,
                      > Terry Richards <sn00per1@bells outh.net> wrote:
                      >[color=green]
                      > > i have macosx 10.2.8. i am trying to install php-4.3.10. i am getting:
                      > >
                      > > make
                      > > gcc -IZend/ -I/Users/terryr/tmp/php-4.3.10/Zend/ -DPHP_ATOM_INC
                      > > -I/Users/terryr/tmp/php-4.3.10/include
                      > > -I/Users/terryr/tmp/php-4.3.10/main -I/Users/terryr/tmp/php-4.3.10
                      > > -I/Users/terryr/tmp/php-4.3.10/Zend
                      > > -I/Users/terryr/tmp/php-4.3.10/ext/xml/expat -no-cpp-precomp
                      > > -no-cpp-precomp -I/Users/terryr/tmp/php-4.3.10/TSRM -g -O2 -c
                      > > /Users/terryr/tmp/php-4.3.10/Zend/zend_strtod.c -o Zend/zend_strtod.o
                      > > && echo > Zend/zend_strtod.lo
                      > > :239: parse error before
                      > > "uint32_t"
                      > >[/color]
                      >
                      > Terry, I had a similar problem today and found a quick fix.
                      >
                      > Please open "/Users/terryr/tmp/php-4.3.10/Zend/zend_strtod.c" with your
                      > favorite editor.
                      >
                      > Make the following changes to line 131:
                      >
                      > #if defined(__sparc __) || defined(__ppc__ )
                      >
                      > should read
                      >
                      > #if defined(__sparc __)
                      >
                      > VoilĂ ![/color]

                      There is another work-around:


                      Comment

                      • Terry Richards

                        #12
                        Re: php 4.3.10 and macosx

                        kicken wrote:[color=blue]
                        > Terry Richards wrote:
                        >[color=green]
                        >>
                        > > yes they are./sw/include/libxml2/libxml/ and /sw/lib/libxml.a; I tried[/color]
                        >[color=green]
                        >> --with-xml=/sw/bin/xml2-config, which is where it is - no go.
                        >>
                        >> :-)^2[/color]
                        >
                        >
                        > Just --with-xml=/sw
                        > You only give it the prefix of the path, which is just /sw. The
                        > /bin/xml2-config is implied by configure (as are the /include/ and /lib/
                        > when it compiles.)
                        >
                        > So basically with that path you gave, you're telling to look in
                        > /sw/bin/xml2-config/bin/xml2-config, which obviosuly doesn't exist.[/color]

                        i used --with-libxml-dir=/sw and it finished configuring
                        sure helps to read configure --help<crossed figingers>

                        :-)^2

                        Comment

                        • jimt

                          #13
                          Re: php 4.3.10 and macosx

                          when trying to use the fink hierarchy use the fink commander installer
                          for files if they exist on the fink library.

                          /sw is a fink directory.
                          jimt


                          In article <YoDDd.26801$6i .12316@bignews6 .bellsouth.net> , Terry
                          Richards <sn00per1@bells outh.net> wrote:
                          [color=blue]
                          > Terry Richards wrote:[color=green]
                          > > Tony Reed wrote:
                          > >[color=darkred]
                          > >> What did you tell ./configure?[/color]
                          > >
                          > > from INSTALL in php-4.3.10:
                          > >
                          > > ./configure --prefix=/usr \
                          > > --sysconfdir=/etc \
                          > > --localstatedir=/var \
                          > > --mandir=/usr/share/man \
                          > > --with-xml \
                          > > --with-mysql \
                          > > --with-apache=/Users/terryr/Desktop/apachebuild/apache_1.3.33/
                          > >
                          > > :-)^2[/color]
                          > trying the above with php-5.0.3 i get:
                          > checking libxml2 install dir... no
                          > configure: error: xml2-config not found. Please check your libxml2
                          > installation.
                          >
                          > how do i direct to /sw/bin/xml2-config?
                          >
                          > :-)^2[/color]

                          Comment

                          Working...