rbenv

rbenv installing ruby checksum mismatch osx

空扰寡人 提交于 2019-12-10 13:58:24
问题 I have successfully installed rbenv and ruby build on mountain lion. Running rbenv install 1.9.3-p392 ends with: checksum mismatch: ruby-1.9.3-p392.tar.gz (file is corrupt) expected f689a7b61379f83cbbed3c7077d83859, got 1cfc2ff433dbe80f8ff1a9dba2fd5636 The file that it is downloading seems fine, and if I download the file manually using curl, I get the same incorrect checksum. Has anybody encountered this before? How did they resolve it? 回答1: tl:dr; Download the ruby using your browser from

irb loading wrong ruby and gem path, using rbenv

别说谁变了你拦得住时间么 提交于 2019-12-09 23:31:54
问题 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

Bundler can't seem to find correct Ruby through Rbenv

巧了我就是萌 提交于 2019-12-08 16:51:43
问题 For years I used RVM as my Ruby version manager, but I want to switch to rbenv for its simplicity. However I'm finding some strange problems deploying. Here's where it seems to go wrong: # env RBENV_ROOT=\"/home/deploy/.rbenv\" PATH=\"/home/deploy/.rbenv/shims:/home/deploy/.rbenv/bin:$PATH\" /home/deploy/.rbenv/bin/rbenv exec bundle install --gemfile /domains/myapp.com/releases/20140119013611/Gemfile --path /domains/myapp.com/shared/bundle --deployment --without development test > rbenv:

Missing the OpenSSL lib?

末鹿安然 提交于 2019-12-08 08:01:51
问题 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

How do I add directories to PATH?

£可爱£侵袭症+ 提交于 2019-12-08 05:20:39
问题 Long story made short, I am trying to issue myself an SSL certificate using LetsEncrypt, and have recently installed rbenv to make this process easier. After installing rbenv, I check to see if everything checks out using curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash I than get this message saying that there are no versions of ruby installed. After trying to install ruby using the command "rbenv install 2.3.1" I get this error rbenv: no such command

Porting a Ruby/Rails/MRI app to JRuby

安稳与你 提交于 2019-12-08 04:37:32
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 Gemfile such that the MRI-relevant gems are picked up when the Ruby is MRI, and the JRuby-relevant gems are

Can't install a ruby version with rbenv on new Macbook Air mac osx 10.9.4

笑着哭i 提交于 2019-12-08 04:18:06
问题 I bought a new Macbook Air (July 2014) and I'm trying to restore some projects builts with Rails. The only actual Ruby is the System one. My config: OSX 10.9.4 Cxode installed : xcode-select version 2333. Homebrew 0.9.5 rbenv 0.4.0 ruby-build 20140702 The errors: My Stack trace when I try to install the last ruby (2.1.2): rbenv install 2.1.2 Downloading ruby-2.1.2.tar.gz... -> http://dqw8nmjcqpjn7.cloudfront.net/f22a6447811a81f3c808d1c2a5ce3b5f5f0955c68c9a749182feb425589e6635 Installing ruby

The `heroku' command exists in these Ruby versions:

不羁岁月 提交于 2019-12-07 11:49:38
问题 I'm having major issues with the heroku toolbelt. I'm using the cedar 14 stack and when I am trying to use a ruby version that isn't ruby 2.0.0-dev I get this error. rbenv: heroku: command not found The `heroku' command exists in these Ruby versions: 2.0.0-dev I need heroku to be working with ruby 1.9.3 and I don't think cedar 14 supports that version of ruby. Can someone explain first, why I am only allowed to use heroku with ruby 2.0.0-dev and also how I can install a older stack that

OpenSSL can't load library with gem rubygems or brew or bundle

℡╲_俬逩灬. 提交于 2019-12-07 11:19:55
问题 I use brew 0.9.5, which with I installed rbenv 0.4.0 and ruby-build for a ruby 2.1.2. Haven't touched anything since a while, and after few osx updates : bundle Gives : /usr/local/Cellar/rbenv/versions/2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require': dlopen(/usr/local/Cellar/rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/digest/sha1.bundle, 9): Library not loaded: @@HOMEBREW_PREFIX@@/opt/openssl/lib/libcrypto.1.0.0.dylib (LoadError) Referenced from:

rbenv installation permission denied

岁酱吖の 提交于 2019-12-07 05:06:38
问题 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