$ /usr/bin/rackup -s thin -o 0.0.0.0 -p 4000 config.ru
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require': cannot load such file -- thin (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/handler/thin.rb:1:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/handler.rb:20:in `const_get'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/handler.rb:20:in `block in get'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/handler.rb:20:in `each'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/handler.rb:20:in `inject'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/handler.rb:20:in `get'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/server.rb:290:in `server'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/server.rb:214:in `block in logging_middleware'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/server.rb:327:in `call'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/server.rb:327:in `block in build_app'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/server.rb:326:in `reverse_each'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/server.rb:326:in `build_app'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/server.rb:336:in `wrapped_app'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/server.rb:272:in `start'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/server.rb:147:in `start'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/bin/rackup:4:in `<top (required)>'
from /usr/bin/rackup:23:in `load'
from /usr/bin/rackup:23:in `<main>'
I have thin ( gem install thin ) at : /Users/user25/.rbenv/shims/thin
where am i going wrong ? I tried to provide the absolute path to rackup but to no avail.
Did you run rbenv rehash after you installed the gem? You need to rehash whenever you add new shims.
Related
I'm trying to run my jekyll site locally but when executing the command:
jekyll serve
I receive the following error message:
bhavik-imac:dhokes.github.io bhavikdhokia$ jekyll serve
Configuration file: /Users/bhavikdhokia/Development/git/dhokes.github.io/_config.yml
/Users/bhavikdhokia/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- jekyll-sitemap (LoadError)
from /Users/bhavikdhokia/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:29:in `block in require_gems'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:26:in `each'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:26:in `require_gems'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:19:in `conscientious_require'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/site.rb:79:in `setup'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/site.rb:41:in `initialize'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/commands/build.rb:29:in `new'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/commands/build.rb:29:in `process'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/commands/serve.rb:26:in `block (2 levels) in init_with_program'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1#global/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `call'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1#global/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `block in execute'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1#global/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `each'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1#global/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `execute'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1#global/gems/mercenary-0.3.5/lib/mercenary/program.rb:42:in `go'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1#global/gems/mercenary-0.3.5/lib/mercenary.rb:19:in `program'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/bin/jekyll:20:in `<top (required)>'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/bin/jekyll:23:in `load'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/bin/jekyll:23:in `<main>'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'
Any suggestions as to why this is and how to resolve this?
Seems like you have to install jekyll-sitemap Try to install it by gem install jekyll-sitemap.
For people Googling this problem, also try bundle update if you're using bundle.
Since upgrading to Yosemite I having trouble using my Ruby apps. I thought it was related to the app itself ( livereload ) but I get the same error on other web development apps. I've googled to no avail and am not proficient enough with Ruby to debug myself...
Here is the output if anyone could shed any light?
/Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:212:in `initialize': Permission denied - /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/nokogiri-1.6.1/gem_make.out (Errno::EACCES)
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:212:in `open'
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:212:in `write_gem_make_out'
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:132:in `build_error'
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:171:in `rescue in build_extension'
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:156:in `build_extension'
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:198:in `block in build_extensions'
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:195:in `each'
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:195:in `build_extensions'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:1436:in `block in build_extensions'
from /Library/Ruby/Site/2.0.0/rubygems/user_interaction.rb:45:in `use_ui'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:1434:in `build_extensions'
from /Library/Ruby/Site/2.0.0/rubygems/stub_specification.rb:60:in `build_extensions'
from /Library/Ruby/Site/2.0.0/rubygems/basic_specification.rb:56:in `contains_requirable_file?'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:925:in `block in find_inactive_by_path'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:924:in `each'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:924:in `find'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:924:in `find_inactive_by_path'
from /Library/Ruby/Site/2.0.0/rubygems.rb:185:in `try_activate'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:132:in `rescue in require'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'
from /Applications/LiveReload.app/Contents/Resources/SASS.lrplugin/lib/compass/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb:2:in `<top (required)>'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Applications/LiveReload.app/Contents/Resources/SASS.lrplugin/lib/compass/lib/compass/sass_extensions/sprites/engines.rb:25:in `<top (required)>'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Applications/LiveReload.app/Contents/Resources/SASS.lrplugin/lib/compass/lib/compass/sass_extensions/sprites.rb:18:in `<top (required)>'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Applications/LiveReload.app/Contents/Resources/SASS.lrplugin/lib/compass/lib/compass/sass_extensions.rb:10:in `<top (required)>'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Applications/LiveReload.app/Contents/Resources/SASS.lrplugin/lib/compass/lib/compass.rb:5:in `block in <top (required)>'
from /Applications/LiveReload.app/Contents/Resources/SASS.lrplugin/lib/compass/lib/compass.rb:4:in `each'
from /Applications/LiveReload.app/Contents/Resources/SASS.lrplugin/lib/compass/lib/compass.rb:4:in `<top (required)>'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Applications/LiveReload.app/Contents/Resources/SASS.lrplugin/lib/compass/bin/compass:20:in `block in <main>'
from /Applications/LiveReload.app/Contents/Resources/SASS.lrplugin/lib/compass/bin/compass:8:in `fallback_load_path'
from /Applications/LiveReload.app/Contents/Resources/SASS.lrplugin/lib/compass/bin/compass:19:in `<main>'
I use ruby-install for long term ruby happiness :)
Here is what I do to setup a ruby environment in osx.
brew update
brew install ruby-install
brew install chruby
ruby-install ruby
The last line will take some time and install a fresh ruby 2.1.3 for you.
Now, Add the following to the end of ~/.bashrc or ~/.zshrc file:
source /usr/local/opt/chruby/share/chruby/chruby.sh
That's it!
This will install ruby in /Users/bibstha/.rubies/ruby-2.1.3/. Since this is your home folder, you won't have any permission issues when installing gems and they don't mess up your system.
Use RVM (http://rvm.io/):
curl -sSL https://get.rvm.io | bash -s stable
See also How to get Ruby / Homebrew / RVM to work on Yosemite?
I have a rails 3.0.20 app running with rvm on ruby 1.9.3p327. My Gemfile reads:
gem 'image_science', :git => 'git://github.com/asynchrony/image_science.git'
and Gemfile.lock has its version as:
remote: git://github.com/asynchrony/image_science.git
revision: dc36ddaadc46aecdef907de3c41a9d14d28ba8d8
specs:
image_science (1.3.2.1.Asynchrony)
I cannot seem to start my app without removing image_science, since I keep getting this error:
/home/umar/gems/ruby/1.9.1/gems/activesupport-3.0.20/lib/active_support/dependencies.rb:242:in `block in require': iconv will be deprecated in the future, use String#encode instead.
rake aborted!
/home/umar/gems/ruby/1.9.1/bundler/gems/image_science-dc36ddaadc46/lib/image_science/extension.so: undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE - /home/umar/gems/ruby/1.9.1/bundler/gems/image_science-dc36ddaadc46/lib/image_science/extension.so
/home/umar/gems/ruby/1.9.1/gems/activesupport-3.0.20/lib/active_support/dependencies.rb:242:in `require'
/home/umar/gems/ruby/1.9.1/gems/activesupport-3.0.20/lib/active_support/dependencies.rb:242:in `block in require'
/home/umar/gems/ruby/1.9.1/gems/activesupport-3.0.20/lib/active_support/dependencies.rb:225:in `block in load_dependency'
/home/umar/gems/ruby/1.9.1/gems/activesupport-3.0.20/lib/active_support/dependencies.rb:597:in `new_constants_in'
/home/umar/gems/ruby/1.9.1/gems/activesupport-3.0.20/lib/active_support/dependencies.rb:225:in `load_dependency'
/home/umar/gems/ruby/1.9.1/gems/activesupport-3.0.20/lib/active_support/dependencies.rb:242:in `require'
/home/umar/gems/ruby/1.9.1/bundler/gems/image_science-dc36ddaadc46/lib/image_science.rb:3:in `<top (required)>'
/home/umar/.rvm/gems/ruby-1.9.3-p327#a_proj/gems/bundler-1.3.4/lib/bundler/runtime.rb:72:in `require'
/home/umar/.rvm/gems/ruby-1.9.3-p327#a_proj/gems/bundler-1.3.4/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
/home/umar/.rvm/gems/ruby-1.9.3-p327#a_proj/gems/bundler-1.3.4/lib/bundler/runtime.rb:70:in `each'
/home/umar/.rvm/gems/ruby-1.9.3-p327#a_proj/gems/bundler-1.3.4/lib/bundler/runtime.rb:70:in `block in require'
/home/umar/.rvm/gems/ruby-1.9.3-p327#a_proj/gems/bundler-1.3.4/lib/bundler/runtime.rb:59:in `each'
/home/umar/.rvm/gems/ruby-1.9.3-p327#a_proj/gems/bundler-1.3.4/lib/bundler/runtime.rb:59:in `require'
/home/umar/.rvm/gems/ruby-1.9.3-p327#a_proj/gems/bundler-1.3.4/lib/bundler.rb:132:in `require'
/home/umar/myprojects/a_proj/config/application.rb:9:in `<top (required)>'
/home/umar/myprojects/a_proj/Rakefile:4:in `require'
/home/umar/myprojects/a_proj/Rakefile:4:in `<top (required)>'
/home/umar/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in `load'
/home/umar/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in `load_rakefile'
/home/umar/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:495:in `raw_load_rakefile'
/home/umar/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:78:in `block in load_rakefile'
/home/umar/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/home/umar/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:77:in `load_rakefile'
/home/umar/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:61:in `block in run'
/home/umar/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/home/umar/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:59:in `run'
/home/umar/gems/ruby/1.9.1/gems/rake-0.9.2/bin/rake:32:in `<top (required)>'
/home/umar/gems/ruby/1.9.1/bin/rake:19:in `load'
/home/umar/gems/ruby/1.9.1/bin/rake:19:in `<main>'
How can I fix this error.
You may need to install the required libraries (FreeImage and RubyInline) to make ImageScience work. (ImageScience RDoc)
By the way, I assume that you don't use mini_magick or rmagick because you don't have access to an imagemagick or graphicsmagick installation.
Perhaps you should try to use one of these two, because ImageScience has not been updated for a while.
Hope this helps.
➜ henryyan#hy-hp ~/work/blog/henryyan.github.com git:(master) ✗ ruby -rubygems -e 'require "jekyll/migrators/wordpress"; Jekyll::WordPress.process("wordpress", "root", "root")'
<internal:lib/rubygems/custom_require>:29:in `require': LoadError: no such file to load -- mysql (Sequel::AdapterNotFound)
from <internal:lib/rubygems/custom_require>:29:in `require'
from /var/lib/gems/1.9.1/gems/sequel-3.33.0/lib/sequel/adapters/mysql.rb:4:in `rescue in <top (required)>'
from /var/lib/gems/1.9.1/gems/sequel-3.33.0/lib/sequel/adapters/mysql.rb:1:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /var/lib/gems/1.9.1/gems/sequel-3.33.0/lib/sequel/core.rb:312:in `block in tsk_require'
from /var/lib/gems/1.9.1/gems/sequel-3.33.0/lib/sequel/core.rb:94:in `block in check_requiring_thread'
from <internal:prelude>:10:in `synchronize'
from /var/lib/gems/1.9.1/gems/sequel-3.33.0/lib/sequel/core.rb:91:in `check_requiring_thread'
from /var/lib/gems/1.9.1/gems/sequel-3.33.0/lib/sequel/core.rb:312:in `tsk_require'
from /var/lib/gems/1.9.1/gems/sequel-3.33.0/lib/sequel/database/connecting.rb:25:in `adapter_class'
from /var/lib/gems/1.9.1/gems/sequel-3.33.0/lib/sequel/database/connecting.rb:63:in `connect'
from /var/lib/gems/1.9.1/gems/sequel-3.33.0/lib/sequel/core.rb:141:in `connect'
from /var/lib/gems/1.9.1/gems/sequel-3.33.0/lib/sequel/core.rb:345:in `adapter_method'
from /var/lib/gems/1.9.1/gems/sequel-3.33.0/lib/sequel/core.rb:352:in `mysql'
from /var/lib/gems/1.9.1/gems/jekyll-0.11.2/lib/jekyll/migrators/wordpress.rb:15:in `process'
from -e:1:in `<main>'
You need to install the mysql gem:
gem install mysql
See the same error on this other SO answer: Wordpress to Jekyll script throwing error
I've created an app but when I start the rails server I'm getting the following output. Anyone point me in the right direction as to what I'm doing wrong please? I'm pulling my hair out!
=> Booting WEBrick
=> Rails 3.1.3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require': no such file to load -- openssl (LoadError)
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `load_dependency'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `load_dependency'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/session/cookie.rb:1
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `load_dependency'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `load_dependency'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/actionpack-3.1.3/lib/action_dispatch/middleware/session/cookie_store.rb:4
from /usr/local/lib/ruby/gems/1.8/gems/railties-3.1.3/lib/rails/application/configuration.rb:131:in `const_get'
from /usr/local/lib/ruby/gems/1.8/gems/railties-3.1.3/lib/rails/application/configuration.rb:131:in `session_store'
from /usr/local/lib/ruby/gems/1.8/gems/railties-3.1.3/lib/rails/application.rb:172:in `default_middleware_stack'
from /usr/local/lib/ruby/gems/1.8/gems/railties-3.1.3/lib/rails/application.rb:146:in `tap'
from /usr/local/lib/ruby/gems/1.8/gems/railties-3.1.3/lib/rails/application.rb:146:in `default_middleware_stack'
from /usr/local/lib/ruby/gems/1.8/gems/railties-3.1.3/lib/rails/engine.rb:446:in `build_middleware_stack'
from /usr/local/lib/ruby/gems/1.8/gems/railties-3.1.3/lib/rails/application/finisher.rb:37
from /usr/local/lib/ruby/gems/1.8/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/lib/ruby/gems/1.8/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `run'
from /usr/local/lib/ruby/gems/1.8/gems/railties-3.1.3/lib/rails/initializable.rb:55:in `run_initializers'
from /usr/local/lib/ruby/gems/1.8/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `each'
from /usr/local/lib/ruby/gems/1.8/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/local/lib/ruby/gems/1.8/gems/railties-3.1.3/lib/rails/application.rb:96:in `initialize!'
from /usr/local/lib/ruby/gems/1.8/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in `send'
from /usr/local/lib/ruby/gems/1.8/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /home/khussain/delete/config/environment.rb:5
from /home/khussain/delete/config.ru:4:in `require'
from /home/khussain/delete/config.ru:4
from /usr/local/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/builder.rb:51:in `instance_eval'
from /usr/local/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/builder.rb:51:in `initialize'
from /home/khussain/delete/config.ru:1:in `new'
from /home/khussain/delete/config.ru:1
If the above doesn't work, then it's probably because you don't have a .Gemfile ?
This looks like a gem is missing (openssl), without seeing the code I'm not sure.
The best thing would be to run:
bundle install
If this still doesn't work try adding openssl to your Gemfile and running bundle install again