rvm

“RVM is not a function” error

扶醉桌前 提交于 2019-12-02 16:16:17
RVM is installed on my machine (running Mac OSX 10.6.8), correctly and it runs fine. The odd thing is that to run it, I have to use source ~/.rvm/scripts/rvm for every new session. I tried making a symlink from it to /opt/local/bin/rvm , but when it runs it does nothing. I also tried creating a symlink from ~/.rvm/bin/rvm to /opt/local/bin/rvm , and when I run rvm in the Terminal it displays the help page, as expected. But when I try rvm use some_ruby_version it always displays "RVM is not a function, selecting rubies with 'rvm use ...' will not work.". How can I fix this? My goal is to get it

Received Warning message “Path set to RVM” after updating ruby version using rvm

白昼怎懂夜的黑 提交于 2019-12-02 16:05:02
Recently I tried to update my ruby version due to a warning message (see below). Now I get the following warning message when I start my iterm2: Warning: PATH set to RVM ruby but GEM_HOME and/or GEM_PATH not set, see: https://github.com/wayneeseguin/rvm/issues/3212 Does anyone know how to resolve this warning? It hasn't really impacted my work but it is a little unsettling. for your information: 1. I believed I ran rvm get stable to get the latest ruby version. 2. this is the warning message I was initially trying to resolve but it has not been resolved either: warning: parser/current is

Removing Node.Js from Mountain Lion [duplicate]

…衆ロ難τιáo~ 提交于 2019-12-02 15:58:50
Possible Duplicate: How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X) I'm trying to remove Node.js from my system so I can reinstall it using the NVM version manager. I installed Node.js a while ago and according to node --version , I'm running v0.6.8 I've had a look around but most of the answers i've found are limited to Node being installed via a PKG file and their remedies don't work for me.. Menztrual As found by answer How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X) go to /usr/local/lib and delete any node and node_modules go to

RVM Warning! PATH is not properly set up

拥有回忆 提交于 2019-12-02 15:51:36
I just installed rvm on my mac, but I receive this warning on global commands Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-1.9.3-p194/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 --auto-dotfiles', to fix temporarily in this shell session run: 'rvm use ruby-1.9.3-p194'. My $PATHS confirms the warning: $echo :$PATH: :/usr/local/rvm/bin:/usr/local/heroku/bin:/usr/local/rvm/gems/ruby-1.9.3-p194/bin:/usr/local/rvm/gems/ruby-1.9.3-p194@global

Can't use compass after installing it

陌路散爱 提交于 2019-12-02 15:51:14
I don't seem to be able to get compass working on Vagrant using this Vagrantfile . See the rest of the bash script's used right here (removed repo) (see Vaprobash if you want to provision your Vagrant Ubuntu Box!). So I was fallowing a gruntjs course, when I had to use grunt server . The only problem is that it needs a newer ruby version (1.9+ I believe instead of the 1.8) and it needs compass. So I have solved the ruby part by installing RVM and installing the latest stable version. Compass should be easy to get gem install compass and it does seem to be installed. But when I type in compass

rvm + rails install ERROR: While executing gem (NoMethodError)undefined method `ord' for nil:NilClass

空扰寡人 提交于 2019-12-02 15:07:15
问题 Ububtu 14.04 rvm 1.26.11 ruby 2.1.0p0 rvm list : rvm rubies =* ruby-2.1.0 [ x86_64 ] # => - current # =* - current && default # * - default which ruby : /home/awlad/.rvm/rubies/ruby-2.1.0/bin/ruby which rvm : /home/awlad/.rvm/bin/rvm which bundle : /usr/bin/bundle RubyGems Environment: - RUBYGEMS VERSION: 2.4.8 - RUBY VERSION: 2.1.0 (2013-12-25 patchlevel 0) [x86_64-linux] - INSTALLATION DIRECTORY: /home/awlad/.rvm/gems/ruby-2.1.0 - RUBY EXECUTABLE: /home/awlad/.rvm/rubies/ruby-2.1.0/bin/ruby

ubuntu安装rvm, ruby, rails

不羁的心 提交于 2019-12-02 14:44:33
对于新手来说,安装rails有时确实是一件痛苦的事。这也不懂,那也不懂。尽管网上这教程一搜一大把,但如何‘选择’又是另一个大问题了. 网上教你如何安装rails的教程可以说数不胜数,这也只是其中这一,作者希望能够对你有帮助~~~ 首先说明,这教程不适用于windows,作者本人也只是在ubuntu 11.04, ubuntu 11.10, ubuntu 12.04, ubuntu 12.10上安装成功,其它的类linux应该‘大同小异’吧。 第一步,打开终端Ctrl+Alt+T。 然后升级一下源,执行: sudo apt-get update 接下来,我们安装Git (一个版本控制系统)和curl, RVM的安装和使用需要使用到它们,还有build-essential用来编译 Ruby。为了安装这三个包,我们执行: sudo apt-get install -y build-essential git-core curl sudo apt-get install -y ruby-dev 这就可以安装RVM了,执行(这命令是一行): curl -L https://get.rvm.io | bash -s stable 或 \curl -L https://get.rvm.io | bash -s stable --rails 或 \curl -L https://get.rvm

在 Ubuntu 12.04 上安装 RVM 和 Ruby

点点圈 提交于 2019-12-02 14:44:22
前言 使用RVM来管理Ruby,建议使用同样的 Ubuntu 版本,以免遇到一些版本不同带来的问题。 参考 http://ruby-china.org/wiki/install-rails-on-ubuntu-12-04-server 配置 Ubuntu 系统 如果你是国内服务器,推荐修改网易的源 输入 sudo vi /etc/apt/sources.list 将里面的内容替换成: deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ precise-backports main restricted

Create .ruby-version and .ruby-gemset with rvm

若如初见. 提交于 2019-12-02 14:12:03
Is there a way to create the associated .ruby-version and .ruby-gemset files when creating a new gemset? With older versions of rvm, one could do rvm --create --rvmrc 1.8.7@project , but that creates .rvmrc files. I thought I read somewhere we could use the --ruby-version command line switch, but I have been unsuccessful in doing so. cappie013 I recently had the same problem. rvm --help led me to: rvm --create --ruby-version ruby-1.9.3@my-gemset It created both .ruby-gemset and .ruby-version . Bob Roberts According to the official RVM docs you can use this: echo 1.9.3 > .ruby-version Or you

Relationships between Rubygems, Bundler, and RVM

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 14:08:37
Following current best practices, what is the proper role for each of these? Based on my limited understanding of Bundler and RVM, it seems that they--like Rubygems--have their own install locations for gems. Plus, for each one, there's the option of installing to system paths using sudo or to your home directory. And then there's the ability to vendor gems with Bundler (where applicable, e.g. with Rails). So it looks to me like there are at least seven places to install gems now: Rubygems system path Rubygems user path RVM system path RVM user path Bundler system path Bundler user path Vendor