rvm

Cannot execute /usr/bin/ruby: No such file or directory on ubuntu server using RVM

青春壹個敷衍的年華 提交于 2019-12-24 14:23:21
问题 I am trying to run rails app in production on Ubuntu server, but it shows message that something went wrong. And in apache logs i found this: An error occurred while starting up the preloader. It exited before signalling successful startup back to Phusion Passenger. Please read Raw process output: * ERROR * : Cannot execute /usr/bin/ruby: No such file or directory (2) Note that i am using rvm and my ruby path is different Using SSH everything works fine. 来源: https://stackoverflow.com

Can't install Nokogiri 1.4.3 gem

六月ゝ 毕业季﹏ 提交于 2019-12-24 13:20:54
问题 Can't install nokogiri 1.4.3 gem. Nokogiri 1.6.6.2 installs without a problem. Using latest RVM on Ubuntu. pm@sniegas:~$ gem install nokogiri -v '1.4.3' Fetching: nokogiri-1.4.3.gem (100%) Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /home/pm/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20150519-7580-2yzgsg.rb extconf.rb *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack

Get 60 error with curl -L https://get.rvm.io | bash -s

耗尽温柔 提交于 2019-12-24 13:15:15
问题 I can't seem to figure out how to run curl -L https://get.rvm.io | bash -s And not get an error. I have a mac osx mavericks and the error I get is this: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (60) SSL certificate problem: self signed certificate in certificate chain More details here: http://curl.haxx.se/docs/sslcerts.html curl performs SSL certificate verification by default, using

Is it a Bad Practice to Have Both a .rvmrc and a .ruby-version in a Ruby Project?

五迷三道 提交于 2019-12-24 12:54:02
问题 There are two Ruby projects I am currently working on which have both a .rvmrc and a .ruby-version file in their root dir. I use rvm to manage my Ruby versions in my local development environment, and have my own local .rvmrc files in my home directory's copy of various Ruby versions, so naturally I get the rvm warning when I change directory into these projects: You are using '.rvmrc', it requires trusting, it is slower and it is not compatible with other ruby managers, you can switch to '

Phusion Passenger memory consumption increase from 1.9.3 (system) to 2.1.2 (RVM) on Ubuntu

此生再无相见时 提交于 2019-12-24 10:46:33
问题 I have an Ubuntu system with 512MB physical RAM and 512MB swap. Running my four Rails 3.2.12 apps on Passenger 4.0.45 server (Apache module) using single-user (my user) RVM Ruby 2.1.2, it uses about 30% more memory than when I configure Passenger to use the older system (root) Ruby 1.9.3. That is the only difference in the Passenger config. This causes Passenger to move other applications to swap when one is accessed, which means each time a different application is accessed, it has to be

How do I upgrade a rails 3.2 app from ruby 1.9.3 to ruby 2.1.5 using rvm

血红的双手。 提交于 2019-12-24 10:30:13
问题 My Rails 3.2 / Ruby 1.9.3 app is using RVM. I want to upgrade to using ruby 2.1.5. I have used RVM to install Ruby 2.1.5 as well. So rvm list shows both 1.9.3 and 2.1.5 My project directory has a .rvmrc file specifying environment_id="ruby-1.9.3-p551@current_foogems" So I have a gemset named current_foogems How can I switch my project to use ruby 2.1.5? Do I copy the gemset? Create a new (empty) gemset? Given the jump in ruby version from 1.9.3 to 2.1.5, which may mean I should recompile gems

Trouble with mysql gem on osx 10.6.8

痞子三分冷 提交于 2019-12-24 09:06:40
问题 I'm updating my database from sqlite to mySQL (@mu is too short...I know. I know. I should have done it at the beginning) and running into a problem. Here's the process so far: Step 1: update database.yml and run rake db:schema:load as per this rake aborted! Please install the mysql adapter: `gem install activerecord-mysql-adapter` (mysql is not part of the bundle. Add it to Gemfile.) Step 2: run rvm @global do gem install mysql Fetching: mysql-2.9.1.gem (100%) Building native extensions.

Ruby installation problems

家住魔仙堡 提交于 2019-12-24 08:35:52
问题 I am using ubuntu 11.10 and I'm having troubles installing ruby. when I tried to install it it gave out this: Installing Ruby from source to: /usr/share/ruby-rvm/rubies/ruby-1.9.3-p125, this may take a while depending on your cpu(s)... ruby-1.9.3-p125 - #fetching ruby-1.9.3-p125 - #extracted to /usr/share/ruby-rvm/src/ruby-1.9.3-p125 (already extracted) Applying patch 'xcode-debugopt-fix-r34840' (located at /usr/share/ruby-rvm/patches/ruby/1.9.3/p125/xcode-debugopt-fix-r34840.diff) Error

switched from rbenv from rvm and now not able to rails s. can't activate bundler-1.12.5, already activated bundler-1.13.0.rc.1 (Gem::LoadError)

≡放荡痞女 提交于 2019-12-24 07:01:04
问题 FIRST ERROR: `check_version_conflict': can't activate bundler-1.12.5, already activated bundler-1.13.0.rc.1 (Gem::LoadError) TURNED INTO THIS ERROR: /Users/phillipjones/workspace/messengerApp/vendor/bundle/gems/sqlite3-1.3.11/lib/sqlite3.rb:6:in `require': dlopen(/Users/phillipjones/workspace/messengerApp/vendor/bundle/gems/sqlite3-1.3.11/lib/sqlite3/sqlite3_native.bundle, 9): Library not loaded: /Users/phillipjones/.rvm/rubies/ruby-2.3.1/lib/libruby.2.3.0.dylib (LoadError) Referenced from:

Switching rubies in shell script

痴心易碎 提交于 2019-12-24 05:54:09
问题 When executing a bash shell script I am using ruby 1.9.3. Then, within the script, I want to switch to JRub (I'm using rvm). I tried switching to JRuby by doing rvm use jruby within the script, but this didn't work, it said: RVM is not a function, selecting rubies with 'rvm use ...' will not work. You need to change your terminal emulator preferences to allow login shell. Sometimes it is required to use `/bin/bash --login` as the command. Please visit https://rvm.io/integration/gnome-terminal