rbenv

bundle install and ruby versions?

自闭症网瘾萝莉.ら 提交于 2019-12-24 14:03:57
问题 I'm using rbenv to set the ruby version. ruby -v produces the expected 1.9.3 I can do gem install paperclip without a problem. However, when I do bundle install it says: Installing paperclip (3.1.2) Gem::InstallError: paperclip requires Ruby version >= 1.9.2. An error occured while installing paperclip (3.1.2), and Bundler cannot continue. Make sure that `gem install paperclip -v '3.1.2'` succeeds before bundling. but, ruby -v says I'm running 1.9.3. Is bundler runnign as sudo? Have anyone

switched from rbenv from rvm and now not able to rails s. can't activate bundler-1.12.5, already activated bundler-1.13.0.rc.1 (Gem::LoadError)

≡放荡痞女 提交于 2019-12-24 07:01:04
问题 FIRST ERROR: `check_version_conflict': can't activate bundler-1.12.5, already activated bundler-1.13.0.rc.1 (Gem::LoadError) TURNED INTO THIS ERROR: /Users/phillipjones/workspace/messengerApp/vendor/bundle/gems/sqlite3-1.3.11/lib/sqlite3.rb:6:in `require': dlopen(/Users/phillipjones/workspace/messengerApp/vendor/bundle/gems/sqlite3-1.3.11/lib/sqlite3/sqlite3_native.bundle, 9): Library not loaded: /Users/phillipjones/.rvm/rubies/ruby-2.3.1/lib/libruby.2.3.0.dylib (LoadError) Referenced from:

Docker container knows rbenv global but not ruby

自闭症网瘾萝莉.ら 提交于 2019-12-24 00:48:55
问题 When running my docker container it knows rbenv global. But when ever it try to find ruby via ruby or which ruby or whereis ruby I get nothing. It also doesn't recognize rails-api or gem . What is going on? Dockerfile FROM centos:6.6 RUN yum update -y RUN yum install git openssl-devel openssh-server sudo openssl readline-devel readline zlib-devel zlib libxml2-devel libxml2 libxslt-devel libxslt nginx tar gcc libaio libaio-devel -y RUN rpm -Uvh https://opscode-omnibus-packages.s3.amazonaws.com

how to install gems for rbenv, using Ansible

对着背影说爱祢 提交于 2019-12-23 05:28:00
问题 Using Ansible, how can I use the gem (or other) module to install a gem (in this case, bundler) such that I can run the following command without error? deployer@boxes-vm:~$ ~/.rbenv/bin/rbenv exec bundle install rbenv: bundle: command not found 回答1: Well, you can always use the bundle from the shims directory command: ${HOME}/.rbenv/shims/bundle install --deployment 来源: https://stackoverflow.com/questions/23133850/how-to-install-gems-for-rbenv-using-ansible

Building Ruby 1.9.3 on Lion with Xcode 4.2 using ./configure --with-gcc=clang

元气小坏坏 提交于 2019-12-23 05:19:08
问题 My environment: Mac OS X v10.7.2 with Xcode 4.2.1 I am trying to build ruby 1.9.3 on Lion with Xcode 4.2.1. I understand there's an issue with the llvm-based gcc compiler that comes with Xcode 4.2.1. But I'm trying to work around it by following these instructions, http://goo.gl/Sc39g. I was able to get a little farther along, but then ran into these 2 problems: #error Please add -D_FILE_OFFSET_BITS=64 to your compile flags! fatal error: 'sys/statfs.h' file not found The complete configure

How to install ruby system-wide using rbenv

£可爱£侵袭症+ 提交于 2019-12-23 03:59:32
问题 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

Porting a Ruby/Rails/MRI app to JRuby

六眼飞鱼酱① 提交于 2019-12-23 02:36:07
问题 I have a Ruby/Rails devvelopment environment using rbenv, MRI Ruby (1.9.2-p290), rails 3.0.9, and SQLite3. I would like to port it to JRuby, but do it such that I don't have to do anything more than run "rbenv local jruby-1.6.4" and "rails server" in the root directory of the Rails application to use it with JRuby, and "rbenv local 1.9.2-p290" and "rails serer" to use it with MRI Ruby. I am aware that the gems to access SQLite are different for Ruby versus JRuby, but how do you write the

I can't install therubyracer in Arch Linux x64

梦想的初衷 提交于 2019-12-22 10:52:33
问题 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

I'm using rbenv, so why are there two Gem paths on my system? (OS X Lion)

筅森魡賤 提交于 2019-12-21 07:24:29
问题 To clarify, I'm using rbenv to manage my ruby versions. I was under the impression that binaries are managed as shims in their respective ruby version directory. Here is what my system shows when I run gem environment (I'm excluding the irrelevant parts): - GEM PATHS: - /Volumes/Data/nathan/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1 - /Volumes/Data/nathan/.gem/ruby/1.9.1 Any reason for having two locations? Curious minds want to know. 回答1: I think I figured out the answer to this question

RVM equivalent for PHP?

柔情痞子 提交于 2019-12-20 08:21:39
问题 I can't seem to find a way to switch versions of PHP quickly. Is there something equivalent to ruby version manager for php? I need to switch between 5.3 and 5.2 on OS X. 回答1: For PHP alternatives to RVM and rbenv, you have phpbrew, phpenv and php-version. Please be aware that I am the author of php-version so of course I prefer it as I wrote it to scratch my own itch (I wanted something minimal with command completion); however, phpenv is quite good as well. You would do well to use either.