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.
Related
I am trying t configure the Salesforce Vulnreport tool, and everytime I run the SEED.rb I get the following error:
Setting up the PostgreSQL database...
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- dm--adapter (LoadError)
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/ruby/vendor_ruby/dm-core/adapters.rb:163:in `load_adapter'
from /usr/lib/ruby/vendor_ruby/dm-core/adapters.rb:133:in `adapter_class'
from /usr/lib/ruby/vendor_ruby/dm-core/adapters.rb:13:in `new'
from /usr/lib/ruby/vendor_ruby/dm-core.rb:230:in `setup'
from /root/Documents/Resources/Applications/vulnreport/models/init.rb:19:in `<top (required)>'
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from ./SEED.rb:20:in `<main>'
I have checked the Gemfile and 'dm-postgres-adapter' is included and installed. I have no idea why I am getting this error, and though I found others attempting to install this with the same issue, I found no fixes. I am not proficient enough with Ruby to really know where to go from here. Any help would be appreciated. Also I hope this I posted this in an OK place.
Thanks!
I realized while looking through my repo that my .env file had a small error in the 'export DATABASE_URL' component which was causing the issue. I was able to fix it by adjusting the incorrect password I had (1 character was off). However, the error message is not very clear. I feel it could have more easily pointed to an authentication failure to the database being the issue.
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
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
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 ;)
[root#chris-notebook helloworld]# heroku create helloworld --stack cedar
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- readline (LoadError)
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/heroku-2.8.0/lib/heroku/command/run.rb:1:in `<top (required)>'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/heroku-2.8.0/lib/heroku/command.rb:17:in `block in load'
from /usr/local/lib/ruby/gems/1.9.1/gems/heroku-2.8.0/lib/heroku/command.rb:16:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/heroku-2.8.0/lib/heroku/command.rb:16:in `load'
from /usr/local/lib/ruby/gems/1.9.1/gems/heroku-2.8.0/bin/heroku:13:in `<top (required)>'
from /usr/local/bin/heroku:19:in `load'
from /usr/local/bin/heroku:19:in `<main>'
When I try to create that, every time I got same error.
What should I do? I saw similar problems but under Ubuntu. They solve it by going some place ...src/ruby../ext/readline and then execute
ruby extconf.rb
make
make install
but I don't see that folder in file system. Why is it all so difficult?
Update
Solved by installing next packages
readline-devel.i686
readline-static.i686
And then making similar operations in the folder ext/readline that placed in downloaded sources of ruby.