rbenv

rbenv passenger cannot load such file — bundler/setup

柔情痞子 提交于 2019-12-11 20:00:33
问题 My passenger is installed as a gem. Nginx is installed by passenger-install-nginx-module . There are 3 gemsets for ruby 2.1.1, the rubygemset rails4_1 is the correct one for this app. Other posts show similar issues(1, 2, 3), but none of them resolves my problem. [ 2014-09-29 14:29:17.1212 13182/7f32e5938700 Pool2/Implementation.cpp:287 ]: Could not spawn process for application /home/canoe/apps/app1: An error occured while starting up the preloader. Error ID: b57602d4 Error details saved to:

Bundler can't find a gem that I can install using gem install

情到浓时终转凉″ 提交于 2019-12-11 16:23:52
问题 I am developing two gems side-by-side, one that contains some pure ruby functionality and one with an interface for Rails. The Rails gem (rwanda-rails) depends on the pure Ruby gem (rwanda) with spec.add_runtime_dependency "rwanda" "~> 0.6.0" in the .gemspec. However, for some reason bundler can't find this new version -- although I can install it with gem install : 15:40 slack@kevin:~/rails/rwanda-rails[master]$ gem install rwanda Successfully installed rwanda-0.6.0 Parsing documentation for

BUG Segmentation fault ruby 2.0.0p481 (2014-05-08 revision 45883) x86_64-darwin13.2.0

那年仲夏 提交于 2019-12-11 12:48:06
问题 I receive an error when attempting to run rails s or rails c . I recently installed ruby and rails via homebrew and rbenv. When I run rails new project the app is successfully created. I then do bundle install in the appropriate directory and everything updates smoothly, when i then run rails s or rails c . The following errors come up: |14:48:23| ~ rails c /Users/jona/.rvm/gems/ruby-2.0.0-p481/gems/json-1.8.1/lib/json/ext/parser.bundle: [BUG] Segmentation fault ruby 2.0.0p481 (2014-05-08

Installing Ruby 2.3.1 on Mojave OSX with rbenv or rvm

吃可爱长大的小学妹 提交于 2019-12-11 08:34:49
问题 First off I am on OSX Mojave 10.14, I have previously upgraded it from 10.13. I bought it new with 10.13. I am trying to follow this tutorial: https://scotch.io/tutorials/build-a-restful-json-api-with-rails-5-part-one I want to make sure that I have the same environment setup using the same version of rails and ruby. When I try to use rbenv to change my version of ruby (currently 2.6.1) to 2.3.1 I use the following command: rbenv install 2.3.1 And I get the following error: file.c:23:10:

Errno::EACCES: Permission denied @ rb_sysopen error when running Bundle Install

a 夏天 提交于 2019-12-11 04:44:26
问题 When I run Bundle Install I get the following error: mark$ bundle install Fetching gem metadata from https://rubygems.org/........... Fetching version metadata from https://rubygems.org/... Fetching dependency metadata from https://rubygems.org/.. Resolving dependencies... Using builder 3.2.2 Using ffi 1.9.14 Using gherkin 4.0.0 Using cucumber-wire 0.0.1 Using diff-lcs 1.2.5 Using multi_json 1.11.2 Using multi_test 0.1.2 Using rubyzip 1.2.0 Using websocket 1.2.3 Using bundler 1.11.2 Using

Can't change rbenv global ruby version

China☆狼群 提交于 2019-12-11 03:46:46
问题 I switched from RVM to rbenv recently and I can't seem to switch between ruby versions even though 'rbenv versions' tells me I have the version I want to switch to. Here is what Im doing: ruby -v ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0] I would like to switch to 1.9.2-p290 so lets make sure I have it in my versions: ruby versions 1.8.7-p370 1.9.2-p290 1.9.3-p125 1.9.3-rc1 Ok great now that I see I have it lets try and change the global rbenv: rbenv global 1.9.2-p290 ruby

C Compiler cannot create Executables on Mac OS Mountain Lion

心不动则不痛 提交于 2019-12-11 03:26:20
问题 I've been through almost every page and all the tips don't fix the problem. I'm running Mountain Lion I've got Xcode, all the latest developer tools the latest GCC and everything. I am trying to set up rbenv and ruby-build. Everything seems to work but when I go to install a version of ruby it says that the c compiler doesn't work and that it can't create executables. The exact last lines of the log: checking for gawk... no checking for mawk... no checking for nawk... no checking for awk...

ruby - heroku: command not found

故事扮演 提交于 2019-12-10 17:47:23
问题 this question has been posted befour, but the answers haven't worked. I should proberley mention that i am completely new to ruby. i incountered the error while doing a tutorial here are the steps: [first_app (master)]$ gem install heroku I get Successfully installed heroku-2.24.0 but when i try [first_app (master)]$ heroku keys:add I get -bash: heroku: command not found i then tried a bunch uninstalling the gem updating bundle reinstalling it but that hasn't helped $ bundle exec heroku

Using rbenv with Docker

耗尽温柔 提交于 2019-12-10 15:34:59
问题 I am trying to setup rbenv with a Dockerfile, but this just fails on rbenv install . I do have ruby-build in there, it just doesn't seem to work. Relevant bits of the Dockerfile (largely lifted from https://gist.github.com/deepak/5925003): # Install rbenv RUN git clone https://github.com/sstephenson/rbenv.git /usr/local/rbenv RUN echo '# rbenv setup' > /etc/profile.d/rbenv.sh RUN echo 'export RBENV_ROOT=/usr/local/rbenv' >> /etc/profile.d/rbenv.sh RUN echo 'export PATH="$RBENV_ROOT/bin:$PATH"

Rbenv ruby 2.2.2 install fail Ubuntu 14.04

依然范特西╮ 提交于 2019-12-10 14:34:25
问题 I'm trying install ruby 2.2.2 with rbenv on server Ubuntu 14.04 with ssh. Error: Installing ruby-2.2.2... BUILD FAILED (Ubuntu 14.04 using ruby-build 20150928-2-g717a54c) Inspect or clean up the working tree at /tmp/ruby-build.20151021225325.5445 Results logged to /tmp/ruby-build.20151021225325.5445.log Last 10 log lines: 97% [943/967] sparc.c 97% [944/967] sprintf.c 97% [945/967] st.c 97% [946/967] strftime.c 97% [947/967] string.c 98% [948/967] struct.c 98% [949/967] symbol.c 98% [950/967]