rbenv

vendor/bundle and ruby version

我与影子孤独终老i 提交于 2019-12-13 16:30:49
问题 I want to know if I'm doing incorrectly with rbenv and bundler. I'm using rbenv and ruby 2.1.2, like so rbenv versions system * 2.1.2 (set by /home/deploy/cp/repo/.ruby-version) I run bundle install --deployment --without=development,test --path=vendor/bundle from /home/deploy/cp but get vendor/bundle/ruby/2.1.0 created with all my gems. Is there a versioning scheme I'm unaware of for bundler, or should I see a /home/deploy/cp/repo/vendor/bundle/ruby/2.1.2 dir? 回答1: I've noticed this too, I

rbenv & ruby-build not showing the same list of version

点点圈 提交于 2019-12-13 05:03:56
问题 I'm trying to install the latest ruby version (ie. 2.1.1) with rbenv. After upgrading brew, ruby-build and rbenv the available ruby versions differs. Executing: ruby-build --definitions gives me (only versions above 2.0): 2.0.0-dev 2.0.0-p0 2.0.0-p195 2.0.0-p247 2.0.0-p353 2.0.0-p451 2.0.0-preview1 2.0.0-preview2 2.0.0-rc1 2.0.0-rc2 2.1.0 2.1.0-dev 2.1.0-preview1 2.1.0-preview2 2.1.0-rc1 2.1.1 2.2.0-dev With RBenv: rbenv install -l gives me (only versions above 2.0): 2.0.0-dev 2.0.0-p0 2.0.0

staging server with rbenv passenger and rails

风格不统一 提交于 2019-12-13 02:18:36
问题 I have a staging server and I'd like to make it run both ruby1.8.7/Rails2 and ruby1.9.3/Rails3 application. The server was successfully set up with nginix rbenv ruby 1.8.7 passenger and rails 2. Now I want to add the rails3 application along with ruby1.9.3 but I wonder if I really can do that as I had to tell nginix which particular passenger to use in its nginx.conf. This setting passenger_root /home/rails_user/.rbenv/versions/1.8.7-p374/lib/ruby/gems/1.8/gems/passenger-4.0.24; passenger

Bundle failing on JRuby with “TypeError: can't convert Regexp into String”

时光毁灭记忆、已成空白 提交于 2019-12-13 01:20:05
问题 I've deployed a new server that has the exact same version of JRuby (1.7.22), Java (openjdk-7-jre-headless 7u51), and bundler as the other servers. Both servers are running Ubuntu 14.04, but the new one has some newer packages. I deployed the same version of the project using Capistrano to the new server. When Capistrano runs bundle (or when I do it myself), the following error and callstack are presented: TypeError: can't convert Regexp into String end_with? at org/jruby/RubyString.java:5281

Pow not working with Ruby 2.0 using RBENV

邮差的信 提交于 2019-12-12 21:02:42
问题 I installed Ruby 2.0.0-p247 via rbenv (ruby-build) and unfortunately my Pow.cx isn't working. Has anyone had this experience? I'm getting the following Pow Error starting application Your Rack app raised an exception when Pow tried to run it. ~/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' ~/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' ~/Code/sandwiches_app/config/boot.rb:6:in `<top (required)>' ~/.rbenv/versions/1

Why doesn't nokogiri install?

倾然丶 夕夏残阳落幕 提交于 2019-12-12 10:13:37
问题 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

rbenv issue: Your Ruby version is 1.9.3, but your Gemfile specified 2.2.0

妖精的绣舞 提交于 2019-12-12 05:27:17
问题 I have a problem with setting Ruby version in a unicorn start script. When I run start script in debug mode I have the following output. vagrant@vagrant-ubuntu-trusty-64:~$ sudo sh -x /etc/init.d/unicorn start + set -e + USAGE=Usage: /etc/init.d/unicorn <start|stop|restart|upgrade|rotate|force-stop> + USER=vagrant + APP_NAME=my_app + APP_ROOT=/vagrant + RAILS_ENV=production + export RBENV_ROOT=/home/vagrant/.rbenv + export PATH=/home/vagrant/.rbenv/bin:/home/vagrant/.rbenv/shims:/usr/local

How to configure Compass build with rbenv in Sublime Text 2?

人走茶凉 提交于 2019-12-12 03:31:05
问题 Trying to build a SASS file under OSX with rbenv and the default Compass build file results in: /bin/sh: compass: command not found [Finished in 0.2s with exit code 127] How to fix? 回答1: Add this to your ~/Library/Application Support/Sublime Text 2/Packages/Compass/Compass.sublime-build file: "osx": { "path": "/usr/local/bin:/Users/USERNAME/.rbenv/shims:$PATH" }, You may have to restart Sublime. 来源: https://stackoverflow.com/questions/13712801/how-to-configure-compass-build-with-rbenv-in

My ruby gems path is messed up after switching from RVM to rbenv?

点点圈 提交于 2019-12-11 23:16:02
问题 I made the switch from RVM to rbenv following this guideline and now I can use bundler and run pure ruby, but when I run bin/rails s , bin/rails g model ModelName , or rails g model ModelName I get the below error: Warning: Running `gem pristine --all` to regenerate your installed gemspecs (and deleting then reinstalling your bundle if you use bundle --path) will improve the startup performance of Spring. /Users/home/Development/blogger/vendor/bundle/gems/json-1.8.3/lib/json/ext/parser.bundle

Rbenv not rehashing correctly and making shims

房东的猫 提交于 2019-12-11 23:08:59
问题 The bottom line is, rbenv isn't making shims. I've exhausted ideas of what could be the problem. After a few days of banging my head against a wall to fix but no avail, I think it's time to ask for help. I'm attempting to make the switch from RVM to rbenv, so that could obviously be a factor here. Any ideas/help would be great. Here's what happens: [09:38] ~ $ gem install pry Fetching: pry-0.10.2.gem (100%) Successfully installed pry-0.10.2 1 gem installed [09:39] ~ $ rbenv rehash [09:40] ~ $