Related
When I try to start my project using rails s I have the following error message occur:
Could not find gem 'jquery-rails (>= 0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
However, I know I definitely have that gem installed because when I put in the command gem list it shows up in my list of gems.
*** LOCAL GEMS ***
actionmailer (3.2.3)
actionpack (3.2.3)
activemodel (3.2.3)
activerecord (3.2.3)
activeresource (3.2.3)
activesupport (3.2.14, 3.2.3)
arel (3.0.2)
bigdecimal (1.1.0)
builder (3.2.2, 3.0.0)
bundler (1.1.5)
c2c_linux_patch_utilities (0.30.0, 0.29.0)
chef (11.6.2)
chef-zero (1.6)
debug_me (0.5.1)
diff-lcs (1.1.3)
erubis (2.7.0)
gelf (1.1.3)
hashie (2.0.5)
highline (1.6.19)
hike (1.2.1)
i18n (0.6.5)
io-console (0.3)
ipaddress (0.8.0)
journey (1.0.3)
jquery-rails (2.0.1)
json (1.7.7, 1.5.5)
knife-lastrun (0.0.4)
mail (2.4.4)
mime-types (1.25)
minitest (3.2.0, 2.5.1)
mixlib-authentication (1.3.0)
mixlib-cli (1.3.0)
mixlib-config (1.1.2)
mixlib-log (1.6.0)
mixlib-shellout (1.2.0)
moneta (0.6.0)
multi_json (1.8.1)
net-ssh (2.7.0)
net-ssh-gateway (1.2.0)
net-ssh-multi (1.2.0, 1.1)
ohai (6.18.0)
polyglot (0.3.3)
pony (1.4, 1.3)
poseidon (0.0.4)
puma (1.6.3)
rack (1.5.2, 1.4.1)
rack-cache (1.2)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.2.3)
railties (3.2.3)
rake (10.1.0, 0.9.2.2)
rdoc (3.12.2, 3.9.5)
rest-client (1.6.7)
rspec (2.12.0)
rspec-core (2.12.2)
rspec-expectations (2.12.1)
rspec-mocks (2.12.2)
rspec_junit_formatter (0.1.6)
ruby-shadow (2.2.0)
sdoc (0.3.20)
simplecov (0.7.1)
simplecov-html (0.7.1)
sprockets (2.3.1, 2.1.2)
systemu (2.5.2, 2.5.1)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.31)
xml-simple (1.1.1)
yajl-ruby (1.1.0)
I'm not able to use bundler because the connection is blocked at my workplace, but regardless, why is it giving me the error that the gem needs to be installed when it is installed?
Edit: I used gem environment gemdir to see where my path was for my gems and then tried to set the path for where bundlers looked using bundle config path /installationPath/, but I'm still having the same errors.
Also it is not a problem with the version numbers of the gems in my Gemfile
Bundler messes with the gem load path. gem list shows you what's installed on the system, but not necessarily what Bundler will expose to the application. Have you tried bundle exec rails s or bundle list to see what Bundler is actually exposing?
rake db:migrate
/var/lib/gems/1.9.1/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig instead of obsolete and deprecated Config.
Getting above error on running rake db:migrate.
Below are the list of gems i have installed in my system.
* LOCAL GEMS *
actionmailer (4.1.4, 2.3.14)
actionpack (4.1.4, 2.3.14)
actionview (4.1.4)
activemodel (4.1.4)
activerecord (4.1.4, 2.3.14)
activeresource (4.0.0, 2.3.14)
activesupport (4.1.4, 2.3.14)
arel (5.0.1.20140414130214)
builder (3.2.2)
bundler (1.6.3)
childprocess (0.5.3)
domain_name (0.5.19)
erubis (2.7.0)
ffi (1.9.3)
hike (1.2.3)
http-cookie (1.0.2)
i18n (0.6.11)
json (1.8.1)
mail (2.5.4)
mechanize (2.7.3)
mime-types (2.3, 1.25.1)
mini_portile (0.6.0)
minitest (5.4.0)
multi_json (1.10.1)
mysql (2.9.1)
net-http-digest_auth (1.4)
net-http-persistent (2.9.4)
nokogiri (1.6.2.1)
ntlm-http (0.1.1)
polyglot (0.3.5)
rack (1.5.2, 1.1.6)
rack-test (0.6.2)
rails (2.3.14)
rails-observers (0.1.2)
railties (4.1.4)
rake (0.8.7)
rubyzip (1.1.6)
selenium-webdriver (2.42.0)
sprockets (2.12.1)
sprockets-rails (2.1.3)
thor (0.19.1)
thread_safe (0.3.4)
tilt (1.4.1)
treetop (1.4.15)
tzinfo (1.2.1)
unf (0.1.4)
unf_ext (0.0.6)
watir-webdriver (0.6.10)
webrobots (0.1.1)
websocket (1.1.4, 1.0.7)
Try updating Rake,the log as you posted in question shows rake 0.8.7 version , you might try removing it.
Install latest rake version, might be it resolve your problem
I deployed a Rails app on Cloud Foundry, and every time I run vmc tunnel, I keep getting the following error:
Please install 'tunnel-vmc-plugin' to enable tunnelling.
Pardon the extra step; it can't be a direct dependency because it
requires native compilation.
Can anyone tell what's going on here? Thanks.
Here is the additional info:
Rails 3.2.8
ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-darwin10.8.0]
vmc 0.5.0.beta.10
Here are all the gems:
actionmailer (3.2.8)
actionpack (3.2.8)
activemodel (3.2.8)
activerecord (3.2.8)
activeresource (3.2.8)
activesupport (3.2.8)
addressable (2.3.2, 2.2.8)
arel (3.0.2)
async_sinatra (0.5.0)
bootstrap-sass (2.1.0.1)
builder (3.0.4)
bundler (1.2.3)
caldecott-client (0.0.2)
cf-uaa-lib (1.3.7)
cfoundry (0.5.0, 0.4.20, 0.4.19)
chunky_png (1.2.7, 1.2.6)
clouseau (0.0.2)
compass (0.12.2)
compass-rails (1.0.3)
console-vmc-plugin (0.0.4)
daemons (1.1.9)
em-http-request (0.3.0)
em-websocket (0.3.8)
erubis (2.7.0)
escape_utils (0.2.4)
eventmachine (1.0.0)
execjs (1.4.0)
fssm (0.2.10, 0.2.9)
haml (3.1.7)
haml-rails (0.3.5)
hike (1.2.1)
i18n (0.6.1)
interact (0.5.2)
journey (1.0.4)
jquery-rails (2.2.0, 2.1.4)
json (1.7.6, 1.7.5, 1.6.7)
json_pure (1.6.7)
mail (2.4.4)
manifests-vmc-plugin (0.5.0, 0.4.19)
mime-types (1.20.1, 1.19)
mothership (0.5.0, 0.3.5)
multi_json (1.5.0, 1.4.0)
multipart-post (1.1.5)
mysql2 (0.3.11)
open4 (1.3.0)
Platform (0.4.0)
polyglot (0.3.3)
POpen4 (0.1.4)
rack (1.4.4, 1.4.1)
rack-cache (1.2)
rack-protection (1.3.2)
rack-ssl (1.3.3, 1.3.2)
rack-test (0.6.2)
rails (3.2.8)
railties (3.2.8)
rake (10.0.3)
rdoc (3.12)
rest-client (1.6.7)
rubygems-bundler (1.1.0)
rubyzip (0.9.9)
rvm (1.11.3.6)
sass (3.2.5, 3.2.4)
sass-rails (3.2.6, 3.2.5)
sinatra (1.3.4)
sprockets (2.1.3)
sqlite3 (1.3.6)
thin (1.5.0)
thor (0.17.0, 0.16.0)
tilt (1.3.3)
treetop (1.4.12)
tunnel-dummy-vmc-plugin (0.0.2)
tunnel-vmc-plugin (0.2.0, 0.1.11)
tzinfo (0.3.35)
uglifier (1.3.0)
uuidtools (2.1.3)
vmc (0.5.0.beta.10)
yui-compressor (0.9.6)
vmc tunnel
...should be independent of any apps you have deployed. All you need is
one or more services ("vmc create service" - once done, you can tunnel to it)
Tunneling requires caldecott, so make sure you have followed,
Tunneling to a Cloud Foundry Service with Caldecott
gem list tunnel
...should give you a list of your tunnel plugins
I just updated vmc to beta.12 and it depends on tunnel-vmc-plugin (~> 0.2),
so I removed all other versions.
If you didn't get the tunnel plugin,
gem uninstall vmc
then
gem install vmc --pre
I have been running this app for about 3 months on heroku with out any issues. But when I pushed the last update, I got this error when I ran heroku run rake db:migrate.
/app/vendor/bundle/ruby/1.9.1/gems/pg-0.13.2/lib/pg_ext.so: wrong ELF class: ELFCLASS32 - /app/vendor/bundle/ruby/1.9.1/gems/pg-0.13.2/lib/pg_ext.so
I am not sure what else could help.
I am using rails 3.2.1
I upgraded to Ubuntu 12.04 LTS from 11.10 yesterday, both were 32 bit and I know this error has something to do with 32 to 64 bit compatibility issues. I think that could be part of the issue, but I am not sure why it just started or how to fix it.
Heroku replaces the database.yml file with their's, and I have run bundle install on heroku's end as well. Any help would be appriciated
*** LOCAL GEMS ***
actionmailer (3.2.3, 3.2.1, 3.2.0, 3.1.1)
actionpack (3.2.3, 3.2.2, 3.2.1, 3.2.0, 3.1.3, 3.1.1)
activeadmin (0.4.3, 0.4.2)
activemodel (3.2.3, 3.2.2, 3.2.1, 3.2.0, 3.1.3, 3.1.1)
activerecord (3.2.3, 3.2.1, 3.2.0, 3.1.1)
activerecord-jdbc-adapter (1.2.2)
activerecord-jdbcsqlite3-adapter (1.2.2)
activeresource (3.2.3, 3.2.1, 3.2.0, 3.1.1)
activesupport (3.2.3, 3.2.2, 3.2.1, 3.2.0, 3.1.3, 3.1.1)
acts_as_indexed (0.7.8)
addressable (2.2.7, 2.2.6)
ansi (1.4.2, 1.4.1)
arel (3.0.2, 3.0.0, 2.2.3, 2.2.1)
awesome_nested_set (2.1.3)
babosa (0.3.7)
backbone-on-rails (0.9.1.0)
backup (3.0.23)
bcrypt-ruby (3.0.1)
bootstrap-sass (2.0.1)
bourbon (1.4.0)
builder (3.0.0)
bundler (1.0.21 ruby)
capybara (1.1.2)
childprocess (0.3.1)
chronic (0.6.7)
chunky_png (1.2.5)
client_side_validations (3.1.3)
cocaine (0.2.1)
coffee-rails (3.2.2, 3.2.1, 3.1.1)
coffee-script (2.2.0)
coffee-script-source (1.3.1, 1.2.0, 1.1.3)
commonjs (0.2.5)
compass (0.11.7)
copycopter_client (2.0.0)
daemon_controller (1.0.0, 0.2.6)
daemons (1.1.8)
devise (2.0.4, 2.0.1, 2.0.0, 1.5.2)
devise_invitable (1.0.1)
diff-lcs (1.1.3)
dragonfly (0.9.12)
dynamic_form (1.1.4)
eco (1.0.0)
eco-source (1.1.0.rc.1)
ejs (1.0.0)
erubis (2.7.0)
eventmachine (0.12.10)
execjs (1.3.0, 1.2.13, 1.2.12, 1.2.9)
factory_girl (2.6.0)
factory_girl_rails (1.7.0)
faker (1.0.1)
faraday (0.7.5)
fastercsv (1.5.4)
fastthread (1.0.7)
ffi (1.0.11)
flutie (1.3.3)
foreman (0.40.0)
formtastic (2.1.0, 2.0.2)
friendly_id (4.0.4)
fssm (0.2.8.1)
globalize3 (0.2.0)
gon (2.2.2)
guard (1.0.1)
guard-rspec (0.7.0)
haml (3.1.4)
haml-rails (0.3.4)
haml_rails (0.1.0)
has_scope (0.5.1)
hashie (1.2.0)
heroku (2.16.2)
hike (1.2.1)
hpricot (0.8.6, 0.8.5)
htmldiff (0.0.1)
i18n (0.6.0)
inherited_resources (1.3.1, 1.3.0)
jdbc-sqlite3 (3.7.2)
journey (1.0.3, 1.0.1, 1.0.0)
jquery-rails (2.0.2, 2.0.1, 2.0.0, 1.0.19)
json (1.6.6, 1.6.5, 1.6.4, 1.6.3, 1.6.2)
json_pure (1.6.5)
kaminari (0.13.0)
launchy (2.0.5)
less (2.1.0, 2.0.11)
less-rails (2.2.0, 2.1.8)
letter_opener (0.0.2)
libv8 (3.3.10.4 x86-linux)
mail (2.4.4, 2.4.1, 2.3.3, 2.3.0)
meta_search (1.1.3)
mime-types (1.18, 1.17.2)
minitest (2.11.1)
multi_json (1.3.1, 1.2.0, 1.1.0, 1.0.4)
multipart-post (1.1.4)
mysql (2.8.1)
mysql2 (0.3.11)
newrelic_rpm (3.3.2)
nifty-generators (0.4.6)
nokogiri (1.5.0)
oauth (0.4.5)
oauth2 (0.5.1)
omniauth (1.0.1)
omniauth-facebook (1.1.0)
omniauth-google-oauth2 (0.1.8)
omniauth-identity (1.0.0)
omniauth-linkedin (0.0.6)
omniauth-oauth (1.0.0)
omniauth-oauth2 (1.0.0)
omniauth-twitter (0.0.7)
open4 (1.3.0)
orm_adapter (0.0.7, 0.0.6, 0.0.5)
paper_trail (2.6.3)
paperclip (2.7.0)
passenger (3.0.11)
pg (0.13.2, 0.13.0, 0.12.2, 0.12.0, 0.11.0)
pjax_rails (0.1.10)
Platform (0.4.0)
polyamorous (0.5.0)
polyglot (0.3.3)
POpen4 (0.1.4)
popen4 (0.1.2)
rack (1.4.1, 1.4.0, 1.3.6, 1.3.5)
rack-cache (1.2, 1.1)
rack-mount (0.8.3)
rack-pjax (0.5.5)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.2.1, 3.2.0, 3.1.1)
railties (3.2.3, 3.2.1, 3.2.0, 3.1.1)
rake (0.9.2.2, 0.9.2)
rake-compiler (0.7.9)
rdoc (3.12, 3.11)
redcarpet (2.1.1)
refinerycms (2.0.3)
refinerycms-authentication (2.0.3)
refinerycms-core (2.0.3)
refinerycms-dashboard (2.0.3)
refinerycms-images (2.0.3)
refinerycms-pages (2.0.3)
refinerycms-resources (2.0.3)
responders (0.9.1, 0.6.5)
rest-client (1.6.7)
rspec (2.8.0)
rspec-core (2.8.0)
rspec-expectations (2.8.0)
rspec-mocks (2.8.0)
rspec-rails (2.8.1)
ruby_parser (2.3.1)
rubyXL (1.2.5)
rubyzip (0.9.6.1, 0.9.5)
sass (3.1.15, 3.1.12, 3.1.11)
sass-rails (3.2.5, 3.2.4, 3.2.3, 3.1.5)
selenium-webdriver (2.13.0)
seo_meta (1.3.0)
sexp_processor (3.2.0)
simple_form (2.0.1, 2.0.0, 1.5.2)
spork (0.9.0)
sprockets (2.1.2, 2.0.3)
sqlite3 (1.3.5, 1.3.4)
squeel (0.9.5)
ssl_requirement (0.1.0)
stringex (1.3.2)
term-ansicolor (1.0.7)
test-loop (13.0.1)
therubyracer (0.10.0, 0.9.10, 0.9.9)
thin (1.3.1)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
truncate_html (0.5.4)
turn (0.9.4, 0.9.1, 0.8.3)
twitter-bootstrap-rails (2.0.4)
tzinfo (0.3.33, 0.3.32, 0.3.31)
uglifier (1.2.4, 1.2.3, 1.2.2, 1.2.1, 1.2.0, 1.1.0)
warden (1.1.1, 1.1.0)
watchr (0.7)
whenever (0.7.3)
will_paginate (3.0.3)
xpath (0.1.4)
yajl-ruby (1.1.0)
Solved: I needed to remove my vender folder from the slug I pushed to heroku. all I need to do was.
git rm vendor -r -f
then add vendor/* to my .gitignore file
I hope this helps
I have been running this app for month with no issues. but now I keep getting this error when I run:
heroku run rake db:migrate
I have tried the basics fixes, removing/install the gem, destroy the app and redeploy. bundle install on Heroku.
here is my gem file
*** LOCAL GEMS ***
actionmailer (3.2.3, 3.2.1, 3.2.0, 3.1.1)
actionpack (3.2.3, 3.2.2, 3.2.1, 3.2.0, 3.1.3, 3.1.1)
activeadmin (0.4.3, 0.4.2)
activemodel (3.2.3, 3.2.2, 3.2.1, 3.2.0, 3.1.3, 3.1.1)
activerecord (3.2.3, 3.2.1, 3.2.0, 3.1.1)
activerecord-jdbc-adapter (1.2.2)
activerecord-jdbcsqlite3-adapter (1.2.2)
activeresource (3.2.3, 3.2.1, 3.2.0, 3.1.1)
activesupport (3.2.3, 3.2.2, 3.2.1, 3.2.0, 3.1.3, 3.1.1)
acts_as_indexed (0.7.8)
addressable (2.2.7, 2.2.6)
ansi (1.4.2, 1.4.1)
arel (3.0.2, 3.0.0, 2.2.3, 2.2.1)
awesome_nested_set (2.1.3)
babosa (0.3.7)
backbone-on-rails (0.9.1.0)
backup (3.0.23)
bcrypt-ruby (3.0.1)
bootstrap-sass (2.0.1)
bourbon (1.4.0)
builder (3.0.0)
bundler (1.0.21 ruby)
capybara (1.1.2)
childprocess (0.3.1)
chronic (0.6.7)
chunky_png (1.2.5)
client_side_validations (3.1.3)
cocaine (0.2.1)
coffee-rails (3.2.2, 3.2.1, 3.1.1)
coffee-script (2.2.0)
coffee-script-source (1.3.1, 1.2.0, 1.1.3)
commonjs (0.2.5)
compass (0.11.7)
copycopter_client (2.0.0)
daemon_controller (1.0.0, 0.2.6)
daemons (1.1.8)
devise (2.0.4, 2.0.1, 2.0.0, 1.5.2)
devise_invitable (1.0.1)
diff-lcs (1.1.3)
dragonfly (0.9.12)
dynamic_form (1.1.4)
eco (1.0.0)
eco-source (1.1.0.rc.1)
ejs (1.0.0)
erubis (2.7.0)
eventmachine (0.12.10)
execjs (1.3.0, 1.2.13, 1.2.12, 1.2.9)
factory_girl (2.6.0)
factory_girl_rails (1.7.0)
faker (1.0.1)
faraday (0.7.5)
fastercsv (1.5.4)
fastthread (1.0.7)
ffi (1.0.11)
flutie (1.3.3)
foreman (0.40.0)
formtastic (2.1.0, 2.0.2)
friendly_id (4.0.4)
fssm (0.2.8.1)
globalize3 (0.2.0)
gon (2.2.2)
guard (1.0.1)
guard-rspec (0.7.0)
haml (3.1.4)
haml-rails (0.3.4)
haml_rails (0.1.0)
has_scope (0.5.1)
hashie (1.2.0)
heroku (2.16.2)
hike (1.2.1)
hpricot (0.8.6, 0.8.5)
htmldiff (0.0.1)
i18n (0.6.0)
inherited_resources (1.3.1, 1.3.0)
jdbc-sqlite3 (3.7.2)
journey (1.0.3, 1.0.1, 1.0.0)
jquery-rails (2.0.2, 2.0.1, 2.0.0, 1.0.19)
json (1.6.6, 1.6.5, 1.6.4, 1.6.3, 1.6.2)
json_pure (1.6.5)
kaminari (0.13.0)
launchy (2.0.5)
less (2.1.0, 2.0.11)
less-rails (2.2.0, 2.1.8)
letter_opener (0.0.2)
libv8 (3.3.10.4 x86-linux)
mail (2.4.4, 2.4.1, 2.3.3, 2.3.0)
meta_search (1.1.3)
mime-types (1.18, 1.17.2)
minitest (2.11.1)
multi_json (1.3.1, 1.2.0, 1.1.0, 1.0.4)
multipart-post (1.1.4)
mysql (2.8.1)
mysql2 (0.3.11)
newrelic_rpm (3.3.2)
nifty-generators (0.4.6)
nokogiri (1.5.0)
oauth (0.4.5)
oauth2 (0.5.1)
omniauth (1.0.1)
omniauth-facebook (1.1.0)
omniauth-google-oauth2 (0.1.8)
omniauth-identity (1.0.0)
omniauth-linkedin (0.0.6)
omniauth-oauth (1.0.0)
omniauth-oauth2 (1.0.0)
omniauth-twitter (0.0.7)
open4 (1.3.0)
orm_adapter (0.0.7, 0.0.6, 0.0.5)
paper_trail (2.6.3)
paperclip (2.7.0)
passenger (3.0.11)
pg (0.13.2)
pjax_rails (0.1.10)
Platform (0.4.0)
polyamorous (0.5.0)
polyglot (0.3.3)
POpen4 (0.1.4)
popen4 (0.1.2)
rack (1.4.1, 1.4.0, 1.3.6, 1.3.5)
rack-cache (1.2, 1.1)
rack-mount (0.8.3)
rack-pjax (0.5.5)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.2.1, 3.2.0, 3.1.1)
railties (3.2.3, 3.2.1, 3.2.0, 3.1.1)
rake (0.9.2.2, 0.9.2)
rake-compiler (0.7.9)
rdoc (3.12, 3.11)
redcarpet (2.1.1)
refinerycms (2.0.3)
refinerycms-authentication (2.0.3)
refinerycms-core (2.0.3)
refinerycms-dashboard (2.0.3)
refinerycms-images (2.0.3)
refinerycms-pages (2.0.3)
refinerycms-resources (2.0.3)
responders (0.9.1, 0.6.5)
rest-client (1.6.7)
rspec (2.8.0)
rspec-core (2.8.0)
rspec-expectations (2.8.0)
rspec-mocks (2.8.0)
rspec-rails (2.8.1)
ruby_parser (2.3.1)
rubyXL (1.2.5)
rubyzip (0.9.6.1, 0.9.5)
sass (3.1.15, 3.1.12, 3.1.11)
sass-rails (3.2.5, 3.2.4, 3.2.3, 3.1.5)
selenium-webdriver (2.13.0)
seo_meta (1.3.0)
sexp_processor (3.2.0)
simple_form (2.0.1, 2.0.0, 1.5.2)
spork (0.9.0)
sprockets (2.1.2, 2.0.3)
sqlite3 (1.3.5, 1.3.4)
squeel (0.9.5)
ssl_requirement (0.1.0)
stringex (1.3.2)
term-ansicolor (1.0.7)
test-loop (13.0.1)
therubyracer (0.10.0, 0.9.10, 0.9.9)
thin (1.3.1)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
truncate_html (0.5.4)
turn (0.9.4, 0.9.1, 0.8.3)
twitter-bootstrap-rails (2.0.4)
tzinfo (0.3.33, 0.3.32, 0.3.31)
uglifier (1.2.4, 1.2.3, 1.2.2, 1.2.1, 1.2.0, 1.1.0)
warden (1.1.1, 1.1.0)
watchr (0.7)
whenever (0.7.3)
will_paginate (3.0.3)
xpath (0.1.4)
yajl-ruby (1.1.0)
Not sure what else might help.
thanks in advance.
The problem was that I had upgraded to devise 2.0 by using bundle upgrade, but not run rails g install:devise after the upgrade, after I did that on my local machine I added the following to my .gitignore file, so this wouldn't happen again
db/schema.rb
vendor/*
destroyed my app on heroku and started a new one. Thank goodness I backup everything, just pointed everything back at the new app and it worked just like the old.