rvm

Cannot change RVM gemset from shell script via `rvm gemset use`

好久不见. 提交于 2019-12-02 20:57:14
(See update at bottom) I feel like I'm missing something terribly obvious here, but I can't change gemsets from within a shell script. This minimal script demonstrates: #!/usr/bin/env bash rvm gemset use "testing" I even tried the instructions from the Scripting RVM page (although it didn't seem necessary): #!/usr/bin/env bash # Load RVM into a shell session *as a function* if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then # First try to load from a user install source "$HOME/.rvm/scripts/rvm" elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then # Then try to load from a root install source "/usr/local

Use multiple versions of rubygems with rvm?

旧时模样 提交于 2019-12-02 20:40:41
I have two projects on my computer: - An old Rails 2.3 app that needs rubygems 1.6 and won't run under rubygems 1.8; - A newer app that needs rubygems 1.8 and won't run under rubygems 1.6. Each project has its own rvm gemset, but I can't figure out how to give them different versions of rubygems itself: gem update --system [version] results in gem --version giving the same answer in both; rvm gemset [version] has the same result. How can I run rubygems 1.6.2 in one project and 1.8.11 in the other? To clarify, here's what I want to do : In directory A, have a .rvmrc with commands that select

How do I switch to older versions of the ruby/rails environment?

ε祈祈猫儿з 提交于 2019-12-02 19:37:31
I'm trying to keep along with the Tekpub Build your own blog on rails screencast. I'm still very much a ruby novice and the problem is that I have Rails 3 installed while Rob uses an older version (Of the top of my head: version 2.3.2). I know how to get that version of rails with gem install rails --version=2.3.2 but when I type rails new the version of the application is rails 3. How do I make this particular app work with the older version? I know this has something to do with rvm but I have no idea how to do anything but the basic rvm use operation. Try, rvm use <ruby version> rvm gemset

Error when trying to “brew link autoconf”

南笙酒味 提交于 2019-12-02 19:06:44
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! SethMMorton 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 have to use sudo for those commands to work. After you do this, try linking again. (sudo) chown -R

Rails 3 initializes extremely slow on Ruby 1.9.2

时间秒杀一切 提交于 2019-12-02 18:58:09
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. There is a thread about this on Rails-Core - http://groups.google.com/group/rubyonrails-core/browse_thread/thread

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

陌路散爱 提交于 2019-12-02 18:21:33
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? 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 output from this command rvm install ... # reinstall your rubies This is likely overkill, but it should get

Xcode - configure: error: no acceptable C compiler found in $PATH

丶灬走出姿态 提交于 2019-12-02 17:24:15
rebuilding a mac from scratch. Installed xcode and rvm then trying to install rubies but they are all giving me: Error running ' ./configure --prefix=/Users/durrantm/.rvm/rubies/ruby-1.9.3-p125 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/durrantm/.rvm/usr ', please read /Users/durrantm/.rvm/log/ruby-1.9.3-p125/configure.log There has been an error while running configure. Halting the installation. Michaels-MacBook-Air:~ durrantm$ The log has: checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: in `/Users/durrantm/.rvm/src/ruby

Error while installing ruby-1.8.7 on Fedora 15

非 Y 不嫁゛ 提交于 2019-12-02 17:09:06
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 -DHAVE_DLERROR -I. -fPIC -g -O2 -fno-defer-pop -fno-omit-frame-pointer -c ptr.c gcc -I/opt/local/include

How do I fix a RVM install that was done using SUDO

。_饼干妹妹 提交于 2019-12-02 17:05:31
问题 A member of our team installed RVM using sudo. We removed ~/.rvm and /usr/local/rvm but we are unable to install RVM. This : bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) Gives the following error: mkdir: /usr/local/rvm: Permission denied Which is weird, since we are not using sudo this time. Am not sure where could be the error. What could I check? 回答1: Remove also /etc/rvmrc directory and then install RVM Should Success install !!! 来源: https:/

OpenSSL, RVM, Brew, conflicting error

别等时光非礼了梦想. 提交于 2019-12-02 16:46:10
When I run brew doctor in Terminal: I get the following error: Warning: Some keg-only formula are linked into the Cellar. You may wish to `brew unlink` these brews: openssl If I unlink it, and I type rvm requirements : I will get the following Error. Checking requirements for osx. dyld: Library not loaded: @@HOMEBREW_CELLAR@@/openssl/1.0.1f/lib/libssl.1.0.0.dylib Referenced from: /usr/local/opt/openssl/bin/openssl Reason: image not found Failed reading certificates path for '/usr/local/opt/openssl/bin/openssl' with return code: (). RVM autolibs is now configured with mode '2' => 'check and