Uploaded image for project: 'CUBRID APIs'
  1. CUBRID APIs
  2. APIS-564

"error: Your OS not supported." when trying to install PHP driver on Mac OS X

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: PHP 9.1.0.0003
    • Fix Version/s: PHP 9.1.0 0004
    • Component/s: PHP Driver
    • Labels:
      None
    • Environment:

      Mac OS X 10.8.3 x64
      PHP driver 9.1.0.0003

      Description

      Since PHP API has included CCI binary into the PHP driver source, I can't install PHP driver on Mac OS X. Previously when there was dynamic linking, I could separately install CCI driver and then successfully install the PHP driver. Now, I can't. I suppose this error is returned from CCI library.

      Below is the build output.

      {code}
      $ sudo pecl install cubrid
      downloading CUBRID-9.1.0.0003.tgz ...
      Starting to download CUBRID-9.1.0.0003.tgz (2,278,076 bytes)
      .............................done: 2,278,076 bytes
      16 source files, building
      running: phpize
      Configuring for:
      PHP Api Version: 20090626
      Zend Module Api No: 20090626
      Zend Extension Api No: 220090626
      configure.in:3: warning: prefer named diversions
      configure.in:3: warning: prefer named diversions
      building in /private/tmp/pear/temp/pear-build-rootK5yzwo/CUBRID-9.1.0.0003
      running: /private/tmp/pear/temp/CUBRID/configure
      checking for grep that handles long lines and -e... /usr/bin/grep
      checking for egrep... /usr/bin/grep -E
      checking for a sed that does not truncate output... /usr/bin/sed
      checking for cc... cc
      checking whether the C compiler works... yes
      checking for C compiler default output file name... a.out
      checking for suffix of executables...
      checking whether we are cross compiling... no
      checking for suffix of object files... o
      checking whether we are using the GNU C compiler... yes
      checking whether cc accepts -g... yes
      checking for cc option to accept ISO C89... none needed
      checking how to run the C preprocessor... cc -E
      checking for icc... no
      checking for suncc... no
      checking whether cc understands -c and -o together... yes
      checking for system library directory... lib
      checking if compiler supports -R... no
      checking if compiler supports -Wl,-rpath,... yes
      checking build system type... i386-apple-darwin12.4.0
      checking host system type... i386-apple-darwin12.4.0
      checking target system type... i386-apple-darwin12.4.0
      checking for PHP prefix... /usr
      checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
      checking for PHP extension directory... /usr/lib/php/extensions/no-debug-non-zts-20090626
      checking for PHP installed headers prefix... /usr/include/php
      checking if debug is enabled... no
      checking if zts is enabled... no
      checking for re2c... no
      configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
      checking for gawk... no
      checking for nawk... no
      checking for awk... awk
      checking if awk is broken... no
      checking for CUBRID support... yes, shared
      configure: error: Your OS not supported. Exit.
      ERROR: `/private/tmp/pear/temp/CUBRID/configure' failed{code}

      Please fix this.

      1. pdo_conf.txt
        48 kB
        谢韦华[Bert]
      2. pdo.make
        6 kB
        谢韦华[Bert]
      3. php_conf.txt
        48 kB
        谢韦华[Bert]
      4. php.make
        3 kB
        谢韦华[Bert]

        Issue Links

          Activity

          Hide
          cn15800 谢韦华[Bert] added a comment -

          There is Only a different in configure.ac,

          mac:

          {code}
          case $SYSTEM_TYPE in
          linux) SYS_DEFS="-DGCC -DLINUX -D_GNU_SOURCE -DI386"
          SYS_LIBS="" ;;
          *) SYS_DEFS="-DMAC_OS"
          SYS_LIBS="" ;;
          esac{code}

          linux:

          {code}
          case $SYSTEM_TYPE in
          linux) SYS_DEFS="-DGCC -DLINUX -D_GNU_SOURCE -DI386"
          SYS_LIBS="" ;;
          *) SYS_DEFS=""
          SYS_LIBS="" ;;
          esac{code}
          Show
          cn15800 谢韦华[Bert] added a comment - There is Only a different in configure.ac, mac: {code} case $SYSTEM_TYPE in linux ) SYS_DEFS="-DGCC -DLINUX -D_GNU_SOURCE -DI386" SYS_LIBS="" ;; *) SYS_DEFS="-DMAC_OS" SYS_LIBS="" ;; esac{code} linux: {code} case $SYSTEM_TYPE in linux ) SYS_DEFS="-DGCC -DLINUX -D_GNU_SOURCE -DI386" SYS_LIBS="" ;; *) SYS_DEFS="" SYS_LIBS="" ;; esac{code}
          Hide
          cn15800 谢韦华[Bert] added a comment -

          But there are many different parts in other configure file, you can find them in attach file

          Show
          cn15800 谢韦华[Bert] added a comment - But there are many different parts in other configure file, you can find them in attach file
          Hide
          cn15800 谢韦华[Bert] added a comment -

          I have compile cci successful on mac

          configure
          case $SYSTEM_TYPE in
          linux) SYS_DEFS="-DGCC -DLINUX -D_GNU_SOURCE -DI386"
          SYS_LIBS="" ;;
          *) SYS_DEFS="-DMAC_OS"
          SYS_LIBS="" ;;
          esac

          Next, we need to integrate configure file of linux and mac

          Show
          cn15800 谢韦华[Bert] added a comment - I have compile cci successful on mac configure case $SYSTEM_TYPE in linux ) SYS_DEFS="-DGCC -DLINUX -D_GNU_SOURCE -DI386" SYS_LIBS="" ;; *) SYS_DEFS="-DMAC_OS" SYS_LIBS="" ;; esac Next, we need to integrate configure file of linux and mac
          Hide
          kadishmal Esen Sagynov added a comment -

          Great job! Keep me posted on new changes.

          Show
          kadishmal Esen Sagynov added a comment - Great job! Keep me posted on new changes.
          Hide
          cn15800 谢韦华[Bert] added a comment -

          compile log

          Show
          cn15800 谢韦华[Bert] added a comment - compile log

            People

            • Assignee:
              cn15800 谢韦华[Bert]
              Reporter:
              kadishmal Esen Sagynov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: