Fresh Installs of RVM and Ruby 2.1.1 - dyld library/pathing error
It looks it's a temporary bug: https://twitter.com/mpapis/status/447926386314186752.
The disable-binary
option worked for me:
rvm reinstall 2.1.1 --disable-binary
EDIT - better solution
I see that some people still have this problem. Today much better solution is to update RVM like this:
rvm get stable
The problem was caused by RVM - it had some paths hard-coded into ruby binary versions. But this issue was already fixed and currently there's no need in compiling ruby locally. All you need is to get most recent RVM version.
Error when installing Ruby 2.1.3 with RVM
I had the same problem
rvm reinstall 2.1.3 --disable-binary
worked for me
(based on Fresh Installs of RVM and Ruby 2.1.1 - dyld library/pathing error).
rvm install ruby-1.8.7-p334 gives error You passed the --clang option and clang is not in your path
I believe the problem is this commit, specifically the changes to .rvm/scripts/env
.
Editing .rvm/scripts/manage
is one way to fix the problem (see flitzwald's answer for another way to do it):
20 __rvm_check_for_clang()
21 {
22 if [[ "${rvm_clang_flag}" -eq 1 ]] && ! command -v clang >/dev/null ; then
23 rvm_error "\nYou passed the --clang option and clang is not in your path. \nPlease try again or do not use --clang.\n"
24 return 1
25 fi
26 }
($rvm_clang_flag
is set to 1 when you call for it in .rvm/scripts/cli
. The error is being falsely tripped now because the flag's default settings and the test for the flag don't match up.)
Edit: Just a follow-up note. It was a bug; it's been fixed. If you come by here via Google, rvm get head && rvm reload
and all should be well again.
Typed in ruby -version in terminal and got an error after switching bootdisk from HD to SSD. How do I resolve this?
On OS X binaries (such as ruby) contain the full path of the shared libraries they use, so when you run ruby it's trying to load libruby from that path - it doesn't know that the entire volume has been mounted at a different path
The easiest thing is probably to reinstall ruby - rvm reinstall ruby-2.1.0
should do it
In theory you should be able to use install_name_tool
to rewrite the shared library paths in the binaries but it is almost certainly more trouble than it's worth.
I'm getting RVM is not a function error on Mac OS X, and no posted solutions work
The solution ended up being on the RVM Help & Support page, in the ".bash_profile not being loaded on OSX" section. It seems that the issue was that I had my terminal set to open with the "default login shell" and when I changed it to instead open with the command "/usr/bash" in Preferences/Setup, "source ~/.rvm/scripts/rvm" started working, and rvm is now being recognized as a function.
rails s - dyld: lazy symbol binding failed: Symbol not found: _rb_intern2
If you use rvm you should let it add its paths to $PATH rather than doing it yourself. As it is , it looks like you're half using rvm: you're picking up the gems installed for the rvm installed ruby, but since the rvm ruby paths are at the end of $PATH running ruby
is picking up a ruby installed via some other method (perhaps a system provided one)
As a result you've got ruby 1.8.7 trying to load an extension compiled for ruby 1.9.3, which doesn't work
Related Topics
Rails Mapping Array of Hashes Onto Single Hash
Finding What Is Common to Two Arrays
Generate and Publish Ruby Based Rest APIs Documentation
Ruby Mixins: Extend and Include
Generating Unique, Hard-To-Guess "Coupon" Codes
How to Remove Carriage Returns with Ruby
When Do We Use the "||=" Operator in Rails? What Is Its Significance
Puppet/Facter "Could Not Retrieve Fact Fqdn": How to Fix or Circumvent
What Does ':Location => ...' and 'Head :Ok' Mean in the 'Respond_To' Format Statement
Generate Unique Random String with Letters and Numbers in Lower Case
Accessing Config from Application.Rb in Controller (Rails 3)
What's the Opposite of Chr() in Ruby
Can Someone Explain Ruby's Use of Pipe Characters in a Block
Ruby/Rails - Models Named with Two Words (Naming Convention Issues)
How to Save Settings as a Hash in a External File
How to Initialize an Array Inside a Hash in Ruby