Skip to content

Instantly share code, notes, and snippets.

@sdhull
Created July 16, 2010 05:53
Show Gist options
  • Save sdhull/477991 to your computer and use it in GitHub Desktop.
Save sdhull/477991 to your computer and use it in GitHub Desktop.
  • Whether you have locked or not: not locked

  • What version of bundler you are using: 0.9.26

  • What version of Ruby you are using: ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-linux]

  • Whether you are using RVM, and if so what version: no, this is system ruby Your Gemfile source :gemcutter gem 'rails', '2.3.2' gem 'authlogic', '2.1.1' gem 'geokit', '1.4.1' gem 'rmagick', '2.9.0', :require => false gem 'system_timer' gem 'will_paginate', '2.3.11' gem 'thinking-sphinx', '1.3.14', :require => 'thinking_sphinx' gem 'vanity', '1.3.0', :git => 'git://github.com/sdhull/vanity.git' gem 'garb' gem 'chronic' gem 'memcache-client' gem 'fastercsv' gem 'memcache' gem 'libxml-ruby', '1.1.2', :require => 'libxml' gem 'roxml', '2.5.2' gem 'hpricot' gem 'mini_magick', "1.2.5", :require => false

    group :reports, :stage, :development, :test do
      gem 'ruby-debug'
    end
    
    group :qa, :stage, :production do
      gem 'activerecord-sybase-adapter', ">=1.0"
      # note, I tried this with "require => false", as well as with "require => 'active_record/connection_adapters/sybase_adapter'"
      # neither worked
    end
    
    group :development, :test do
      gem 'mysql', :require => false
    end
    
    group :development do
      gem 'factory_girl', '1.2.3'
    end
    
    group :test do
      gem "rspec", ">=1.2.9", :require => false
      gem "rspec-rails", ">=1.2.9", :require => false
      gem "factory_girl", '1.2.3', :require => false
      gem "rack-test", ">=0.5.2", :require => "rack/test"
      gem "ci_reporter", '1.6.2', :require => false
      gem "progressbar", '0.9.0', :require => false
    end
    

The command you ran to generate exception(s): script/console The exception backtrace(s): swallowed, but symptoms were that the Rails app was essentially uninitialized, db was not configured or connected to, and (most notably), the SybaseAdapter (in ActiveRecord) was not defined.

If you are using Rails 2.3, please also include:

I don't think my company allows me to post this stuff...

But suffice it to say that boot.rb has only been edited as outlined in the bundler docs, preinitializer.rb is empty, and environment.rb is horrendous (eg, a bunch of requires for stuff from lib/ and standardlib, as well as various hacks).

@davidx
Copy link

davidx commented Jul 16, 2010

dude, lets look at the sybase adapter together soon, it probly just needs the native libs packaged up in a gem, vs hand compiled and instructed to be placed in the site_ruby folder. ick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment