rvm

installed ruby using apt-get install ruby 2.0.0 succeeded but not using correct ruby version

徘徊边缘 提交于 2019-12-03 05:58:46
问题 Hi I am really new to linux. I am currently deploying an app on digital ocean so I am switching to linux ox temporarily. I did sudo apt-get install ruby 2.0.0 and installed correctly but when I do ruby-v I am getting the 1.8.7 version. I am sure that the old version is prepackaged with mint. How do I switch to ruby 2.0.0 in my bash profile or the linux startup files? 回答1: If you're new to linux I'd recommend using something like RVM (Ruby Version Manager) to install ruby. It makes it easier

How do I install rvm without root access?

拥有回忆 提交于 2019-12-03 05:55:28
问题 I would like to install the travis gem on a machine without ruby gems, and on which I don't have root. (I want to encrypt something for use with travis.) I decided to try to install rvm, because https://rvm.io/rvm/install suggests that it is an easy way to install ruby without root. However, I ran into problems right away: jgross@cagnode17:~$ \curl -L https://get.rvm.io | bash -s stable --ruby % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed

Error when trying to “brew link autoconf”

帅比萌擦擦* 提交于 2019-12-03 05:47:18
问题 When I try to "brew link autoconf" in the terminal I keep getting this error. Error: Could not symlink file: /usr/local/Cellar/autoconf/2.69/share/emacs/site-lisp /usr/local/share/emacs is not writable. You should change its permissions. Anyone have any ideas on how to fix this? Thanks! 回答1: You need to make sure that all the files and folders in /usr/local are writable by you. You can do this by typing the following command chown -R yourusername /usr/local chmod -R u+w /usr/local You may

Rails 3 initializes extremely slow on Ruby 1.9.2

元气小坏坏 提交于 2019-12-03 05:39:14
问题 I'm using RVM for managing environment, installed Ruby 1.9.2.p136 (i think its latest release.) and Rails 3, created gemsets and run bundler. everything working good so far but; Rails initalizes extremely slow when running commands, i.e. generate, destroy, rake etc. Takes about 30-45 seconds to complete command. This will never happens if use Ruby Enterprise Edition or Ruby 1.8.7 Why this happens. Any thoughts? Running on Ubuntu 10.10, RVM, Ruby 1.9.2, Rails 3 Thanks. 回答1: There is a thread

Zsh & RVM woes (rvm-prompt doesn't resolve)

一个人想着一个人 提交于 2019-12-03 05:32:58
I recently saw the light and changed over to Zsh. I naturally used Oh My Zsh to configure it, as I'm noobish. So, there are several themes that have an rvm-prompt included and here is were my problems began. Everytime I load Zsh I have to rvm reload or else rvm-prompt is not resolved ( zsh: command not found: rvm-prompt ). Note that it resolves fine after I reload. Also, and in line, when I go to a directory that has its own .rvmrc (other gemset) and then I come out of it, the same problem occurs; I'm left with having to reload Zsh again. I have RVM in $PATH set. I have [[ -s "$HOME/.rvm

How do I install Ruby gems when using RVM?

霸气de小男生 提交于 2019-12-03 05:31:59
问题 I set up RVM and used it to install Ruby and a few other libraries. As I was going through various tutorials and set-ups of other technologies like Rails, I began getting confused about what I should do via RVM and what I should just do as the tutorials suggest. One example is the RubyGems tutorial here: http://rubygems.org/pages/download Should I download that tar file they are talking about? Seems unnecessary since that is what I thought RVM was for. Do I even need RubyGems? What is that

rvm install 1.9.2 fails when running autoconf?

谁都会走 提交于 2019-12-03 05:22:45
when I run rvm install 1.9.2 I get an error trying to run autoconf. This is the stacktrace: kenmare:ruby-1.9.2-p0 lee$ rvm install 1.9.2-p0 /Users/lee/.rvm/rubies/ruby-1.9.2-p0, this may take a while depending on your cpu(s)... ruby-1.9.2-p0 - #fetching ruby-1.9.2-p0 - #extracted to /Users/lee/.rvm/src/ruby-1.9.2-p0 (already extracted) Running autoconf Error running 'autoconf', please check /Users/lee/.rvm/log/ruby-1.9.2-p0/autoconf.error.log Skipping configure step, 'configure' does not exist, did autoconf not run successfully? ruby-1.9.2-p0 - #compiling Error running 'make ', please check

How do I uninstall Ruby on Rails and do a clean install?

匆匆过客 提交于 2019-12-03 05:06:56
问题 I'm following a Rails tutorial. I'm having version problems with RVM and am getting lots of errors. I would like to start over with a clean version of Ruby, Rails, Gemfiles, etc. Can anyone give me some brief instructions on how to uninstall my Ruby-on-Rails environment? 回答1: Try this: rvm get head rvm reset rvm remove ... # take the output of rvm list and do rvm remove for each item in the list rvm cleanup rvm repair rvm notes # make sure that you've got all the dependencies mentioned in the

How do I recompile a ruby with RVM?

牧云@^-^@ 提交于 2019-12-03 04:43:38
问题 I installed Ruby 1.9.3 with RVM, and it works fine. I then made some changes in a ruby C source file, and I want to recompile and re-install it so I can use the changes. I haven't found any kind of rvm recompile command however. 回答1: The problem with using rvm [reinstall|install] is that it will fetch and use precompiled binaries if it can find any. Sometimes, you really want to rebuild from source, probably because you're trying to use a more recent version of GCC (e.g. 4.8 or 4.9). The

Error while installing ruby-1.8.7 on Fedora 15

早过忘川 提交于 2019-12-03 04:40:57
问题 Using RVM, I tried to install ree-1.8.7-2011.03 after installing Fedora 15 and I get the following error. Using rvm install ree-1.8.7-2011.03 on Ubuntu 11.04 works fine.. Same error (and solution) with MRI ruby-1.8.7-p334 on Fedora 15. Any ideas as to how to fix this? make[1]: Entering directory `/home/ryguy/.rvm/src/ree-1.8.7-2011.03/source/ext/dl' gcc -I/opt/local/include -I. -I/opt/local/include -I../.. -I../../. -I../.././ext/dl -DHAVE_DLFCN_H -DHAVE_DLOPEN -DHAVE_DLCLOSE -DHAVE_DLSYM