rbenv

Building ruby with rbenv and ruby-build fails with undefined symbol: SSLv2_method

时间秒杀一切 提交于 2019-11-27 07:01:01
问题 I'm trying to install ruby 2.2.4 or 2.3.0 on my Synology DS215j which has an ARMv7 processor. I used optware-ng to install gcc, make, openssl, openssl-dev and zlib. I installed rbenv (version 1.0.0-19-g29b4da7) and the ruby-build plugin according to the instructions in the README. These are the package and their versions installed with optware-ng binutils - 2.25.1-1 gcc - 5.3.0-6 gconv-modules - 2.21-3 glibc-opt - 2.21-4 libc-dev - 2.21-1 libgmp - 6.0.0a-1 libmpc - 1.0.2-1 libmpfr - 3.1.3-1

Error Installing Atomic

戏子无情 提交于 2019-11-27 03:29:20
问题 I'm trying to install gems to my new Ruby project using bundle install. I've set the version of Ruby using rbenv on my OS X 10.8.4 box. I get the following error: An error occurred while installing atomic (1.1.13), and Bundler cannot continue. Make sure that `gem install atomic -v '1.1.13'` succeeds before bundling. Kikime:jazzcatalog curt$ gem install atomic Building native extensions. This could take a while... Successfully installed atomic-1.1.13 1 gem installed Kikime:jazzcatalog curt$

ruby script using rbenv in cron

断了今生、忘了曾经 提交于 2019-11-26 19:49:54
问题 I'm trying to run a ruby script using rbenv with cron. I know that I need to load rbenv in order to have the right ruby version loaded. I've tried options like this : */10 * * * * /bin/bash -c 'source $HOME/.bashrc; cd /data/app; ruby -v' >> /tmp/logfile.txt 2>&1 but as the session is not interactive, I'm not having the right ruby version. I've found example like this : 15 14 1 * * export BASH_ENV=/path/to/environment && /full/path/to/bash -c '/full/path/to/rvm_script.rb' It didn't work

Bundler not working with rbenv, could not find [gem]

不羁岁月 提交于 2019-11-26 19:02:25
问题 I've just made the switch from rvm to rbenv and I'm trying to use bundler for gem management. After running bundle install and trying to run a simple sinatra app ( ruby app.rb ), I get this: Could not find haml-3.1.4 in any of the sources Run `bundle install` to install missing gems. Running bundle install again had no effect. Also tried bundle update as suggested by another question response. This is my Gemfile: source "http://rubygems.org" gem "sinatra" gem "haml" This is what bundle show

How do you use multiple rails versions with rbenv?

天涯浪子 提交于 2019-11-26 18:52:49
问题 Is it possible to use multiple versions of rails using rbenv (e.g. 2.3 and 3.1)? This was easy with gemsets in rvm, but I'm wondering what the best way is to do it now that I've switched to rbenv (also, I'm looking for a way to do it without rbenv-gemset). 回答1: not sure if you got an answer to this, but I thought I'd offer what I did and it seemed to work. So once you get rbenv installed, and you use it to install a specific ruby version, you can install multiple versions of rails to for that

Rails 'parse_query' error on server in brand new app

柔情痞子 提交于 2019-11-26 17:18:39
问题 I have installed on OS X 10.10.3: homebrew, command line tools, then installed ruby using rbenv: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14] Rails 4.2.2 when I create a new app (with default sqlite database) and try to run it, it says: => Booting WEBrick => Rails 4.2.2 application starting in development on http://localhost:3000 => Run `rails server -h` for more startup options => Ctrl-C to shutdown server [2015-06-18 23:11:30] INFO WEBrick 1.3.1 [2015-06-18 23:11:30] INFO

rbenv not changing ruby version

纵饮孤独 提交于 2019-11-26 10:59:44
I installed rbenv according to the github directions. I am running OSX but I have tried this on a Ubuntu 12.04 VM and got the same results. The following is what i get in my terminal when I try to change ruby versions: rbenv versions * 1.9.3-p0 (set by /Users/user/.rbenv/version) 1.9.3-p125 rbenv global 1.9.3-p0 rbenv rehash ruby -v ruby 1.8.7 (2011-12-28 patchlevel 357) [universal-darwin11.0] which ruby /usr/bin/ruby Anyone have any ideas as to why rbenv isn't switching the ruby version like it thinks it is? Also there is no .rbenv file in the local directory that would be causing the ruby

Ruby Bundle Symbol not found: _SSLv2_client_method (LoadError)

蓝咒 提交于 2019-11-26 06:15:32
问题 I was doing attempting to do some updates to openssl using homebrew and I somehow managed to break everything. I can\'t do anything now, this is what I get when I try to do bundle install: $ bundle install /Users/asServer/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require\': dlopen(/Users/asServer/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle, 9): Symbol not found: _SSLv2_client_method (LoadError) Referenced from: /Users/asServer/

rbenv not changing ruby version

大城市里の小女人 提交于 2019-11-26 02:39:47
问题 I installed rbenv according to the github directions. I am running OSX but I have tried this on a Ubuntu 12.04 VM and got the same results. The following is what i get in my terminal when I try to change ruby versions: rbenv versions * 1.9.3-p0 (set by /Users/user/.rbenv/version) 1.9.3-p125 rbenv global 1.9.3-p0 rbenv rehash ruby -v ruby 1.8.7 (2011-12-28 patchlevel 357) [universal-darwin11.0] which ruby /usr/bin/ruby Anyone have any ideas as to why rbenv isn\'t switching the ruby version