undefined symbol: SSLv2_method when running bundle install - ruby

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

Related

why does bundle install and Gem install bundler give me an openssl error when openssl is already installed?

I am having a problem where neither bundle install nor gem install bundler is working giving me the following problems:
Warning: the running version of Bundler (1.16.1) is older than the version that created the lockfile (1.17.2). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
/Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': dlopen(/Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/x86_64-darwin17/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib (LoadError)
Referenced from: /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/x86_64-darwin17/openssl.bundle
Reason: image not found - /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/x86_64-darwin17/openssl.bundle
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/openssl.rb:13:in `<top (required)>'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/security.rb:12:in `<top (required)>'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/package.rb:44:in `<top (required)>'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/dependency_installer.rb:4:in `<top (required)>'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/installer.rb:4:in `<top (required)>'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/cli/install.rb:65:in `run'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/cli.rb:224:in `block in install'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/settings.rb:136:in `temporary'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/cli.rb:223:in `install'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/cli.rb:27:in `dispatch'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/cli.rb:18:in `start'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/exe/bundle:30:in `block in <top (required)>'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/friendly_errors.rb:122:in `with_friendly_errors'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/exe/bundle:22:in `<top (required)>'
from ./bin/bundle:3:in `load'
from ./bin/bundle:3:in `<main>'
and when running gem install bundler
ERROR: Loading command: install (LoadError)
dlopen(/Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/x86_64-darwin17/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/x86_64-darwin17/openssl.bundle
Reason: image not found - /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/x86_64-darwin17/openssl.bundle
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
I have already tried to reinstall openssl as well as ruby and rvm and nothing has worked so far and as such would really appreciate if anyone would know how to fix this.
Cheers

manageiq install failing on step bundle install --without qpid

I'm trying to build and run manageiq from source by following theses instructions:
http://ctl.parkerfleming.com/tutorials/manageiq/install-manageiq-on-ubuntu-14-04-on-the-centurylink-cloud/
When I run the following step:
$ git clone https://github.com/ManageIQ/manageiq
$ cd manageiq/vmdb
$ bundle install --without qpid
I get this error:
eugene#3b4d8a92ac5d:~/manageiq/vmdb/manageiq/vmdb$ bundle install --without qpid
Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/home/eugene/manageiq/vmdb/manageiq/lib/Gemfile:1:in `eval_gemfile': Ruby versions less than 2.0 are unsupported! (RuntimeError)
from /home/eugene/manageiq/vmdb/manageiq/vmdb/Gemfile.global.rb:53:in `eval'
from /home/eugene/manageiq/vmdb/manageiq/vmdb/Gemfile.global.rb:53:in `include_gemfile'
from /home/eugene/manageiq/vmdb/manageiq/vmdb/Gemfile:4:in `eval_gemfile'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/dsl.rb:32:in `instance_eval'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/dsl.rb:32:in `eval_gemfile'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/dsl.rb:10:in `evaluate'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/definition.rb:25:in `build'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler.rb:154:in `definition'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/cli/install.rb:77:in `run'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/cli.rb:145:in `install'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/vendor/thor/command.rb:27:in `run'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/vendor/thor/invocation.rb:121:in `invoke_command'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/vendor/thor.rb:363:in `dispatch'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/vendor/thor/base.rb:440:in `start'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/cli.rb:9:in `start'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/bin/bundle:20:in `block in <top (required)>'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/bin/bundle:18:in `<top (required)>'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/bin/bundle:23:in `load'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/bin/bundle:23:in `<main>'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/bin/ruby_executable_hooks:15:in `eval'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/bin/ruby_executable_hooks:15:in `<main>'
What can I do to overcome this and finish manageiq install?

install jekyll on linux(fedora 20)

Everyone, I used sudo gem install jekyll to install jekyll on my Fedora 20 and got the following error. I've successfully installed ruby and rubygems, and it seems to me the jekyll has been installed. But when I enter jekyll serve, the pages won't be created and I got the similar message. I'm new to fedora and ruby, thanks for any help.
Successfully installed jekyll-2.1.0
/usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- json/pure (LoadError)
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/share/gems/gems/json-1.7.7/lib/json.rb:60:in `rescue in <module:JSON>'
from /usr/share/gems/gems/json-1.7.7/lib/json.rb:57:in `<module:JSON>'
from /usr/share/gems/gems/json-1.7.7/lib/json.rb:54:in `<top (required)>'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/text.rb:16:in `<top (required)>'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/code_object.rb:28:in `<class:CodeObject>'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/code_object.rb:26:in `<top (required)>'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/generator/markup.rb:59:in `<top (required)>'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/generator/darkfish.rb:6:in `<top (required)>'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/rdoc.rb:565:in `<top (required)>'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/rubygems_hook.rb:73:in `load_rdoc'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/rubygems_hook.rb:238:in `setup'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/rubygems_hook.rb:151:in `generate'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/rubygems_hook.rb:56:in `block in generation_hook'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/rubygems_hook.rb:55:in `each'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/rubygems_hook.rb:55:in `generation_hook'
from /usr/local/share/ruby/site_ruby/rubygems/request_set.rb:178:in `call'
from /usr/local/share/ruby/site_ruby/rubygems/request_set.rb:178:in `block in install'
from /usr/local/share/ruby/site_ruby/rubygems/request_set.rb:177:in `each'
from /usr/local/share/ruby/site_ruby/rubygems/request_set.rb:177:in `install'
from /usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:249:in `install_gem'
from /usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:291:in `block in install_gems'
from /usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:287:in `each'
from /usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:287:in `install_gems'
from /usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:202:in `execute'
from /usr/local/share/ruby/site_ruby/rubygems/command.rb:307:in `invoke_with_build_args'
from /usr/local/share/ruby/site_ruby/rubygems/command_manager.rb:167:in `process_args'
from /usr/local/share/ruby/site_ruby/rubygems/command_manager.rb:137:in `run'
from /usr/local/share/ruby/site_ruby/rubygems/gem_runner.rb:54:in `run'
from /bin/gem:21:in `<main>'
try to install ruby-devel by this -
sudo yum install ruby-devel
and the try to re install jekyll -
sudo gem install jekyll
And also make sure you have nodejs installed,
sudo yum install nodejs
This is a problem with your JSON parser. See cannot load such file -- json/pure in your stacktrace? You need to be able to successfully run gem install json or gem install json_pure before you can run Jekyll.

I can't run compass watch

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

Error when installing "ya2yaml" gem on Windows7, Ruby1.9.2, Rails3

Installing ya2yaml (0.30) c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:371:in `rescue in block in initialize_copy': ya2yaml-0.30 has
an invalid value for #cert_chain (Gem::FormatException)
from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:364:in `block in initialize_copy'
from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:360:in `each'
from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:360:in `initialize_copy'
from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:638:in `initialize_dup'
from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:638:in `dup'
from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:638:in `for_cache'
from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:746:in `to_ruby_for_cache'
from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:234:in `write_spec'
from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:175:in `install'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/source.rb:96:in `install'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/installer.rb:55:in `block in run'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/spec_set.rb:12:in `block in each'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/spec_set.rb:12:in `each'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/spec_set.rb:12:in `each'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/installer.rb:44:in `run'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/installer.rb:8:in `install'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/cli.rb:226:in `install'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/vendor/thor/task.rb:22:in `run'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/vendor/thor.rb:246:in `dispatch'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/vendor/thor/base.rb:389:in `start'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/bin/bundle:13:in `<top (required)>'
from c:/Ruby192/bin/bundle:19:in `load'
from c:/Ruby192/bin/bundle:19:in `<main>'
I tried to install it like this:
$ gem install ya2yaml --platform=ruby
ERROR: While executing gem ... (Gem::FormatException)
ya2yaml-0.30 has an invalid value for #cert_chain
But i got another error.
Update gem
gem update --system
I guess this should solve your problem
Error when installing "ya2yaml" gem on Windows7, Ruby1.9.2, Rails3
Hope it helps.

Resources