10 Replies Latest reply on Dec 12, 2013 1:08 PM by Lars Burgess

    Cant load RhoConnect server

    Ken Zhou

      I'm trying to load the server from the Application folder but I'm getting this error:

       

      F:\Work\g3server>rhoconnect start

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/mysql-2.9.1-x86-min

      gw32/lib/mysql.rb:6:in `require': cannot load such file -- mysql/mysql_api (Load

      Error)

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/mysql-

      2.9.1-x86-mingw32/lib/mysql.rb:6:in `rescue in <top (required)>'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/mysql-

      2.9.1-x86-mingw32/lib/mysql.rb:2:in `<top (required)>'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/bundle

      r-1.3.5/lib/bundler/runtime.rb:72:in `require'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/bundle

      r-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/bundle

      r-1.3.5/lib/bundler/runtime.rb:70:in `each'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/bundle

      r-1.3.5/lib/bundler/runtime.rb:70:in `block in require'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/bundle

      r-1.3.5/lib/bundler/runtime.rb:59:in `each'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/bundle

      r-1.3.5/lib/bundler/runtime.rb:59:in `require'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/bundle

      r-1.3.5/lib/bundler.rb:132:in `require'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhocon

      nect-4.0.0/commands/parser.rb:37:in `execute'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhocon

      nect-4.0.0/commands/parser.rb:180:in `<top (required)>'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhocon

      nect-4.0.0/bin/rhoconnect:19:in `require_relative'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhocon

      nect-4.0.0/bin/rhoconnect:19:in `<class:Execute>'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhocon

      nect-4.0.0/bin/rhoconnect:12:in `<top (required)>'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/bin/rhoconnect:23:in `load'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/bin/rhoconnect:23:in `<main>'

       

       

      F:\Work\g3server>

        • Re: Cant load RhoConnect server

          Are you using the mysql gem in your source adapters?  If so, remember to add it and any other 3rd party gems to your application's `Gemfile` followed by running:

           

          $ bundle install

           

          RhoConnect uses bundler to manage application dependencies.  Bundler: The best way to manage a Ruby application's gems

            • Re: Cant load RhoConnect server
              Ken Zhou

              this is what me gemfile looks like:

               

              source 'http://rubygems.org'

               

               

              gem 'rhoconnect', '4.0.0'

              gem 'dbi', '>= 0.4.5'

              gem 'mysql'

              gem 'dbd-mysql'

               

               

              gemfile_path = File.join(File.dirname(__FILE__), ".rcgemfile")

              begin

                eval(IO.read(gemfile_path))

              rescue Exception => e

                puts "ERROR: Couldn't read RhoConnect .rcgemfile"

                exit 1

              end

               

               

              # Add your application specific gems after this line ...

               

               

               

              when I run bundle install in my app directory:

               

              F:\Work\g3server>bundle install

              Using rake (10.0.4)

              Using rack (1.5.2)

              Using async-rack (0.5.1)

              Using connection_pool (1.0.0)

              Using daemons (1.1.9)

              Using deprecated (2.0.1)

              Using dbi (0.4.5)

              Using mysql (2.9.1)

              Using dbd-mysql (0.4.4)

              Using diff-lcs (1.1.3)

              Using eventmachine (1.0.3)

              Using extlib (0.9.16)

              Using highline (1.6.20)

              Using json (1.7.7)

              Using mime-types (2.0)

              Using mono_logger (1.1.0)

              Using multi_json (1.8.2)

              Using rack-fiber_pool (0.9.3)

              Using rack-protection (1.5.1)

              Using rack-test (0.6.2)

              Using redis (3.0.6)

              Using redis-namespace (1.4.1)

              Using tilt (1.4.1)

              Using sinatra (1.4.4)

              Using vegas (0.1.11)

              Using resque (1.25.1)

              Using rest-client (1.6.7)

              Using bundler (1.3.5)

              Using rubyzip (0.9.9)

              Using templater (1.0.0)

              Using thor (0.18.1)

              Using uuidtools (2.1.4)

              Using rhoconnect (4.0.0)

              Using rhomobile-debug (1.0.7)

              Using rspec-core (2.10.1)

              Using rspec-expectations (2.10.0)

              Using rspec-mocks (2.10.1)

              Using rspec (2.10.0)

              Using thin (1.6.1)

              Using win32-api (1.5.0)

              Using windows-api (0.4.2)

              Using windows-pr (1.2.2)

              Using win32-process (0.6.6)

              Your bundle is complete!

              Use `bundle show [gemname]` to see where a bundled gem is installed.

               

               

              F:\Work\g3server>

               

               

              I can start the server fine from the F:\Work ; is it the same? or should I be starting it in the project directory?

               

               

              thanks for the rapid response.