rbenv

Trying to install a rails app with Capistrano 3 and rbenv

心不动则不痛 提交于 2019-12-07 05:06:04
问题 I have a VPS setup with Ruby 2.1.1 installed and the same version is installed locally. My dev machine running 14.04 Ubuntu reports ruby -v = ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux] and rbenv -v = rbenv 0.4.0-97-gfe0b243. I originally installed ruby on the server using knife solo but it seems like capistrano wants to take care of this. When I run cap staging deploy I get an error rbenv: cap: command not found The `cap' command exists in these Ruby versions: 2.1.0 Gemfile

Installing Rails on Mac OS fails with several errors

大城市里の小女人 提交于 2019-12-07 03:24:13
问题 I am trying to install Rails on my Mac OS v10.10.4 system, and it fails when I run brew install rbenv ruby-build . The error is: Error: Permission denied - /usr/local/etc/openssl Warning: Bottle installation failed: building from source. At the end of the process it says: installing man3/d2i_SSL_SESSION.3ssl i2d_SSL_SESSION.3ssl => d2i_SSL_SESSION.3ssl installing man3/ssl.3ssl Cannot create directory /usr/local/etc/openssl: Permission denied Here is the complete log of all what I tried during

rbenv: Permission Denied

送分小仙女□ 提交于 2019-12-07 03:05:47
问题 I was following along with Ryan's RailsCast Episode 339. I had installed rbenv and could run ruby -v . I exited my session, and when I tried to come back in (via su deployer from root , I got this error /home/deployer/.rbenv/bin/rbenv: line 20: cd: /root: Permission denied Here is the rbenv file: #!/usr/bin/env bash set -e [ -n "$RBENV_DEBUG" ] && set -x resolve_link() { $(type -p greadlink readlink | head -1) "$1" } abs_dirname() { local cwd="$(pwd)" local path="$1" while [ -n "$path" ]; do

rbenv continually generating vagrant shim

爷,独闯天下 提交于 2019-12-07 01:04:37
问题 I am using the latest vagrant with rbenv and various rubies. I am using the latest vagrant, which no longer uses a gem. When I execute a vagrant command I see the following error: rbenv: vagrant: command not found I have removed the old vagrant gem from all ruby environments BUT everytime I "cd" the vagrant shim is regenerated, meaning vagrant stops working until I rm the shim manually: rm /home/{user}/.rbenv/shims/vagrant Is there a way to force rbenv to stop this behaviour? rbenv plugins in

bundle uses wrong ruby version

余生长醉 提交于 2019-12-07 00:34:45
问题 I'm trying to run env RAILS_ENV=test bundle exec rake db:migrate and get the following error Your Ruby version is 2.1.7, but your Gemfile specified 2.2.3 ruby -v gives me ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin15] I'm using rbenv, if that matters. rbenv versions gives the following: system * 2.2.3 (set by /Users/thatsme/Projects/demoproject/.ruby-version) So I have no ruby 2.1.7 installed. Spring is not running and I've run rbenv rehash . Then bundler gem is installed. I'm

How to install ruby system-wide using rbenv

旧街凉风 提交于 2019-12-06 23:42:41
You may think this is a classic "global" command question, but it is not. I can set ruby globally by this: rbenv global 2.5.1 However this makes ruby2.5.1 global for all users but not for the whole system. When an application in same server want to call ruby or access/pipe ruby, they get command not found error. I believe we should have to install or symlink to /usr/bin or /usr/local/bin or something... I couldn't find anything regarding to this. How can I make selected ruby version to be seen to other applications? My only solution is to build ruby myself to system dir but this will conflict

Missing the OpenSSL lib?

馋奶兔 提交于 2019-12-06 17:03:33
I have been trying to install ruby 2.1.1 but when I run it in the terminal, this is what i get: $rbenv install 2.1.1 Downloading yaml-0.1.6.tar.gz... -> http://dqw8nmjcqpjn7.cloudfront.net/5fe00cda18ca5daeb43762b80c38e06e Installing yaml-0.1.6... Installed yaml-0.1.6 to /Users/nthulanemakgato/.rbenv/versions/2.1.1 Downloading ruby-2.1.1.tar.gz... -> http://dqw8nmjcqpjn7.cloudfront.net/e57fdbb8ed56e70c43f39c79da1654b2 Installing ruby-2.1.1... BUILD FAILED Inspect or clean up the working tree at /var/folders/tj/_bd6whds6lb7wtn2m8ylwx7h0000gp/T/ruby-build.20140427221824.34053 Results logged to

Bundle says gem is missing - but it's not?

橙三吉。 提交于 2019-12-06 14:29:18
问题 Background I am maintaining the content of a Ruby On Rails site, but I really have no experience with Rails. When trying to run the Rails server: rails s I get this: Could not find activesupport-3.2.0 in any of the sources Run bundle install to install missing gems I run bundle install Gem::InstallError: factory_girl requires Ruby version >= 1.9.2. An error occured while installing factory_girl (3.2.0), and Bundler cannot continue. Make sure that gem install factory_girl -v '3.2.0' succeeds

1.9.3 installed, error message factory_girl requires Ruby version >= 1.9.2

守給你的承諾、 提交于 2019-12-06 13:00:53
问题 I just installed rbenv with ruby 1.9.3 rbenv version 1.9.3-p327 (set by /Users/me/.rbenv/version) However, when I tried to run bundle update (inside a project that was created before rbenv was installed), I got an error message that factory_girl required at least ruby 1.9.2. See error message below If it's relevant, when I do gem --version, I see a reference to 1.8.23. gem --version 1.8.23 Error message Installing factory_girl (4.1.0) /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr

Why doesn't nokogiri install?

不想你离开。 提交于 2019-12-06 11:58:34
I'm having a devil of a time installing Nokogiri on Ubuntu 12.04. I use rbenv. $ gem install nokogiri -v '1.6.1' ERROR: While executing gem ... (Errno::EACCES) Permission denied - /home/deploy/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.1/.autotest $ sudo gem install nokogiri -v '1.6.1' ERROR: Error installing nokogiri: nokogiri requires Ruby version >= 1.9.2. $ rbenv sudo gem install nokogiri -v '1.6.1' Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /home/deploy/.rbenv/versions/2.0.0