rbenv

Unicorn service upstart script throws “-su: bundle: command not found”

偶尔善良 提交于 2020-01-01 14:36:09
问题 I recently created a VPS on DigitalOcean to host a rails app. I followed their guide to setup Unicorn with my application. https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-unicorn-and-nginx-on-ubuntu-14-04 A problem occurred when I ran sudo service unicorn_appxyz start . The error given was -su: bundle: command not found I traced the init.d script and pasted the evaluated server start up command in terminal and it works fine when executed under the user joe (the

rbenv and bundler: “bad interpreter: No such file or directory”

不问归期 提交于 2020-01-01 04:18:55
问题 I messed up my configuration. I am running Ubuntu 14.04 and had some issues when I tried to move from a project to an other. I tried to uninstall and reinstall rbenv and then installed Ruby 2.1.7 following this guide: https://gorails.com/setup/ubuntu/14.04. Now, when I run gem install bundler nothing happens and I can't install any gems. When I type bundler or bundler -v I see this: /usr/local/bin/bundler: /usr/bin/ruby1.9.1: bad interpreter: No such file or directory I spent many hours

Bundle install is using a different Ruby version?

北慕城南 提交于 2019-12-30 20:12:46
问题 I tried to install Ruby 2.0.0-p353 on Vagrant using knife-solo. When I logged in as root and vagrant, ruby -v returns Ruby 2.0.0-p353. However, when I run bundle install in a Rails project, the following statement is displayed: Your Ruby version is 1.8.7, but your Gemfile specified 2.0.0 The default version of Ruby is 1.8.7, so I think bundle install is referring to this. What should I do to solve this problem? $ cat site-cookbooks/ruby/recipes/default.rb group 'rbenv' do action :create

Bundle install is using a different Ruby version?

半世苍凉 提交于 2019-12-30 20:11:35
问题 I tried to install Ruby 2.0.0-p353 on Vagrant using knife-solo. When I logged in as root and vagrant, ruby -v returns Ruby 2.0.0-p353. However, when I run bundle install in a Rails project, the following statement is displayed: Your Ruby version is 1.8.7, but your Gemfile specified 2.0.0 The default version of Ruby is 1.8.7, so I think bundle install is referring to this. What should I do to solve this problem? $ cat site-cookbooks/ruby/recipes/default.rb group 'rbenv' do action :create

How do I ensure ruby gems are installed in right place to be executed by bundler?

六眼飞鱼酱① 提交于 2019-12-29 08:01:51
问题 I seem to be constantly having problems with getting the gems in the right place (and not needing to use sudo when installing them.) To address the sudo issue, I installed rbenv and then use that to install ruby 2.1.0 so that I had a separate one from Mac OSX system. Then I installed bundler. But when I install gems from a Gemfile with bundler, I cannot find them. Between all the steps I have taken, such as adding lines to my .bash_profile and so forth, I have the following, but really just

How do I ensure ruby gems are installed in right place to be executed by bundler?

白昼怎懂夜的黑 提交于 2019-12-29 08:01:11
问题 I seem to be constantly having problems with getting the gems in the right place (and not needing to use sudo when installing them.) To address the sudo issue, I installed rbenv and then use that to install ruby 2.1.0 so that I had a separate one from Mac OSX system. Then I installed bundler. But when I install gems from a Gemfile with bundler, I cannot find them. Between all the steps I have taken, such as adding lines to my .bash_profile and so forth, I have the following, but really just

How to use correct ruby in vim ? How to modify $PATH in VIM?

流过昼夜 提交于 2019-12-29 03:39:07
问题 I use plain Vim with ruby support on Lion (installed by gist). I am using ruby with rbenv so my path looks like /users/me/.rbenv/shims:..... From within vim the path is :!echo $PATH > usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/fb/.rbenv/shims:.... Even I can create and modify an environment variable: :let $PATH = "/bar:/foo" :!echo $PATH > /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/foo:/bar paths remains starting with /usr/bin. So how can I access my ruby

Library not loaded (libcrypto)

£可爱£侵袭症+ 提交于 2019-12-25 00:38:05
问题 After updating ruby and rubyenv packages I'm facing an error. The libcrypto library is not loaded. When executing the suggested command it seems that it is searching for openssl in ruby /Users/User/.rvm/rubies/ruby-2.4.1 . But on my system I use /usr/local/Cellar/ruby/2.6.5 . $ gem pristine executable-hooks --version 1.3.2 Error loading RubyGems plugin "/Users/User/.rvm/gems/ruby-2.4.1@global/gems/gem-wrappers-1.2.7/lib/rubygems_plugin.rb": dlopen(/Users/User/.rvm/rubies/ruby-2.4.1/lib/ruby/2

rake exit status: 139

不羁的心 提交于 2019-12-24 19:45:22
问题 I am following https://gorails.com/deploy/ubuntu/16.04 I am running : "bundle exec cap production deploy" and getting the following error: 01 $HOME/.rbenv/bin/rbenv exec bundle install --path /home/deploy/deploy_test1/shared/bundle --without development test --deployment --q… ✔ 01 deploy@107.170.84.18 3.251s 00:21 deploy:assets:precompile 01 $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile 01 /home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/activesupport-4.2.4/lib/active

Updating ruby version with Rbenv but gems apparently not updated

强颜欢笑 提交于 2019-12-24 19:26:25
问题 I have just updated Ruby from version 1.9.3-p448 to 1.9.3-p484 using rbenv on a Ubuntu Production server. The updating seems to be successful. Ruby version shows the latest version I just updated. However when I look at the gems for this version 1.9.3-p484 under the directory: .rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems . I only find a few gems in that directory. And when I looked at the directory of the previous version, there is a whole bunch of gems in there. Did I miss a step