Cannot load such file -- do_sqlite3/2.0/do_sqlite3 on windows - ruby

As far as I can tell, I've installed everything correctly, however I still can't run my program. To be clear, this was written on linux, and I'm now trying to run it on a windows machine.
I have the following gem list:
*** LOCAL GEMS ***
addressable (2.2.7, 2.2.6)
akami (1.2.2)
backports (3.6.0)
bcrypt (3.1.7 x64-mingw32)
bcrypt-ruby (3.1.5 x64-mingw32)
bigdecimal (1.2.0)
builder (3.2.2, 3.1.4)
bundle (0.0.1)
bundler (1.6.2)
daemons (1.1.9)
data_mapper (1.2.0)
data_objects (0.10.14)
dm-aggregates (1.2.0)
dm-constraints (1.2.0)
dm-core (1.2.0)
dm-do-adapter (1.2.0)
dm-migrations (1.2.0)
dm-serializer (1.2.2)
dm-sqlite-adapter (1.2.0)
dm-timestamps (1.2.0)
dm-transactions (1.2.0)
dm-types (1.2.2)
dm-validations (1.2.0)
do_sqlite3 (0.10.14)
encryptor (1.3.0)
fastercsv (1.5.5)
gyoku (1.1.1, 1.1.0)
haml (4.0.5)
httpi (2.1.0)
io-console (0.4.2)
json (1.8.1, 1.7.7)
json_pure (1.8.1)
mail (2.5.4)
mime-types (1.25.1)
mini_portile (0.5.3, 0.5.2)
minitest (4.3.2)
multi_json (1.9.2)
nokogiri (1.6.2.rc2 x64-mingw32)
nori (2.4.0)
polyglot (0.3.3)
pony (1.6.2)
psych (2.0.0)
puma (2.8.2)
rack (1.5.2)
rack-protection (1.5.2)
rack-test (0.6.2)
rake (0.9.6)
rdoc (4.0.0)
rubyntlm (0.3.4)
savon (2.5.0)
sinatra (1.4.4)
sinatra-contrib (1.4.2)
sinatra-static-assets (1.0.3)
sqlite3 (1.3.9 x64-mingw32)
stringex (1.5.1)
test-unit (2.0.0.0)
tilt (1.4.1)
treetop (1.4.15)
uuidtools (2.1.4)
wasabi (3.3.0)
sqlite3 was compiled from source, and installed using gem install sqlite3 -- --with-sqlite3-include=c:/sources/sqlite3 --with-sqlite3-lib=c:/sources/sqlite3/.libs to success.
The required gems in the main ruby file are:
require 'sinatra'
require 'sinatra/static_assets'
require 'sinatra/cookies'
require 'haml'
require 'savon'
require 'encryptor'
require 'pony'
require 'open-uri'
require 'json'
require 'data_mapper'
I should note running each of those requires inside irb all return true with no errors. When running ruby main.rb, I'm met with:
c:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require': cannot load such file -- do_sqlite3/2.0/do_sqlite3 (LoadError)
from c:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require'
from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/backports-3.6.0/lib/backports/tools.rb:343:in `require_with_backports'
from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/do_sqlite3-0.10.14/lib/do_sqlite3.rb:32:in `rescue in <top (required)>'
from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/do_sqlite3-0.10.14/lib/do_sqlite3.rb:27:in `<top (required)>'
from c:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require'
from c:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
from c:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'
from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/backports-3.6.0/lib/backports/tools.rb:343:in `require_with_backports'
from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/dm-sqlite-adapter-1.2.0/lib/dm-sqlite-adapter/adapter.rb:1:in `<top (required)>'
from c:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
from c:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/backports-3.6.0/lib/backports/tools.rb:343:in `require_with_backports'
from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/dm-sqlite-adapter-1.2.0/lib/dm-sqlite-adapter.rb:1:in `<top (required)>'
from c:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require'
from c:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
from c:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'
from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/backports-3.6.0/lib/backports/tools.rb:343:in `require_with_backports'
from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/dm-core-1.2.0/lib/dm-core/adapters.rb:163:in `load_adapter'
from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/dm-core-1.2.0/lib/dm-core/adapters.rb:133:in `adapter_class'
from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/dm-core-1.2.0/lib/dm-core/adapters.rb:13:in `new'
from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/dm-core-1.2.0/lib/dm-core.rb:230:in `setup'
from rxsite.rb:14:in `<main>'
Usually I would go through the steps I've tried so far to solve this, but I'm don't actually know where to start with this. I can only assume it's an issue with the way I installed sqlite3

Fixed this by removing x64 ruby, and installing x86 ruby.
Seems like a lot of problems stem from using the 64bit version.

Related

Issues with Actionpack gem

I'm trying to startup my sinatra application using shotgun but am having a bit of trouble. My app would run locally when I last checked 3 weeks ago and is currently still working on Heroku however I'm currently unable to run the program locally. When I run "ruby index.rb" I receive the following error:
/Users/xxx/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:118:in `require': unable to find a version of 'actionpack' to activate (Gem::LoadError)
from /Users/xxx/.rvm/gems/ruby-2.0.0-p451/gems/muni-0.0.8/lib/muni/prediction.rb:1:in `<top (required)>'
from /Users/xxx/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
from /Users/xxx/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
from /Users/xxx/.rvm/gems/ruby-2.0.0-p451/gems/muni-0.0.8/lib/muni/stop.rb:2:in `<top (required)>'
from /Users/xxx/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
from /Users/xxx/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
from /Users/xxx/.rvm/gems/ruby-2.0.0-p451/gems/muni-0.0.8/lib/muni/route.rb:4:in `<top (required)>'
from /Users/xxx/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
from /Users/xxx/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
from /Users/xxx/.rvm/gems/ruby-2.0.0-p451/gems/muni-0.0.8/lib/muni.rb:2:in `<top (required)>'
from /Users/xxx/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require'
from /Users/xxx/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
from /Users/xxx/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'
from index.rb:3:in `<main>'
When I shotgun the application I receive:
`Boot Error
Something went wrong while loading config.ru
RuntimeError: missing run or map statement
I have never seen either of these issues before nor has googling or searching stack overflow been much help. Here is what my gemfile looks like:
gem 'dotenv-rails', :groups => [:development, :test]
source "http://rubygems.org"
gem "sinatra"
gem "muni"
gem "shotgun"
gem "thin"
gem "actionpack"
and the corresponding gemfile.lock:
GEM
remote: http://rubygems.org/
specs:
actionpack (4.1.1)
actionview (= 4.1.1)
activesupport (= 4.1.1)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
actionview (4.1.1)
activesupport (= 4.1.1)
builder (~> 3.1)
erubis (~> 2.7.0)
activesupport (4.1.1)
i18n (~> 0.6, >= 0.6.9)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.1)
tzinfo (~> 1.1)
amatch (0.3.0)
tins (~> 1.0)
builder (3.2.2)
daemons (1.1.9)
dotenv (0.11.1)
dotenv-deployment (~> 0.0.2)
dotenv-deployment (0.0.2)
dotenv-rails (0.11.1)
dotenv (= 0.11.1)
erubis (2.7.0)
eventmachine (1.0.3)
i18n (0.6.9)
json (1.8.1)
minitest (5.3.5)
muni (0.0.8)
actionpack
amatch
thor
xml-simple
rack (1.5.2)
rack-protection (1.5.3)
rack
rack-test (0.6.2)
rack (>= 1.0)
shotgun (0.9)
rack (>= 1.0)
sinatra (1.4.5)
rack (~> 1.4)
rack-protection (~> 1.4)
tilt (~> 1.3, >= 1.3.4)
thin (1.6.2)
daemons (>= 1.0.9)
eventmachine (>= 1.0.0)
rack (>= 1.0.0)
thor (0.19.1)
thread_safe (0.3.4)
tilt (1.4.1)
tins (1.3.0)
tzinfo (1.2.1)
thread_safe (~> 0.1)
xml-simple (1.1.3)
PLATFORMS
ruby
DEPENDENCIES
actionpack
dotenv-rails
muni
shotgun
sinatra
thin
Is this gem not currently working?
Thanks for all your help.

Debugging cucumber in Ruby error

I was able to debug my code with no issues until today. I don't know what I changed that could have effected this but now my
require "ruby-debug"
in my env.rb is causing the following when i try to run a feature...
cannot load such file -- irb/init (LoadError)
/usr/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
/usr/lib/ruby/1.9.1/irb.rb:13:in `<top (required)>'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
/usr/lib/ruby/gems/1.9.1/gems/ruby-debug19-0.11.6/cli/ruby-debug/commands/irb.rb:1:in `<top (required)>'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
/usr/lib/ruby/gems/1.9.1/gems/ruby-debug19-0.11.6/cli/ruby-debug/command.rb:51:in `block in load_commands'
/usr/lib/ruby/gems/1.9.1/gems/ruby-debug19-0.11.6/cli/ruby-debug/command.rb:50:in `each'
/usr/lib/ruby/gems/1.9.1/gems/ruby-debug19-0.11.6/cli/ruby-debug/command.rb:50:in `load_commands'
/usr/lib/ruby/gems/1.9.1/gems/ruby-debug19-0.11.6/cli/ruby-debug/command.rb:210:in `<module:Debugger>'
/usr/lib/ruby/gems/1.9.1/gems/ruby-debug19-0.11.6/cli/ruby-debug/command.rb:5:in `<top (required)>'
/usr/lib/ruby/gems/1.9.1/gems/ruby-debug19-0.11.6/cli/ruby-debug/processor.rb:2:in `require_relative'
/usr/lib/ruby/gems/1.9.1/gems/ruby-debug19-0.11.6/cli/ruby-debug/processor.rb:2:in `<top (required)>'
/usr/lib/ruby/gems/1.9.1/gems/ruby-debug19-0.11.6/cli/ruby-debug.rb:6:in `require_relative'
/usr/lib/ruby/gems/1.9.1/gems/ruby-debug19-0.11.6/cli/ruby-debug.rb:6:in `<top (required)>'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:110:in `require'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:110:in `rescue in require'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:35:in `require'
/cygdrive/c/zap2it.com_acceptance_tests/features/support/env.rb:10:in `<top (required)>'
/usr/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/rb_support/rb_language.rb:137:in `load'
/usr/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/rb_support/rb_language.rb:137:in `load_code_file'
/usr/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/runtime/support_code.rb:180:in `load_file'
/usr/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/runtime/support_code.rb:83:in `block in load_files!'
/usr/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/runtime/support_code.rb:82:in `each'
/usr/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/runtime/support_code.rb:82:in `load_files!'
/usr/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/runtime.rb:182:in `load_step_definitions'
/usr/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/runtime.rb:41:in `run!'
/usr/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/cli/main.rb:43:in `execute!'
/usr/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/cli/main.rb:20:in `execute'
/usr/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/bin/cucumber:14:in `<top (required)>'
/usr/bin/cucumber:23:in `load'
/usr/bin/cucumber:23:in `<main>'
If I remove it everything runs fine but i still do not have debugging capabilities.
Any ideas on what could be causing this?
So weeks later and I'm still having this issue, I've tried uninstall-reinstall all my gems and tried ruby-debug19, ruby-debug-base19, and debugger. I've tried requiring 'debugger' or 'ruby-debug' in my env file but still same error. Could it be i'm missing another needed library?
Here is the GemFile.lock:
GEM
remote: https://rubygems.org/
specs:
archive-tar-minitar (0.5.2)
builder (3.2.0)
capybara (2.1.0)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
childprocess (0.3.9)
ffi (~> 1.0, >= 1.0.11)
columnize (0.3.6)
commonwatir (4.0.0)
cucumber (1.2.3)
builder (>= 2.1.2)
diff-lcs (>= 1.1.3)
gherkin (~> 2.11.6)
multi_json (~> 1.3)
diff-lcs (1.2.1)
ffi (1.5.0)
gherkin (2.11.6)
json (>= 1.7.6)
httpclient (2.3.2)
json (1.7.7)
linecache19 (0.5.12)
ruby_core_source (>= 0.1.4)
mime-types (1.23)
multi_json (1.7.1)
nokogiri (1.5.9)
rack (1.5.2)
rack-test (0.6.2)
rack (>= 1.0)
rake (10.0.3)
rspec (2.13.0)
rspec-core (~> 2.13.0)
rspec-expectations (~> 2.13.0)
rspec-mocks (~> 2.13.0)
rspec-core (2.13.1)
rspec-expectations (2.13.0)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.13.0)
ruby-debug-base19 (0.11.25)
columnize (>= 0.3.1)
linecache19 (>= 0.5.11)
ruby_core_source (>= 0.1.4)
ruby-debug19 (0.11.6)
columnize (>= 0.3.1)
linecache19 (>= 0.5.11)
ruby-debug-base19 (>= 0.11.19)
ruby_core_source (0.1.5)
archive-tar-minitar (>= 0.5.2)
rubyzip (0.9.9)
selenium-webdriver (2.31.0)
childprocess (>= 0.2.5)
multi_json (~> 1.0)
rubyzip
websocket (~> 1.0.4)
watir (4.0.2)
commonwatir (~> 4)
watir-webdriver
watir-webdriver (0.6.2)
selenium-webdriver (>= 2.18.0)
websocket (1.0.7)
xpath (2.0.0)
nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
capybara
cucumber
httpclient
nokogiri
rake
rspec
ruby-debug19
selenium-webdriver
watir
watir-webdriver
And the GemFile:
source 'https://rubygems.org'
gem 'rake'
gem 'nokogiri'
gem 'httpclient'
group :test do
gem 'rspec'
gem 'cucumber'
gem 'watir'
gem 'watir-webdriver'
gem 'selenium-webdriver'
gem 'capybara'
end
Have you updated rails or ruby lately?
I do not remember which version update that causes problems but I think the error message looks like some I got after an update. After which the ruby-debug is no longer supported.
After some digging I found the following gems as substitution:
gem 'ruby-debug-base19x'
gem 'ruby-debug19'
These are however outdated, so maybe look into the debugger gem
The solution for this problem is to remove and install as here or
sudo apt-get install libreadline-dev
rvm remove 1.9.3
rvm install 1.9.3
Then add to your Gemfile:
gem 'rb-readline
as here

linecache error when running rails server

I am getting the following error when running 'rails server' command. Here is the error:
maruf#phoenix:/media/resource/RoR/project$ rails server
/usr/local/rvm/gems/ruby-1.9.2-p320#project/bundler/gems/linecache19-0.5.13-c0804efc995a/lib/tracelines19.rb:12:in `require': no such file to load -- /usr/local/rvm/gems/ruby-1.9.2-p320#project/bundler/gems/linecache19-0.5.13-c0804efc995a/lib/../lib/trace_nums19 (LoadError)
from /usr/local/rvm/gems/ruby-1.9.2-p320#project/bundler/gems/linecache19-0.5.13-c0804efc995a/lib/tracelines19.rb:12:in `rescue in <module:TraceLineNumbers>'
from /usr/local/rvm/gems/ruby-1.9.2-p320#project/bundler/gems/linecache19-0.5.13-c0804efc995a/lib/tracelines19.rb:8:in `<module:TraceLineNumbers>'
from /usr/local/rvm/gems/ruby-1.9.2-p320#project/bundler/gems/linecache19-0.5.13-c0804efc995a/lib/tracelines19.rb:6:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.2-p320#project/bundler/gems/linecache19-0.5.13-c0804efc995a/lib/linecache19.rb:69:in `require'
from /usr/local/rvm/gems/ruby-1.9.2-p320#project/bundler/gems/linecache19-0.5.13-c0804efc995a/lib/linecache19.rb:69:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.2-p320#project/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in `require'
from /usr/local/rvm/gems/ruby-1.9.2-p320#project/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /usr/local/rvm/gems/ruby-1.9.2-p320#project/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in `each'
from /usr/local/rvm/gems/ruby-1.9.2-p320#project/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in `block in require'
from /usr/local/rvm/gems/ruby-1.9.2-p320#project/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `each'
from /usr/local/rvm/gems/ruby-1.9.2-p320#project/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `require'
from /usr/local/rvm/gems/ruby-1.9.2-p320#project/gems/bundler-1.2.3/lib/bundler.rb:128:in `require'
from /media/resource/RoR/project/config/application.rb:7:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.2-p320#project/gems/railties-3.2.11/lib/rails/commands.rb:53:in `require'
from /usr/local/rvm/gems/ruby-1.9.2-p320#project/gems/railties-3.2.11/lib/rails/commands.rb:53:in `block in <top (required)>'
from /usr/local/rvm/gems/ruby-1.9.2-p320#project/gems/railties-3.2.11/lib/rails/commands.rb:50:in `tap'
from /usr/local/rvm/gems/ruby-1.9.2-p320#project/gems/railties-3.2.11/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Here is the Gemfile:
source 'https://rubygems.org'
gem 'rails', '3.2.11'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mysql2'
gem 'zclip-rails'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
gem "therubyracer"
gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS
gem "twitter-bootstrap-rails"
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'debugger'
gem 'linecache19', '>= 0.5.13', :git => 'https://github.com/robmathews /linecache19-0.5.13.git'
gem 'ruby-debug-base19x', '>= 0.11.30.pre10'
gem 'ruby-debug-ide', '>= 0.4.17.beta14'
Here is the output of 'gem list' command:
actionmailer (3.2.11)
actionpack (3.2.11)
activemodel (3.2.11)
activerecord (3.2.11)
activeresource (3.2.11)
activesupport (3.2.11)
archive-tar-minitar (0.5.2)
arel (3.0.2)
builder (3.0.4)
bundler (1.2.3)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.4.0)
columnize (0.3.6)
commonjs (0.2.6)
debugger-linecache (1.1.2)
debugger-ruby_core_source (1.1.7)
erubis (2.7.0)
execjs (1.4.0)
hike (1.2.1)
i18n (0.6.1)
journey (1.0.4)
jquery-rails (2.2.0)
json (1.7.6)
less (2.2.2)
less-rails (2.2.6)
libv8 (3.11.8.13 x86-linux)
linecache19 (0.5.12)
mail (2.4.4)
mime-types (1.19)
multi_json (1.5.0)
mysql2 (0.3.11)
polyglot (0.3.3)
rack (1.4.4)
rack-cache (1.2)
rack-ssl (1.3.2)
rack-test (0.6.2)
rails (3.2.11)
railties (3.2.11)
rake (10.0.3)
rbx-require-relative (0.0.9)
rdoc (3.12)
ref (1.0.2)
ruby-debug-base19 (0.11.25)
ruby-debug-base19x (0.11.30.pre10)
ruby-debug-ide (0.4.17.beta16, 0.4.17.beta14)
ruby-debug19 (0.11.6)
ruby_core_source (0.1.5)
sass (3.2.5)
sass-rails (3.2.6)
sprockets (2.2.2)
therubyracer (0.11.3)
thor (0.17.0)
tilt (1.3.3)
treetop (1.4.12)
twitter-bootstrap-rails (2.2.0)
tzinfo (0.3.35)
uglifier (1.3.0)
zclip-rails (0.0.1)
I am using
Rails 3.2.11
and
ruby 1.9.2p320 (2012-04-20 revision 35421) [i686-linux]
How can I solve this problem to run the server?
The version of linecache19 listed in your Gemfile seems to be more recent than the one displayed by 'gem list'. Have you tried to run 'bundle update'?
I solved the same issue by copying trace_nums19.bundle into the folder where its missing. You can find this file somewhere in your lib folder of your linecache gem

Chef server won't start

Trying to get chef-server to start I get the following error:
[root#SCM: /etc/chef]$ /etc/init.d/chef-server-webui start
* Starting chef-server-webui
/usr/lib/ruby/1.8/rubygems/remote_fetcher.rb:14: uninitialized constant Gem::UserInteraction (NameError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.8/rubygems/spec_fetcher.rb:4
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.8/chef/provider/package/rubygems.rb:31
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.8/chef/providers.rb:59
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.8/chef.rb:25
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/sbin/chef-server-webui:42
And here is my gem list
*** LOCAL GEMS ***
bundler (1.0.18)
bunny (0.7.6)
chef (0.10.4)
chef-server-webui (0.10.4)
coderay (1.0.0)
daemons (1.1.4)
erubis (2.7.0)
eventmachine (0.12.10)
extlib (0.9.15)
haml (3.1.3)
highline (1.6.2)
json (1.5.2, 1.4.6)
merb-assets (1.1.3)
merb-core (1.1.3)
merb-haml (1.1.3)
merb-helpers (1.1.3)
merb-param-protection (1.1.3)
mime-types (1.16)
mixlib-authentication (1.1.4)
mixlib-cli (1.2.2)
mixlib-config (1.1.2)
mixlib-log (1.3.0)
moneta (0.6.0)
net-ssh (2.1.4)
net-ssh-gateway (1.1.0)
net-ssh-multi (1.1)
ohai (0.6.4)
polyglot (0.3.2)
rack (1.3.3)
rake (0.9.2)
rest-client (1.6.7)
ruby-openid (2.1.8)
systemu (2.4.0)
thin (1.2.11)
treetop (1.4.10)
uuidtools (2.1.2)
yajl-ruby (1.0.0)
Here is a Chef bugtracker issue for exactly this problem. Short summary: Chef seems to pick up different versions of RubyGems from different places after it was upgraded.
Rewinding the upgrade to RubyGems seems to help.

Error when trying to do anything with Heroku. Rails 3.1

I have been trying to use heroku with my rails app. I've gem install heroku and listed it in my gemfile, but everytime I try to do anything with it I keep getting this error...
/Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/mime-types-1.17.1/lib/mime/types.rb:755:in `split': invalid byte sequence in US-ASCII (ArgumentError)
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/mime-types-1.17.1/lib/mime/types.rb:755:in `load_from_file'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/mime-types-1.17.1/lib/mime/types.rb:838:in `block in <class:Types>'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/mime-types-1.17.1/lib/mime/types.rb:838:in `each'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/mime-types-1.17.1/lib/mime/types.rb:838:in `<class:Types>'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/mime-types-1.17.1/lib/mime/types.rb:578:in `<module:MIME>'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/mime-types-1.17.1/lib/mime/types.rb:4:in `<top (required)>'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/rest-client-1.6.7/lib/restclient/request.rb:2:in `<top (required)>'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/rest-client-1.6.7/lib/restclient.rb:13:in `<top (required)>'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/rest-client-1.6.7/lib/rest_client.rb:2:in `<top (required)>'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/heroku-2.11.0/lib/heroku/client.rb:2:in `<top (required)>'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/heroku-2.11.0/lib/heroku.rb:6:in `<top (required)>'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/heroku-2.11.0/bin/heroku:6:in `<top (required)>'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/bin/heroku:19:in `load'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/bin/heroku:19:in `<main>'
I'm new to rails so would appreciate help if anybody knows whats gone wrong. I've googled it but can't seem to find the same problem.
These are the list of gems I currently have installed incase that may be the cause:
*** LOCAL GEMS ***
actionmailer (3.1.1, 3.1.0)
actionpack (3.1.1, 3.1.0)
activemodel (3.1.1, 3.1.0)
activerecord (3.1.1, 3.1.0)
activeresource (3.1.1, 3.1.0)
activesupport (3.1.1, 3.1.0)
addressable (2.2.6)
ansi (1.3.0)
arel (2.2.1)
bcrypt-ruby (3.0.1, 3.0.0)
builder (3.0.0)
bundler (1.0.21, 1.0.18)
coffee-rails (3.1.1, 3.1.0)
coffee-script (2.2.0)
coffee-script-source (1.1.2)
daemons (1.1.4)
devise (1.4.9, 1.4.8)
erubis (2.7.0)
eventmachine (0.12.10)
execjs (1.2.9, 1.2.4)
heroku (2.11.0)
hike (1.2.1)
i18n (0.6.0)
jquery-rails (1.0.16, 1.0.14, 1.0.13)
json (1.6.1)
launchy (2.0.5)
mail (2.3.0)
mime-types (1.17.1, 1.16)
multi_json (1.0.3)
orm_adapter (0.0.5)
pg (0.11.0)
polyglot (0.3.2)
rack (1.3.5, 1.3.3, 1.3.2)
rack-cache (1.1, 1.0.3)
rack-mount (0.8.3)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.1.0)
railties (3.1.1, 3.1.0)
rake (0.9.2.2, 0.9.2)
rdoc (3.11, 3.9.4)
rest-client (1.6.7)
rubyzip (0.9.4)
sass (3.1.10, 3.1.7)
sass-rails (3.1.4, 3.1.2, 3.1.0)
sprockets (2.0.3, 2.0.0)
sqlite3 (1.3.4)
term-ansicolor (1.0.7)
thin (1.2.11)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
turn (0.8.3, 0.8.2)
tzinfo (0.3.30, 0.3.29)
uglifier (1.0.4, 1.0.3, 1.0.2)
warden (1.0.6)
All the other gems work fine though. It's just the Heroku one that throws up an error.
Thanks.
I think I had done a gem update + bundle update and that was what was messing it up.
I've uninstalled mime-types 1.17.1 and all seems to be working ok now. I had to uninstall it though. Even when I set the app to use version 1.16 it still came up with the same errors when I tried to do anything with Heroku.
You don't need to include Heroku into your gemfile.
This issue is fixed with mime-types 1.17.2, just released. I could not reproduce the issue on Mac OS X, but the problem was fairly easy to fix.

Resources