can't start rails server, getting a lot of "load errors" - ruby-on-rails

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 ;)

Related

Rails error : active_support/core_ext/string (LoadError)

I installed Spree commerce for a website I'm making and needed to upgrade my Ruby version to 2.3.0 I've installed rvm and made the 2.3.0 the default ruby version to use.
I've re-installed Rails and Bundler but when I try to make to add the spree gem to my file using this formula:
spree install --auto-accept
then I get this error :
/Users/steph/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- active_support/core_ext/string (LoadError)
from /Users/steph/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/steph/.rvm/gems/ruby-2.3.0/gems/spree_cmd-3.0.8/lib/spree_cmd/installer.rb:2:in `<top (required)>'
from /Users/steph/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/steph/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/steph/.rvm/gems/ruby-2.3.0/gems/spree_cmd-3.0.8/lib/spree_cmd.rb:13:in `<top (required)>'
from /Users/steph/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/steph/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/steph/.rvm/gems/ruby-2.3.0/gems/spree_cmd-3.0.8/bin/spree:2:in `<top (required)>'
from /Users/steph/.rvm/gems/ruby-2.3.0/bin/spree:22:in `load'
from /Users/steph/.rvm/gems/ruby-2.3.0/bin/spree:22:in `<main>'
from /Users/steph/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
from /Users/steph/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
I'm really not sure what to do, i've tried re-installing bundler and rails et spree but nothing different.
I've been following these instructions : https://guides.spreecommerce.com/developer/getting_started_tutorial.html
Can anyone help me with this error? Thanks in advance!

RoR on OS10.11.2: kernel_require.b54:in : cannot load such file when trying to generate controller welcome

I just started learning Ruby on Rails from Hartl's "Ruby on rails 3: Learn Rails by example" (but I do have rails 4.2.5). Everything worked great until I tried to deploy to Heroku - couldn't get pass the $ git push heroku master, so I found this https://devcenter.heroku.com/articles/getting-started-with-rails4#local-workstation-setup and started over according to these instructions. Everything works perfecto, apart from `
$ rails generate controller welcome`
`/Users/liisvaljaots/.rbenv/versions/2.2.4/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file --
bundler/setup (LoadError)
from /Users/liisvaljaots/.rbenv/versions/2.2.4/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/liisvaljaots/myapp/vendor/bundle/gems/spring-1.6.1/lib/spring/commands.rb:33:in `<module:Spring>'
from /Users/liisvaljaots/myapp/vendor/bundle/gems/spring-1.6.1/lib/spring/commands.rb:4:in `<top (required)>'
from /Users/liisvaljaots/.rbenv/versions/2.2.4/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/liisvaljaots/.rbenv/versions/2.2.4/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/liisvaljaots/myapp/vendor/bundle/gems/spring-1.6.1/lib/spring/application.rb:77:in `preload'
from /Users/liisvaljaots/myapp/vendor/bundle/gems/spring-1.6.1/lib/spring/application.rb:143:in `serve'
from /Users/liisvaljaots/myapp/vendor/bundle/gems/spring-1.6.1/lib/spring/application.rb:131:in `block in run'
from /Users/liisvaljaots/myapp/vendor/bundle/gems/spring-1.6.1/lib/spring/application.rb:125:in `loop'
from /Users/liisvaljaots/myapp/vendor/bundle/gems/spring-1.6.1/lib/spring/application.rb:125:in `run'
from /Users/liisvaljaots/myapp/vendor/bundle/gems/spring-1.6.1/lib/spring/application/boot.rb:18:in `<top (required)>'
from /Users/liisvaljaots/.rbenv/versions/2.2.4/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/liisvaljaots/.rbenv/versions/2.2.4/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from -e:1:in `<main>'`
I'm all Googled out on this issue, maybe someone here can help.
Also, another possibly related issue is this line in my Terminal when I open it bash: eval: line 21: syntax error: unexpected end of file
Thank you!

Ruby1.8 Rails2.3 ./script/server producing error

I have been assigned a projected that was written in Ruby1.8 and Rails2.3. We can't upgrade at the moment. I have successfully installed ruby and rails and installed all needed gems for the project on a ubuntu machine. I have received success messages while installing everything.
However, when I run the command ./script/server I received the output:
/var/lib/gems/1.8/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require': no such file to load -- sentry (MissingSourceFile)
from /var/lib/gems/1.8/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require'
from /var/lib/gems/1.8/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:547:in `new_constants_in'
from /var/lib/gems/1.8/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require'
from /home/robotmaster/Documents/Source/agile/config/initializers/sentry.rb:1
from /var/lib/gems/1.8/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:171:in `load_without_new_constant_marking'
from /var/lib/gems/1.8/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:171:in `load'
from /var/lib/gems/1.8/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:547:in `new_constants_in'
from /var/lib/gems/1.8/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:171:in `load'
from /var/lib/gems/1.8/gems/rails-2.3.18/lib/initializer.rb:622:in `load_application_initializers'
from /var/lib/gems/1.8/gems/rails-2.3.18/lib/initializer.rb:621:in `each'
from /var/lib/gems/1.8/gems/rails-2.3.18/lib/initializer.rb:621:in `load_application_initializers'
from /var/lib/gems/1.8/gems/rails-2.3.18/lib/initializer.rb:176:in `process'
from /var/lib/gems/1.8/gems/rails-2.3.18/lib/initializer.rb:113:in `send'
from /var/lib/gems/1.8/gems/rails-2.3.18/lib/initializer.rb:113:in `run'
from /home/robotmaster/Documents/Source/agile/config/environment.rb:42
from /var/lib/gems/1.8/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require'
from /var/lib/gems/1.8/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require'
from /var/lib/gems/1.8/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:547:in `new_constants_in'
from /var/lib/gems/1.8/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require'
from /var/lib/gems/1.8/gems/rails-2.3.18/lib/commands/server.rb:84
from ./script/server:4:in `require'
from ./script/server:4
I am new to the Rails and would appreciate any help with this error message. Thanks
The key to the issue is here:
sentry (MissingSourceFile)
I'm really not familiar with that particular file (and Rail 2.3 is several major revisions behind...) but it indicates to me that there's something incomplete about your Gem set.
gem update
This would be my first attempt. Verify that all of the referenced gems in your Gemfile are present on the system. If at all possible, I'd really look to upgrade to at least Rail 3, preferably 4.
EDIT:
Reading this again, why are you executing ./script/server? You should be executing:
rails s

Unable to run rinari-web-server

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.

Deploy Rails program to Heroku under Fedora 15

[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.

Resources