rbenv

rbenv installed ruby 2.1.2 cannot load such file — zlib on MAC OSX 10.9.2

此生再无相见时 提交于 2019-12-18 17:57:11
问题 I'm install ruby 2.1.2 via rbenv, and rbenv is installed by homebrew on my MAC OSX 10.9.2, ruby global is successful set to 2.1.2, but when i try to run gem install, get some errors below. MacBook-Pro:~ user1$ gem install bundler ERROR: Loading command: install (LoadError) cannot load such file -- zlib ERROR: While executing gem ... (NoMethodError) undefined method `invoke_with_build_args' for nil:NilClass How to solve it, does anyone faced same problems before? 回答1: You need to install the

Moving to rbenv breaks passenger (nginx)

。_饼干妹妹 提交于 2019-12-18 11:17:06
问题 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

Rails 5.2.0 with Ruby 2.5.1 console - `warning:` `already` initialized constant FileUtils::VERSION

Deadly 提交于 2019-12-18 10:48:09
问题 I'm currently experiencing an issue with my new rails application, more specifically: Rails 5.2.0 Ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17] rvm 1.29.4 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io] When I run rails c , it produces a warning links to fileutils gem as the following: `/usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/fileutils.rb:90:` `warning:` `already` initialized constant FileUtils::VERSION /usr/local/lib/ruby/gems/2.5.0/gems

Rails 5.2.0 with Ruby 2.5.1 console - `warning:` `already` initialized constant FileUtils::VERSION

浪子不回头ぞ 提交于 2019-12-18 10:47:55
问题 I'm currently experiencing an issue with my new rails application, more specifically: Rails 5.2.0 Ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17] rvm 1.29.4 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io] When I run rails c , it produces a warning links to fileutils gem as the following: `/usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/fileutils.rb:90:` `warning:` `already` initialized constant FileUtils::VERSION /usr/local/lib/ruby/gems/2.5.0/gems

The command rbenv install is missing

我只是一个虾纸丫 提交于 2019-12-18 10:01:10
问题 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

Having trouble installing any ruby 1.9.x (with rbenv) on mac osx due to psych YAML parse errors

*爱你&永不变心* 提交于 2019-12-18 09:24:05
问题 I tried to get rvm uninstalled in order to use rbenv on my Mac. Everything works fine until ruby comes into play.. when using rbenv install 1.9.3-p194 it compiles it correctly, but after that I'd like to install bundler.. this produces the following error computer:~ computer$ gem install bundler /Users/computer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/psych.rb:203:in `parse': (<unknown>): mapping values are not allowed in this context at line 1 column 34 (Psych::SyntaxError) from /Users

How do you uninstall rbenv on OSX?

社会主义新天地 提交于 2019-12-17 18:25:43
问题 How do you uninstall rbenv on OSX? My version of rbenv is messed up, and brew uninstall rbenv isn't working because brew relies on ruby. 回答1: I took these steps to successfully get rid of rbenv on my mac running El Capitan (10.11.4). Rbenv is a major cause of Failed to build gem native extension errors from my experience. Remove using brew: brew remove rbenv Delete .rbenv directory: rm -rf ~/.rbenv Open .bash_profile file and delete any lines with rbenv in them: vi ~/.bash_profile Open

How do RVM and rbenv actually work?

二次信任 提交于 2019-12-17 14:59:16
问题 I am interested in how RVM and rbenv actually work. Obviously they swap between different versions of Ruby and gemsets, but how is this achieved? I had assumed they were simply updating symlinks, but having delved into the code (and I must admit my knowledge of Bash is superficial) they appear to be doing more than this. 回答1: Short explanation: rbenv works by hooking into your environment's PATH . The concept is simple, but the devil is in the details; full scoop below. First, rbenv creates

Using rbenv install throws an error

风格不统一 提交于 2019-12-14 03:53:04
问题 I'm using Homebrew rbenv. brew doctor comes out fine. rbenv install 2.0.0-p451 gives the following error message: user$ rbenv install 2.0.0-p451 Downloading ruby-2.0.0-p451.tar.gz... -> http://dqw8nmjcqpjn7.cloudfront.net/9227787a9636551f1749ee8394b5ffe5 Installing ruby-2.0.0-p451... BUILD FAILED Inspect or clean up the working tree at /var/folders/4h/ty8nj6c144b5cmhcrt0hd3cw0000gn/T/ruby-build.20140501101240.6245 Results logged to /var/folders/4h/ty8nj6c144b5cmhcrt0hd3cw0000gn/T/ruby-build

ERROR rbenv: 2.1.2 is not installed or not found

空扰寡人 提交于 2019-12-14 03:21:33
问题 I'm trying to deploy my Rails app project to my Digital Ocean vps using this guide. When it says: cap production deploy:check I get a error: DEBUG [8906f2ab] Running /usr/bin/env [ ! -d ~/.rbenv/versions/2.1.2 ] on 178.62.204.53 DEBUG [8906f2ab] Command: [ ! -d ~/.rbenv/versions/2.1.2 ] DEBUG [8906f2ab] Finished in 1.320 seconds with exit status 0 (successful). ERROR rbenv: 2.1.2 is not installed or not found in ~/.rbenv/versions/2.1.2 I ran: rbenv install 2.1.2 Which resulted in: Downloading