rbenv

Error with Rails Edge/4 `require': cannot load such file — thread_safe

拈花ヽ惹草 提交于 2019-12-06 08:47:52
问题 Following ths instructions here for getting an app running off Rails Edge to test Rails 4: What is the best way to generate a Rails app using edge? and How to create Edge rails application? But running into this error: `require': cannot load such file -- thread_safe (LoadError) Using the command: rails new Edge --edge --skip-bundle --database=postgresql --skip-test-unit --skip-index-html A checkout of Rails master bin dir is on my path. I am using rbenv with ruby 1.9.3p327. I have cleared all

How to install gems without sudo on Mac OS X

不想你离开。 提交于 2019-12-06 05:22:24
问题 I've read numerous posts but none so far has done the trick. How can I, on OSX (El Capitan Beta) install a gem for my own user? Posts suggest specifying -user-install for example but I cannot call gem without sudo at all as it throws permission errors. I followed "Install gem as user on OSX 10.10 Yosemite" but still cannot call gem . I installed Homebrew, installed rbenv per the above guide, installed a version of Ruby with rbenv, checked it was loaded correctly, but the final step in the

I can't install therubyracer in Arch Linux x64

大城市里の小女人 提交于 2019-12-05 18:51:04
When I try to install therubyracer, I get the following error: Installing therubyracer (0.11.0) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /home/carlos/.rbenv/versions/1.9.3-p327/bin/ruby extconf.rb checking for main() in -lpthread... yes checking for v8.h... yes creating Makefile make compiling script.cc compiling v8.cc compiling backref.cc compiling value.cc compiling accessor.cc compiling trycatch.cc compiling primitive.cc compiling external.cc compiling date.cc compiling exception.cc compiling init.cc compiling template.cc

rbenv installation permission denied

拟墨画扇 提交于 2019-12-05 12:25:58
Hi all I'm trying to set up a dev environment and I've been following a tutorial via; Link to tutorial I'm not doing very well and have no real experience of terminal commands other than the most basic version control stuff. I followed the first link and when trying to run source ~/.bash_profile I got the error; mkdir: /usr/local/rbenv/shims: Permission denied mkdir: /usr/local/rbenv/versions: Permission denied Now every time I load terminal the error appears. Contents of bash_profile; export PATH=/usr/local/rbenv/bin:$PATH export RBENV_ROOT=/usr/local/rbenv eval "$(rbenv init -)" Any guidance

Trying to install a rails app with Capistrano 3 and rbenv

泪湿孤枕 提交于 2019-12-05 08:50:21
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 group :development do gem 'capistrano', github: 'capistrano/capistrano', ref: 'master' gem 'capistrano

rbenv: Permission Denied

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-05 07:02:03
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 cd "${path%/*}" local name="${path##*/}" path="$(resolve_link "$name" || true)" done pwd cd "$cwd" } if

rbenv continually generating vagrant shim

丶灬走出姿态 提交于 2019-12-05 04:46:54
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 use": ruby-build rbenv-gemset Until this issue is resolved in rbenv, you could do this: alias vagrant

irb loading wrong ruby and gem path, using rbenv

陌路散爱 提交于 2019-12-04 18:35:48
I started using rbenv for ruby version management and I'm finding that irb not loading the correct ruby version and gem version. Here are the details. irb Gem.path says: `>> Gem.path => ["/Users/Air/.gem/ruby/1.8", "/Library/Ruby/Gems/1.8", "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8"]` Now in irb if I type: puts $: `>> puts $: /Library/Ruby/Site/1.8 /Library/Ruby/Site/1.8/powerpc-darwin11.0 /Library/Ruby/Site/1.8/universal-darwin11.0 /Library/Ruby/Site /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/vendor_ruby/1.8 /System/Library

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

孤人 提交于 2019-12-04 18:14:44
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/lib/ruby/1.8/rubygems/installer.rb:163:in `install': factory_girl requires Ruby version >= 1.9.2. (Gem

Unicorn service upstart script throws “-su: bundle: command not found”

余生颓废 提交于 2019-12-04 14:46:52
I recently created a VPS on DigitalOcean to host a rails app. I followed their guide to setup Unicorn with my application. https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-unicorn-and-nginx-on-ubuntu-14-04 A problem occurred when I ran sudo service unicorn_appxyz start . The error given was -su: bundle: command not found I traced the init.d script and pasted the evaluated server start up command in terminal and it works fine when executed under the user joe (the user which rbenv is install and the owner of the app). The evaluated command is su - joe -c cd /home