I can't run compass watch - ruby

When I try I get these errors:
/Users/ivan/.rvm/gems/ruby-2.0.0-p451#global/gems/bundler-1.6.1/lib/bundler/resolver.rb:352:in `resolve': Could not find gem 'rb-fchange (>= 0) ruby' in the gems available on this machine. (Bundler::GemNotFound)
from /Users/ivan/.rvm/gems/ruby-2.0.0-p451#global/gems/bundler-1.6.1/lib/bundler/resolver.rb:165:in `start'
from /Users/ivan/.rvm/gems/ruby-2.0.0-p451#global/gems/bundler-1.6.1/lib/bundler/resolver.rb:129:in `resolve'
from /Users/ivan/.rvm/gems/ruby-2.0.0-p451#global/gems/bundler-1.6.1/lib/bundler/definition.rb:203:in `resolve'
from /Users/ivan/.rvm/gems/ruby-2.0.0-p451#global/gems/bundler-1.6.1/lib/bundler/definition.rb:133:in `specs'
from /Users/ivan/.rvm/gems/ruby-2.0.0-p451#global/gems/bundler-1.6.1/lib/bundler/definition.rb:178:in `specs_for'
from /Users/ivan/.rvm/gems/ruby-2.0.0-p451#global/gems/bundler-1.6.1/lib/bundler/runtime.rb:13:in `setup'
from /Users/ivan/.rvm/gems/ruby-2.0.0-p451#global/gems/bundler-1.6.1/lib/bundler.rb:127:in `setup'
from /Users/ivan/.rvm/gems/ruby-2.0.0-p451#global/gems/bundler-1.6.1/lib/bundler.rb:132:in `require'
from /Users/ivan/.rvm/gems/ruby-2.0.0-p451/gems/compass-0.12.6/bin/compass:26:in `<top (required)>'
from /Users/ivan/.rvm/gems/ruby-2.0.0-p451/bin/compass:23:in `load'
from /Users/ivan/.rvm/gems/ruby-2.0.0-p451/bin/compass:23:in `<main>'
from /Users/ivan/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:15:in `eval'
from /Users/ivan/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:15:in `<main>'
Which file I need to edit to detect the gem I install?

I fixed it. RVM is working the only problem be I need to go the folder project and type: bundle install

Related

rubocop will not run getting errors related to cookstyle

I am getting this when I run a barebones rubocop.
gem list | egrep 'rubocop|cookstyle'
cookstyle (7.10.0)
rubocop (1.12.1, 1.12.0)
rubocop-ast (1.4.1)
rubocop-performance (1.10.2)
The error follows upon running rubocop with no parameters:
Unable to activate cookstyle-7.10.0, because rubocop-1.12.1 conflicts with rubocop (= 1.12.0)
/Users/stuartcracraft/.rvm/rubies/ruby-2.5.9/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:2298:in `raise_if_conflicts'
/Users/stuartcracraft/.rvm/rubies/ruby-2.5.9/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1415:in `activate'
/Users/stuartcracraft/.rvm/rubies/ruby-2.5.9/lib/ruby/site_ruby/2.5.0/rubygems.rb:224:in `rescue in try_activate'
/Users/stuartcracraft/.rvm/rubies/ruby-2.5.9/lib/ruby/site_ruby/2.5.0/rubygems.rb:217:in `try_activate'
/Users/stuartcracraft/.rvm/rubies/ruby-2.5.9/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:123:in `rescue in require'
/Users/stuartcracraft/.rvm/rubies/ruby-2.5.9/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:34:in `require'
/Users/stuartcracraft/.rvm/gems/ruby-2.5.9/gems/rubocop-1.12.1/lib/rubocop/config_loader_resolver.rb:17:in `block (2 levels) in resolve_requires'
/Users/stuartcracraft/.rvm/gems/ruby-2.5.9/gems/rubocop-1.12.1/lib/rubocop/config_loader_resolver.rb:13:in `each'
/Users/stuartcracraft/.rvm/gems/ruby-2.5.9/gems/rubocop-1.12.1/lib/rubocop/config_loader_resolver.rb:13:in `block in resolve_requires'
/Users/stuartcracraft/.rvm/gems/ruby-2.5.9/gems/rubocop-1.12.1/lib/rubocop/config_loader_resolver.rb:12:in `tap'
/Users/stuartcracraft/.rvm/gems/ruby-2.5.9/gems/rubocop-1.12.1/lib/rubocop/config_loader_resolver.rb:12:in `resolve_requires'
/Users/stuartcracraft/.rvm/gems/ruby-2.5.9/gems/rubocop-1.12.1/lib/rubocop/config_loader.rb:45:in `load_file'
/Users/stuartcracraft/.rvm/gems/ruby-2.5.9/gems/rubocop-1.12.1/lib/rubocop/config_loader.rb:106:in `configuration_from_file'
/Users/stuartcracraft/.rvm/gems/ruby-2.5.9/gems/rubocop-1.12.1/lib/rubocop/config_store.rb:69:in `for_dir'
/Users/stuartcracraft/.rvm/gems/ruby-2.5.9/gems/rubocop-1.12.1/lib/rubocop/config_store.rb:48:in `for_pwd'
/Users/stuartcracraft/.rvm/gems/ruby-2.5.9/gems/rubocop-1.12.1/lib/rubocop/cli.rb:128:in `apply_default_formatter'
/Users/stuartcracraft/.rvm/gems/ruby-2.5.9/gems/rubocop-1.12.1/lib/rubocop/cli.rb:40:in `run'
/Users/stuartcracraft/.rvm/gems/ruby-2.5.9/gems/rubocop-1.12.1/exe/rubocop:13:in `block in <top (required)>'
/Users/stuartcracraft/.rvm/rubies/ruby-2.5.9/lib/ruby/2.5.0/benchmark.rb:308:in `realtime'
/Users/stuartcracraft/.rvm/gems/ruby-2.5.9/gems/rubocop-1.12.1/exe/rubocop:12:in `<top (required)>'
/Users/stuartcracraft/.rvm/gems/ruby-2.5.9/bin/rubocop:23:in `load'
/Users/stuartcracraft/.rvm/gems/ruby-2.5.9/bin/rubocop:23:in `<main>'
/Users/stuartcracraft/.rvm/gems/ruby-2.5.9/bin/ruby_executable_hooks:22:in `eval'
/Users/stuartcracraft/.rvm/gems/ruby-2.5.9/bin/ruby_executable_hooks:22:in `<main>'
I tried removing either rubocop version but got the same error.
I am trying to find a way to lint chef ruby code, hence the above attempt.
If anyone sees anything in the above errors or has another linter with a smoother
install, please let me know.
Thanks.
Stuart
Version conflicts are typically resolved with bundler. Try bundle exec rubocop.

'Jekyll Serve' Error

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.

Gem::ConflictError while running Rspec test cases

This question and answer might be simple however I thought it would be worth sharing.
I cloned the github repository https://github.com/mikel/mail.git and browsing the specs.
I just thought of running the specs inside the application so ran the command "rspec".
Error description
athi#localhost mail (master) $ rspec
Running Specs under Ruby Version 2.1.5
/Users/athi/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:2104:in `raise_if_conflicts': Unable to activate rspec-3.3.0, because rspec-core-3.4.0 conflicts with rspec-core (~> 3.3.0) (Gem::ConflictError)
from /Users/athi/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:1282:in `activate'
from /Users/athi/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems.rb:198:in `rescue in try_activate'
from /Users/athi/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems.rb:195:in `try_activate'
from /Users/athi/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:126:in `rescue in require'
from /Users/athi/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:39:in `require'
from /Users/athi/Documents/apps/github/mail/spec/spec_helper.rb:18:in `<top (required)>'
from /Users/athi/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/athi/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/athi/Documents/apps/github/mail/spec/mail/attachments_list_spec.rb:2:in `<top (required)>'
from /Users/athi/.rvm/gems/ruby-2.1.5/gems/rspec-core-3.4.0/lib/rspec/core/configuration.rb:1361:in `load'
from /Users/athi/.rvm/gems/ruby-2.1.5/gems/rspec-core-3.4.0/lib/rspec/core/configuration.rb:1361:in `block in load_spec_files'
from /Users/athi/.rvm/gems/ruby-2.1.5/gems/rspec-core-3.4.0/lib/rspec/core/configuration.rb:1359:in `each'
from /Users/athi/.rvm/gems/ruby-2.1.5/gems/rspec-core-3.4.0/lib/rspec/core/configuration.rb:1359:in `load_spec_files'
from /Users/athi/.rvm/gems/ruby-2.1.5/gems/rspec-core-3.4.0/lib/rspec/core/runner.rb:102:in `setup'
from /Users/athi/.rvm/gems/ruby-2.1.5/gems/rspec-core-3.4.0/lib/rspec/core/runner.rb:88:in `run'
from /Users/athi/.rvm/gems/ruby-2.1.5/gems/rspec-core-3.4.0/lib/rspec/core/runner.rb:73:in `run'
from /Users/athi/.rvm/gems/ruby-2.1.5/gems/rspec-core-3.4.0/lib/rspec/core/runner.rb:41:in `invoke'
from /Users/athi/.rvm/gems/ruby-2.1.5/gems/rspec-core-3.4.0/exe/rspec:4:in `<top (required)>'
from /Users/athi/.rvm/gems/ruby-2.1.5/bin/rspec:23:in `load'
from /Users/athi/.rvm/gems/ruby-2.1.5/bin/rspec:23:in `<main>'
from /Users/athi/.rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks:15:in `eval'
from /Users/athi/.rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks:15:in `<main>'
After a little search I found that the "bundle" is not initialised for this repository and the Gemfile.lock is missing.
So I just ran
bundle install
and it worked.
It installed the necessary gems and then I was able to run the specs properly.

undefined symbol: SSLv2_method when running bundle install

I'm getting this error when running bundler to install my gems. I've looked around and find no solution to it except installing the openssl pkg on rvm and reinstalling all rubies, doing so did not fix the issue, are there any other possible solutions?
This is the output I get running bundle install:
Fetching gem metadata from https://rubygems.org/.Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/openssl.so: undefined symbol: SSLv2_method - /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/openssl.so (LoadError)
from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/openssl.rb:17:in `<top (required)>'
from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/net/https.rb:22:in `<top (required)>'
from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/vendor/net/http/persistent.rb:447:in `ssl'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/vendor/net/http/persistent.rb:216:in `connection_for'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/vendor/net/http/persistent.rb:358:in `request'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/fetcher.rb:149:in `fetch'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/fetcher.rb:177:in `fetch_dependency_remote_specs'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/fetcher.rb:135:in `fetch_remote_specs'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/fetcher.rb:73:in `specs'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/source.rb:234:in `block in remote_specs'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/source.rb:232:in `each'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/source.rb:232:in `remote_specs'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/source.rb:165:in `fetch_specs'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/source.rb:70:in `specs'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/lazy_specification.rb:53:in `__materialize__'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/spec_set.rb:86:in `block in materialize'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/spec_set.rb:83:in `map!'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/spec_set.rb:83:in `materialize'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/definition.rb:113:in `specs'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/definition.rb:108:in `resolve_remotely!'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/installer.rb:81:in `run'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/installer.rb:14:in `install'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/cli.rb:230:in `install'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/vendor/thor/task.rb:27:in `run'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/vendor/thor.rb:275:in `dispatch'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/vendor/thor/base.rb:408:in `start'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/bin/bundle:14:in `block in <top (required)>'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/friendly_errors.rb:4:in `with_friendly_errors'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/bin/bundle:14:in `<top (required)>'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/bin/bundle:19:in `load'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/bin/bundle:19:in `<main>'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125/bin/ruby_noexec_wrapper:14:in `eval'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125/bin/ruby_noexec_wrapper:14:in `<main>'
I did the following and it fixed the issue:
$ source ~/.rvm/scripts/rvm
$ rvm pkg install zlib
$ rvm pkg install openssl
$ sudo apt-get install libreadline-dev
$ rvm pkg install readline
$ rvm install 1.9.3 --with-openssl-dir=$rvm_path/usr
$ gem install rails

Install passenger in CentOS with RVM and latest Ruby cause this error

I'm trying to install passenger-install-apache2-module but get this error:
[root#devserver redmine]# passenger-install-apache2-module
/usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
/usr/local/rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.1.4/lib/bundler/resolver.rb:287:in `resolve': Could not find gem 'rails (= 3.2.6) ruby' in the gems available on this machine. (Bundler::GemNotFound)
from /usr/local/rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.1.4/lib/bundler/resolver.rb:161:in `start'
from /usr/local/rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.1.4/lib/bundler/resolver.rb:128:in `block in resolve'
from /usr/local/rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.1.4/lib/bundler/resolver.rb:127:in `catch'
from /usr/local/rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.1.4/lib/bundler/resolver.rb:127:in `resolve'
from /usr/local/rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.1.4/lib/bundler/definition.rb:192:in `resolve'
from /usr/local/rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.1.4/lib/bundler/definition.rb:127:in `specs'
from /usr/local/rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.1.4/lib/bundler/environment.rb:27:in `specs'
from /usr/local/rvm/gems/ruby-1.9.3-p194#global/gems/rubygems-bundler-1.0.3/lib/rubygems-bundler/noexec.rb:41:in `candidate?'
from /usr/local/rvm/gems/ruby-1.9.3-p194#global/gems/rubygems-bundler-1.0.3/lib/rubygems-bundler/noexec.rb:60:in `setup'
from /usr/local/rvm/gems/ruby-1.9.3-p194#global/gems/rubygems-bundler-1.0.3/lib/rubygems-bundler/noexec.rb:75:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:9:in `<main>'
What I miss?
looks like passenger is in your Gemfile, you can fix it in few ways:
run bundle install
run NOEXEC=0 passenger-install-apache2-module
It seems not to be possible to run passenger-install-apache2-module in the Rails project folder. Go one folder up and try again. -Íris

Resources