rbenv

Rails is not using my global Ruby version

蓝咒 提交于 2019-12-01 04:41:52
I want to use Rails with Ruby 2.1.0, but it's using Ruby 1.9.3 (the system's version). I'm using rbenv to manage my Ruby versions. My steps were something along the lines of: $ rbenv install 2.1.0 $ rbenv global 2.1.0 $ sudo gem install rails -v 4.0.2 $ rbenv rehash $ rbenv versions system * 2.1.0 (set by /home/dennis/.rbenv/version) $ ruby -v ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux] $ rails new app && cd app $ rails server Rails is using is Ruby 1.9.3 (x86_64-linux), according to localhost:3000/rails/info/properties . A log message from rails server gives: INFO ruby 1.9.3 (2012

Rails is not using my global Ruby version

做~自己de王妃 提交于 2019-12-01 01:28:10
问题 I want to use Rails with Ruby 2.1.0, but it's using Ruby 1.9.3 (the system's version). I'm using rbenv to manage my Ruby versions. My steps were something along the lines of: $ rbenv install 2.1.0 $ rbenv global 2.1.0 $ sudo gem install rails -v 4.0.2 $ rbenv rehash $ rbenv versions system * 2.1.0 (set by /home/dennis/.rbenv/version) $ ruby -v ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux] $ rails new app && cd app $ rails server Rails is using is Ruby 1.9.3 (x86_64-linux), according

rbenv install ruby BUILD FAILED

不问归期 提交于 2019-12-01 00:54:37
问题 I'm quite new to rbenv let alone ruby and having some difficulty diagnosing the following installation failure: rbenv install 2.0.0-p0 Downloading yaml-0.1.6.tar.gz... -> http://dqw8nmjcqpjn7.cloudfront.net/5fe00cda18ca5daeb43762b80c38e06e Installing yaml-0.1.6... Installed yaml-0.1.6 to /Users/Haani/.rbenv/versions/2.0.0-p0 Downloading ruby-2.0.0-p0.tar.gz... -> http://dqw8nmjcqpjn7.cloudfront.net/50d307c4dc9297ae59952527be4e755d Installing ruby-2.0.0-p0... BUILD FAILED Inspect or clean up

Can't install RMagick with rbenv

余生颓废 提交于 2019-11-30 12:45:05
I'm using rbenv on my Ubuntu 10.04 server and I already installed ImageMagick, but I can't get RMagick to install successfully. I get the following error message Can't install RMagick 2.13.1. Can't find MagickWand.h Any ideas? Thanks! You need to install the development headers for libmagickwand like so: apt-get install libmagickwand-dev 来源: https://stackoverflow.com/questions/9855818/cant-install-rmagick-with-rbenv

Nokogiri error when running bundle install

浪尽此生 提交于 2019-11-30 12:38:09
问题 Trying to get a cloned Rails app running. When running bundle install I get this error: Using mini_portile (0.5.0) Installing nokogiri (1.6.0) Gem::InstallError: nokogiri requires Ruby version >= 1.9.2. An error occurred while installing nokogiri (1.6.0), and Bundler cannot continue. Make sure that `gem install nokogiri -v '1.6.0'` succeeds before bundling. But this is the output for rbenv version : › rbenv version 1.9.3-p429 (set by /Users/andrewguo/.rbenv/version) When running gem list I

Nokogiri error when running bundle install

孤街浪徒 提交于 2019-11-30 03:44:35
Trying to get a cloned Rails app running. When running bundle install I get this error: Using mini_portile (0.5.0) Installing nokogiri (1.6.0) Gem::InstallError: nokogiri requires Ruby version >= 1.9.2. An error occurred while installing nokogiri (1.6.0), and Bundler cannot continue. Make sure that `gem install nokogiri -v '1.6.0'` succeeds before bundling. But this is the output for rbenv version : › rbenv version 1.9.3-p429 (set by /Users/andrewguo/.rbenv/version) When running gem list I get: . . . mini_portile (0.5.0) minitest (2.5.1) multi_json (1.7.7) nokogiri (1.6.0) I've been racking my

Moving to rbenv breaks passenger (nginx)

情到浓时终转凉″ 提交于 2019-11-30 02:26:43
I moved from RVM to rbenv on my production server. I uninstalled rvm using "rvm implode" and installed rbenv, ruby 1.9.2 , rails, passenger and nginx-module. I have not modified my originlal nginx.conf apart from changing the passenger_root as follows: 1st Try: passenger_root /root/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/passenger-3.0.9; passenger_ruby /root/.rbenv/versions/1.9.2-p290/bin/ruby; 2nd Try: passenger_root /root/.rbenv/shims/passenger; passenger_ruby /root/.rbenv/shims/ruby; Now, when I try to run my application I see the following error in error.log: [error] 1291#0:

What are the differences between rbenv, rvm, and chruby? [closed]

倖福魔咒の 提交于 2019-11-29 22:46:54
I'm new-ish to Ruby and Rails. I am looking for a purely objective list of features and advantages/disadvantages of each. In an effort to keep preference out of this, please refrain from answering unless you have used all 3 systems. There's three main options available today: rvm which is the most established, but also the most intrusive in terms of shell modifications. rbenv which is lower impact, and still works as well. chruby which purports to be even lighter than rbenv . Personally I prefer rbenv because it works well with Homebrew and doesn't mangle the shell environment as much, but

Copying gems from previous version of Ruby in rbenv

限于喜欢 提交于 2019-11-29 21:49:16
I installed Ruby 1.9.3-p286 with rbenv. Now, after installing a newer version (p327), obviously, it doesn't know anything about the GEMs installed with the previous version. Is it possible to copy Gems from that version to the newer one, so that it won't be needed to download them all again? Austin Ziegler I've been looking at this specifically from the perspective of upgrading and reinstalling without downloading. It's not trivial, and I recommend you do some cleanup of your gems to minimize the amount of processing/installation that needs to be done (e.g., I had five versions of ZenTest

The command rbenv install is missing

£可爱£侵袭症+ 提交于 2019-11-29 19:24:36
In Ubuntu 10.04 I just installed rbenv. The install command it is not present. rbenv 0.4.0-49-g8b04303 Usage: rbenv <command> [<args>] Some useful rbenv commands are: commands List all available rbenv commands local Set or show the local application-specific Ruby version global Set or show the global Ruby version shell Set or show the shell-specific Ruby version rehash Rehash rbenv shims (run this after installing executables) version Show the current Ruby version and its origin versions List all Ruby versions available to rbenv which Display the full path to an executable whence List all Ruby