Searched before posting, I could not able to fix the issue and I'm getting the following library errors and I'm not sure how to fix this and I don't have Ruby background so be gentle with me.
on my machine I have openssl version is : LibreSSL 2.8.3
Any help please?
/Users/john.doe/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': dlopen(/Users/john.doe/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-darwin16/digest/sha1.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (LoadError)
Refere
nced from: /Users/john.doe/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-darwin16/digest/sha1.bundle
Reason: image not found - /Users/john.doe/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-darwin16/digest/sha1.bundle
from /Users/john.doe/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/john.doe/.rvm/gems/ruby-2.3.1/gems/bundler-1.15.4/lib/bundler/source/git.rb:4:in `<top (required)>'
from /Users/john.doe/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/john.doe/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/john.doe/.rvm/gems/ruby-2.3.1/gems/bundler-1.15.4/lib/bundler/lockfile_parser.rb:122:in `<class:LockfileParser>'
from /Users/john.doe/.rvm/gems/ruby-2.3.1/gems/bundler-1.15.4/lib/bundler/lockfile_parser.rb:14:in `<module:Bundler>'
from /Users/john.doe/.rvm/gems/ruby-2.3.1/gems/bundler-1.15.4/lib/bundler/lockfile_parser.rb:13:in `<top (required)>'
from /Users/john.doe/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/john.doe/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/john.doe/.rvm/gems/ruby-2.3.1/gems/bundler-1.15.4/lib/bundler/definition.rb:2:in `<top (required)>'
from /Users/john.doe/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/john.doe/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/john.doe/.rvm/gems/ruby-2.3.1/gems/bundler-1.15.4/lib/bundler.rb:129:in `definition'
from /Users/john.doe/.rvm/gems/ruby-2.3.1/gems/bundler-1.15.4/lib/bundler.rb:95:in `setup'
from /Users/john.doe/.rvm/gems/ruby-2.3.1/gems/bundler-1.15.4/lib/bundler/setup.rb:9:in `<top (required)>'
from /Users/john.doe/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:133:in `require'
from /Users/john.doe/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require'
from /Users/john.doe/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:in `require'
The problem is that Ruby can't find the version of OpenSSL that it was compiled with. Reinstall OpenSSL (through whatever means you care to, e.g., brew install openssl), then reinstall Ruby:
rvm uninstall 2.3.1
rvm install 2.3.1
Once Ruby has been reinstalled, install your gems:
bundle install
Then retry your operation.
Related
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!
I want to install CocoaPods, but I don't have an administrator account, meaning I can't use sudo. Can I install CocoaPods without sudo, and if I can what privileges do I loose?
Update
I tried gem install cocoapods --user-install and I got this output:
/usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/yaml.rb:4: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/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': dlopen(/usr/local/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-14/2.2.0/psych-2.0.13/psych.bundle, 9): Library not loaded: /usr/local/lib/libruby.2.2.0.dylib (LoadError)
Referenced from: /usr/local/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-14/2.2.0/psych-2.0.13/psych.bundle
Reason: image not found - /usr/local/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-14/2.2.0/psych-2.0.13/psych.bundle
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/local/lib/ruby/gems/2.2.0/gems/psych-2.0.13/lib/psych.rb:1:in `<top (required)>'
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/yaml.rb:5:in `<top (required)>'
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems.rb:624:in `load_yaml'
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems/config_file.rb:328:in `load_file'
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems/config_file.rb:197:in `initialize'
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems/gem_runner.rb:74:in `new'
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems/gem_runner.rb:74:in `do_configuration'
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems/gem_runner.rb:39:in `run'
from /usr/local/bin/gem:21:in `<main>'
The other solution of installing RVM I looked into, but I had trouble installing it. (Maybe because I'm not an admin?)
Look at cocoapods documentation:
https://guides.cocoapods.org/using/getting-started.html#sudo-less-installation
I am trying to setup rhc tools on a newly installed Windows 8.1 Pro x64. I already have git, ruby and successfully installed the rhc gem.
The tutorial I used - https://developers.openshift.com/en/getting-started-windows.html#client-tools
I've used rhc tools on Ubuntu and never on Windows, and I have no idea what the error means.
Doing rhc setup shows the following error:
>rb --version
ruby 2.2.2p95 (2015-04-13 revision 50295) [x64-mingw32]
>git --version
git version 1.9.5.msysgit.1
>rhc setup
C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' : cannot load such file -- dl/import (LoadError)
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54 :in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/pageant.rb:1:in `<top (required)>'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/agent/socket.rb:5:in `<top (required)>'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/agent.rb:22:in `<top (required)>'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/key_manager.rb:4:in `<top (required)>'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/session.rb:4:in `<top (required)>'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh.rb:11:in `<top (required)>'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.3/lib/rhc/ssh_helpers.rb:18:in `<top (required)>'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.3/lib/rhc/wizard.rb:77:in `<class:Wizard>'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.3/lib/rhc/wizard.rb:7:in `<module:RHC>'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.3/lib/rhc/wizard.rb:6:in `<top (required)>'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.3/lib/rhc/commands/base.rb:4:in `<top (required)>'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.3/lib/rhc/commands/account.rb:2:in `<module:Commands>'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.3/lib/rhc/commands/account.rb:1:in `<top (required)>'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.3/lib/rhc/commands.rb:189:in `block in load'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.3/lib/rhc/commands.rb:188:in `each'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.3/lib/rhc/commands.rb:188:in `load'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.3/lib/rhc/cli.rb:36:in `start'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.3/bin/rhc:20:in `<top (required)>'
from C:/Ruby22-x64/bin/rhc:23:in `load'
from C:/Ruby22-x64/bin/rhc:23:in `<main>'
Edit:
The following post solves the problem - rhc setup gives error `no such file dl/import`
It seems that there is also a bug reported for this - https://bugzilla.redhat.com/show_bug.cgi?id=1201844
For windows:
gem install net-ssh -v 2.9.3.beta1
I have a lot of experience running Ruby on Windows, but finally I (and others) came up to conclusion that it's not possible to run some gems without errors on Windows at the moment.
You can run and install one gem, but you'll get an error in another gem. Finally I tired fixing them.
But good news is that you can use Vagrant + VirtualBox + Rails on Windows. You may want to read my blog post about that.
I was getting this problem too. you are using "Ruby 2.2.0". Please use 1.9.3 version instead. It'll work like a charm
I installed ruby 2.0.0 and rails 4.0.0 on my Opensuse but rails console doesn't work.
I have this error message:
/home/zellou_i/.rubies/ruby-2.0.0-p247/lib64/ruby/2.0.0/irb/completion.rb:9:in `require': cannot load such file -- readline (LoadError)
from /home/zellou_i/.rubies/ruby-2.0.0-p247/lib64/ruby/2.0.0/irb/completion.rb:9:in `<top (required)>'
from /home/zellou_i/.gem/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/console.rb:3:in `require'
from /home/zellou_i/.gem/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/console.rb:3:in `<top (required)>'
from /home/zellou_i/.gem/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:53:in `require'
from /home/zellou_i/.gem/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:53:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
I don't understand, I installed readline but he can't load it.
Ruby needs to be compiled with readline-support. Make sure you install libreadline6 and its dev headers (debian-specific packages, adapt to suse) and then recompile your ruby.
I just installed ruby using homebrew and performed a gem install of rails.
While it says that rails has been installed, when i type in rails on terminal i get the following output :
/Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require': dlopen(/Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/x86_64-darwin11.4.0/digest/md5.bundle, 9): Library not loaded: /opt/local/lib/libcrypto.1.0.0.dylib (LoadError)
Referenced from: /Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/x86_64-darwin11.4.0/digest/md5.bundle
Reason: image not found - /Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/x86_64-darwin11.4.0/digest/md5.bundle
from /Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/moveablecode/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/generators/app_base.rb:1:in `<top (required)>'
from /Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/moveablecode/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/generators/rails/app/app_generator.rb:1:in `<top (required)>'
from /Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/moveablecode/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands/application.rb:24:in `<top (required)>'
from /Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/moveablecode/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/cli.rb:15:in `<top (required)>'
from /Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/moveablecode/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/moveablecode/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/bin/rails:7:in `<top (required)>'
from /Users/moveablecode/.rvm/gems/ruby-1.9.3-p392/bin/rails:19:in `load'
from /Users/moveablecode/.rvm/gems/ruby-1.9.3-p392/bin/rails:19:in `<main>'
from /Users/moveablecode/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `eval'
from /Users/moveablecode/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `<main>'
Any solution to fix these errors?
try to use railsinstaller. download it from http://railsinstaller.org/
and follow steps from http://pragmaticstudio.com/blog/2010/9/23/install-rails-ruby-mac it will more helpful for you.This is easiest way to install rails