Closed wezm closed 8 years ago
Hi @wezm!
Can you please run $ rbenv global
?
If it is something different than 2.3.0
, try to temporarily set the global version to 2.3.0
and rebuild the crate.
$ rbenv global 2.3.0
It looks similar to this problem, I am looking for a solution.
Yep that's the issue. When I set the global version to 2.3.0
it compiles fine. (I normally have my global version set to system
)
I did some more looking into this. The issue seems to stem from rbenv not finding the .ruby-version
file when the build script invokes ruby. I was able to work around this without the need to change my global ruby by specifying the ruby version in the environment instead:
RBENV_VERSION=2.3.0 cargo build
Wow that's really good news!
Thank you for looking into this!
I'm having this issue with chruby. it doesn't have a global setting. :-\
I am experiencing the same issue as #1 but I have already built ruby with
--enable-shared
:Error:
Using
rustc 1.8.0 (db2939409 2016-04-11)
I note that in all the
-L
arguments to the compiler it includes"/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib"
, which is no doubt the issue — I want to it to find the currentrbenv
ruby. Do you have any suggestions on how to get it to pick up the right ruby?