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

[Ruby]Cannot install driver by using compile gem file from the source

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Ruby 8.4.4.0002
    • Fix Version/s: Ruby 8.4.4.0002
    • Component/s: Ruby Driver
    • Labels:
    • Environment:
      • Test OS: Linux 64
      • CUBRID: 8.4.4.0227
      • Ruby: 1.8.7
      • Driver: cubrid-ruby 8.4.4.0002 (2013-10-17)

      Description

      Scenario reproduce:

      1) download ruby driver 8.4.4.0002 from http://svn.cubrid.org/cubridapis/ruby/branches/RB-8.4.4/

      2) use sh build to compile source code to a gem file cubrid-8.4.4.gem

      3) install ruby driver via "gem install cubrid-8.4.4.gem"

      Output (error occurs):

      xxxx
      creating libcascci.la
      (cd .libs && rm -f libcascci.la && ln -s ../libcascci.la libcascci.la)
      make[2]: Leaving directory `/home/ruby/ruby187/lib/ruby/gems/1.8/gems/cubrid-8.4.4/ext/cci-src/cci'
      make[2]: Entering directory `/home/ruby/ruby187/lib/ruby/gems/1.8/gems/cubrid-8.4.4/ext/cci-src'
      make[2]: Nothing to be done for `all-am'.
      make[2]: Leaving directory `/home/ruby/ruby187/lib/ruby/gems/1.8/gems/cubrid-8.4.4/ext/cci-src'
      make[1]: Leaving directory `/home/ruby/ruby187/lib/ruby/gems/1.8/gems/cubrid-8.4.4/ext/cci-src'
      checking for main() in -lsupc++... yes
      checking for main() in -lstdc++... yes
      creating Makefile
      
      make
      gcc -I. -I. -I/home/ruby/ruby187/lib/ruby/1.8/x86_64-linux -I. -I./cci-src/src/base -I./cci-src/src/cci -I./cci-src/src/broker  -fPIC -g -O2   -c error.c
      In file included from error.c:31:
      cubrid.h:188: error: ‘CCI_U_TYPE_ENUM’ undeclared here (not in a function)
      make: *** [error.o] Error 1
      
      
      Gem files will remain installed in /home/ruby/ruby187/lib/ruby/gems/1.8/gems/cubrid-8.4.4 for inspection.
      Results logged to /home/ruby/ruby187/lib/ruby/gems/1.8/gems/cubrid-8.4.4/ext/gem_make.out
      

        Activity

        Hide
        ryin005 Ray Yin added a comment -
        • Test OS: Linux 64
        • CUBRID: 8.4.4.0227
        • Ruby: 1.8.7, 1.9.3
        • Driver: cubrid-ruby 8.4.4.0002 (2013-10-17)

        Test Result: Pass

        Close the issue

        Show
        ryin005 Ray Yin added a comment - Test OS: Linux 64 CUBRID: 8.4.4.0227 Ruby: 1.8.7, 1.9.3 Driver: cubrid-ruby 8.4.4.0002 (2013-10-17) Test Result: Pass Close the issue

          People

          • Assignee:
            cn15800 谢韦华[Bert]
            Reporter:
            ryin005 Ray Yin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: