dilip#linuxmint~ rails new treebook
/home/dilip/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/core_ext /kernel_require.rb:53:in `require': cannot load such file -- active_support (LoadError)
from /home/dilip/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:53:in `require'
from /usr/lib/ruby/vendor_ruby/railties/lib/rails_generator.rb:30:in `<top (required)>'
from /home/dilip/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:53:in `require'
from /home/dilip/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:53:in `require'
from /usr/lib/ruby/vendor_ruby/railties/bin/rails:16:in `<main>'
Can anyone please help me out with this error??
Make sure you have done
gem install rails
Also, make sure that you have all the proper permissions to your gems (i.e. they don't belong to root)
Make sure Rails is installed then use command
bundle install
Related
I am a novice programmer trying to use a Jekyll theme for my Github blog. This is my first time using it... and I'm having problems with bundle exec jekyll serve command.
(FYI, I'm using Windows OS.)
Here's the output:
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/html.rb:10:in `require': cannot load such file -- rexml/parsers/baseparser (LoadError)
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/html.rb:10:in `<top (required)>'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown/html.rb:10:in `require'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown/html.rb:10:in `<top (required)>'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown/paragraph.rb:14:in `require'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown/paragraph.rb:14:in `<top (required)>'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:345:in `require'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:345:in `<class:Kramdown>'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:60:in `<module:Parser>'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:19:in `<module:Kramdown>'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:17:in `<top (required)>'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-3.8.6/lib/jekyll/converters/smartypants.rb:3:in `require'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-3.8.6/lib/jekyll/converters/smartypants.rb:3:in `<top (required)>'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-3.8.6/lib/jekyll.rb:13:in `require'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-3.8.6/lib/jekyll.rb:13:in `block in require_all'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-3.8.6/lib/jekyll.rb:12:in `each'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-3.8.6/lib/jekyll.rb:12:in `require_all'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-3.8.6/lib/jekyll.rb:194:in `<top (required)>'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-3.8.6/exe/jekyll:8:in `require'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-3.8.6/exe/jekyll:8:in `<top (required)>'
from C:/Ruby30-x64/bin/jekyll:25:in `load'
from C:/Ruby30-x64/bin/jekyll:25:in `<main>'
I tried these 4 different solutions:
1.
bundle add webrick
But had the same error
(referenced bundle exec jekyll serve: cannot load such file)
gem install jekyll github-pages
gem install jekyll
gem install jekyll-feed
bundle update
But had the same error
3.
gem install webrick
gem install jekyll -mentions
Then added
group :jekyll_plugins do
gem "jekyll-mentions", "1.6.0"
gem "webrick"
end
to my gemfile, then
bundle install
But had the same error
(referenced https://github.com/jekyll/jekyll/issues/8523)
bundle add sdbm
bundle add webrick
bundle add net-telnet
bundle add xmlrpc
But had the same error.
Is there any way I can fix this situation?
From what I understand, Ruby moves all stdlib parts into gems, some are "default gems", as in, they are normally installed with Ruby and don't need a reference in your Gemfile, but some are "bundled gems" which also are installed with Ruby, but need a reference in Gemfile. The problem stems from a fact, that with every Ruby release, some "default gems" become "bundled gems".
Such a situation happened with webrick in the past.
In your case it's most likely that you need rexml, which just became a "bundled gem" in Ruby 3.0: https://stdgems.org/rexml/
All this about a theory, but a solution is pretty simple. You just need to do
bundle add rexml
and then bundle install.
/usr/local/lib/ruby/2.3.0/irb/completion.rb:10:in require': cannot load such file -- readline (LoadError)
from /usr/local/lib/ruby/2.3.0/irb/completion.rb:10:in'
from /usr/local/bundle/gems/railties-4.2.6/lib/rails/commands/console.rb:3:in require'
from /usr/local/bundle/gems/railties-4.2.6/lib/rails/commands/console.rb:3:in'
from /usr/local/bundle/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:123:in require'
from /usr/local/bundle/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:123:inrequire_command!'
from /usr/local/bundle/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:58:in console'
from /usr/local/bundle/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:inrun_command!'
from /usr/local/bundle/gems/railties-4.2.6/lib/rails/commands.rb:17:in <top (required)>'
from bin/rails:4:inrequire'
from bin/rails:4:in `'
Try adding gem 'rb-readline' to your project. It appears you don't have the capability to handle console interaction, and that gem should provide it for you.
Check your gem file.
install relevant rvm
use command - rvm use 'Your_version'
I'm trying to run the script from "HOW TO RUN YOUR OWN BITCOIN ARBITRAGE BOT".
You can try following it yourself and test the results.
I followed it exactly and yet, when I open the program, I get this and I have no idea how to fix it.
c:\Ruby200-x64\devkit>rbtc_simple
C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require
': cannot load such file -- bundler (LoadError)
from C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:5
5:in `require'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rbtc_arbitrage_simple-2.1.1
/lib/rbtc_arbitrage.rb:1:in `<top (required)>'
from C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:5
5:in `require'
from C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:5
5:in `require'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rbtc_arbitrage_simple-2.1.1
/bin/rbtc_simple:4:in `<top (required)>'
from C:/Ruby200-x64/bin/rbtc_simple:23:in `load'
from C:/Ruby200-x64/bin/rbtc_simple:23:in `<main>'
I'm running 64bit Ruby and 64bit devkit.
I ran git init in C:\Ruby200\bin, which I think is the right folder. How can I know where to run it?
You are missing the bundler gem as seen in your error message:
require: cannot load such file -- bundler
to fix this you can install bundler to your gems: gem install bundler
I am trying to setup an existing project of friends on my ubuntu
i installed ruby ree-1.8.7 with rvm
and ran the rvm use command to switch to that ruby.
then ran bundle install in the app folder and it installed all the gems (there are a lot)
now i tried running rails server and i am getting a huge amount of errors.
i won't copy all the text because its big, but here is how it looks basicly. how do i go about solving this?
/home/schaller/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require': no such file to load -- twitter-text (LoadError)
from /home/schaller/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
from /home/schaller/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/schaller/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:596:in `new_constants_in'
from /home/schaller/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/schaller/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
from /home/schaller/.rvm/gems/ree-1.8.7-2012.02/gems/twitter-2.0.0/lib/twitter/status.rb:9
from /home/schaller/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
from /home/schaller/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
from /home/schaller/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/schaller/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:596:in `new_constants_in'
from /home/schaller/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/schaller/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
from /home/schaller/.rvm/gems/ree-1.8.7-2012.02/gems/twitter-2.0.0/lib/twitter/user.rb:5
from /home/schaller/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
Its not a huge amount of errors, its just one error and what you are seeing is the stack trace :)
The real error is:
`require': no such file to load -- twitter-text (LoadError)
So add twitter-text to your Gemfile and try again ;)
When I run rinari-web-server I am getting this error:
/home/pedrorolo/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- bundler/setup (LoadError)
from /home/pedrorolo/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/pedrorolo/workspace/geoptima-registrator/config/boot.rb:6:in `<top (required)>'
from /home/pedrorolo/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/pedrorolo/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/pedrorolo/workspace/geoptima-registrator/script/rails:5:in `<main>'
I have the rvm emacs package installed. What am I doing wrong?
Had the same problem, fixed it by installing rvm.el
https://github.com/senny/rvm.el
Edit: duh, didn't fully read your question. Sorry.
I managed to make this work by explicitly loading the rvm.el file in my .emacs.