rvm

Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Deadly 提交于 2019-11-27 10:19:53
问题 I am trying to run mysql client on my terminal. I have installed the latest mysql gem. ➜ ~ git:(master) ✗ ruby -v ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0] ➜ ~ git:(master) ✗ rails -v Rails 2.3.14 ➜ ~ git:(master) ✗ which mysql mysql: aliased to nocorrect mysql ➜ ~ git:(master) ✗ which ruby /usr/bin/ruby ➜ ~ git:(master) ✗ which rails /usr/bin/rails ➜ ~ git:(master) ✗ gem list *** LOCAL GEMS *** actionmailer (2.3.14) actionpack (2.3.14) activerecord (2.3.14) activeresource

Mountain Lion rvm install 1.8.7 x11 error

一笑奈何 提交于 2019-11-27 10:11:29
After update to Mountain Lion, I tried install 1.8.7, and I got error. X11 file not found, I installed Xquarkz, but nothing changed. Whats wrong? Fail to find [tclConfig.sh, tkConfig.sh] Use MacOS X Frameworks. Find Tcl/Tk libraries. Make tcltklib.so which is required by Ruby/Tk. clang -I. -I../.. -I../../. -I../.././ext/tk -DHAVE_RB_SAFE_LEVEL -DHAVE_RB_HASH_LOOKUP -DHAVE_RB_PROC_NEW -DHAVE_RB_OBJ_TAINT -DHAVE_ST_PTR -DHAVE_ST_LEN -DRUBY_VERSION=\"1.8.7\" -DRUBY_RELEASE_DATE=\"2012-06-29\" -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -DWITH_TCL_ENABLE_THREAD=0 -fno-common -g -O2 -fno-common -pipe -fno

How do I change my Ruby version using RVM?

…衆ロ難τιáo~ 提交于 2019-11-27 10:11:09
I am not able to switch the current Ruby version: ➜ ~ rvm list rvm rubies ruby-1.9.2-p290 [ x86_64 ] ruby-1.9.3-p0 [ x86_64 ] ➜ ~ rvm use ruby-1.9.3-p0 RVM is not a function, selecting rubies with 'rvm use ...' will not work. donald Fixed it. I needed to add: [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM to .zshrc The Mitra Boy This happened to me too. I had: export PATH=~/.rvm/bin:$PATH Added in my .bashrc. All I had to do was add another [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" to the same file and it worked! Of course, you have to

RVM and thin, root vs. local user

别来无恙 提交于 2019-11-27 10:08:02
So I'm trying to get thin to run as a service with RVM. After a thin install I manually updated /etc/init.d/thin to use an su - user when running the config command so that thin was running as a local user, rather than root. So far so good. Now, when I try to sudo service thin start it looks like it's trying to use the non-RVM version of Ruby (1.8.7 which was installed on the box to start with) to actually execute the command. I did a gem install thin on the non-RVM version, which then gets me a uninitialized constant Bundler message—Bundler is only installed in the RVM gems, not the system

Getting “Warning! PATH is not properly set up” when doing rvm use 2.0.0 --default

女生的网名这么多〃 提交于 2019-11-27 10:05:45
Above doesn't work first time, works 2nd time. Try to set ruby version to 2.0.0 for any new shell windows. Doing $ rvm use 2.0.0 --default gives Warning! PATH is not properly set up, '/home/durrantm/.rvm/gems/ruby-1.9.3-p125/ bin' is not at first place, usually this is caused by shell initialization files - check them for ' PATH=...' entries, it might also help to re-add RVM to your dotfiles: 'rvm get stable --au to-dotfiles', to fix temporarily in this shell session run: 'rvm use ruby-1.9.3-p125' . Using /home/durrantm/.rvm/gems/ruby-2.0.0-p247 Then doing the same $ rvm use 2.0.0 --default

Is there a python equivalent of Ruby's 'rvm'?

巧了我就是萌 提交于 2019-11-27 10:02:39
Q: Do we have anything functionally equivalent in Python to the Ruby version manager 'rvm' ? ( RVM lets you easily switch completely between different versions of the ruby interpreter and different sets of gems (modules). Everything concerning download-build-install-switch of interpreter(-s) and gems gets taken care of by invoking rvm. It is all run under your regular user account.) Yes, it is virtualenv along with virtualenvwrapper . update: you may install both at once with virtualenv burrito . Update : the correct answer is now probably pyenv . For scientific computing, the corresponding

rvm: command not found MAC OX

北城余情 提交于 2019-11-27 09:18:50
问题 Really, I don't know what happened. Excuse me if this question is so NOOB, but I can't find the solution for this problem. -bash: rvm: command not found I tried this curl -L https://get.rvm.io | bash -s -- --version latest but still nothing I need to see the ruby version for use the simplecov because it not works with older version from 1.9 回答1: It might because the terminal not having rvm shell configuration loaded. Try following from your terminal: $ source ~/.rvm/scripts/rvm then $ type

RVM is not working in ZSH

萝らか妹 提交于 2019-11-27 09:03:06
问题 I'd like to try out the ZSH shell on my Mac, but I also do a lot of Ruby and Rails development, so I use RVM quite a bit too. The problem is that I can't seem to get RVM to work in ZSH, and it's working fine in the default Bash shell: > zsh > rvm 1.9.2 > ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] > which ruby /usr/bin/ruby I can definitely confirm that RVM is installed, as well as ruby 1.9.2 under RVM; I use it all the time in Bash. Running an rvm list in ZSH shows

Error installing Ruby with RVM (OSX 10.8)

夙愿已清 提交于 2019-11-27 08:06:39
问题 When trying to install Ruby 1.9.3 using RVM (rvm install ruby 1.9.3) I get the following error: Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p362. Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Fetching yaml-0.1.4.tar.gz to /Users/christiaan/.rvm/archives Extracting yaml to /Users/christiaan/.rvm/src/yaml-0.1.4 Configuring yaml in /Users/christiaan/.rvm/src/yaml-0.1.4. Error

Use rvm to force specific Ruby in Xcode Run Script build phase

强颜欢笑 提交于 2019-11-27 07:43:47
问题 Outside of Xcode I use a specific version of Ruby, using RVM to manage multiple Ruby installations. Apple's command line dev tools install Ruby at /usr/bin/ruby and is version 1.8.7. I use 1.9.3 through RVM. Is there a way to force Xcode to use my 1.9.3 installation when running its Run Script build phases? I already tried setting the Shell path to the full path of my specific Ruby, but that didn't seem to make a difference, by which I mean that the particular Gems I have installed in my 1.9