rvm

Should I check in `.ruby-gemset` and/or `.ruby-version`?

不羁的心 提交于 2019-11-29 02:06:43
问题 I've just updated RVM, and in place of the old .rvmrc , it auto-created .ruby-gemset and .ruby-version . I've always had .rvmrc files with contents like rvm use --create default@project_name . However, .ruby-version contains the specific Ruby version I'm running rather than default . I'm hesitant to check this in. Also, I heard someone say on a podcast that one shouldn't check in .ruby-gemset because others may have their own preferences about how to name gemsets. When should or shouldn't I

how to make a gemset in RVM the default?

别说谁变了你拦得住时间么 提交于 2019-11-29 01:39:11
问题 I'm trying to make a gemset the default whenever I start a new terminal in Mac OS X: rvm use 1.9.3@rails3.2 --create --default That seems to work, the rails3.2 gemset becomes the current gemset: $ rvm gemset list gemsets for ruby-1.9.3-p0 (found in /Users/me/.rvm/gems/ruby-1.9.3-p0) global => rails3.2 $ But when I open up a new terminal, the rails3.2 gemset is no longer the current: $ rvm gemset list gemsets for ruby-1.9.3-p0 (found in /Users/me/.rvm/gems/ruby-1.9.3-p0) global rails3.2 $ What

【GEM】深入理解 cocoapods gem

旧时模样 提交于 2019-11-29 00:51:53
###比较gem,rvm,brew命令 ###深入理解几个命令 rvm Gem是封装起来的Ruby应用程序或代码库 Gems 类似RedHat的RPM.它将一个Ruby应用程序打包到一个gem里,作为一个安装单元。 无需安装,最新的Ruby版本已经包含RubyGems了。RubyGems(简称 gems) ruby bundle 相当于多个RubyGems批处理运行。在配置文件gemfilel里说明你的应用依赖哪些第三方包,他自动帮你下载安装多个包,并且会下载这些包依赖的包 source brew ,又叫Homebrew,是Mac OSX上的软件包管理工具 //mac 安装brew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ###$ gem list gem list --local | grep cocoapods 查看ruby的本地包 *** LOCAL GEMS *** activesupport (4.1.8, 3.2.21) bigdecimal (1.2.0) CFPropertyList (2.2.8) claide (0.7.0) cocoapods (0.35.0, 0.34.1, 0.34.0)

Install Rails Error “invalid gem: package is corrupt”

大城市里の小女人 提交于 2019-11-29 00:48:26
问题 I am running Mac OSX 10.9.1 and I am using RVM to manage Ruby v2.0.0-p353. When I try to install Rails I get this error: Ryans-MacBook-Air-2:~ ryan$ gem install rails ERROR: Error installing rails: invalid gem: package is corrupt, exception while verifying: undefined method`path2class' for #<Psych::ClassLoader:0x0000010c9d0be0> (NoMethodError) in /Users/ryan/.rvm/gems/ruby-2.0.0-p353/cache/i18n-0.6.9.gem Here is a list of gems I have installed: Ryans-MacBook-Air-2:~ ryan$ gem list *** LOCAL

RVM Ruby on Rails installation

坚强是说给别人听的谎言 提交于 2019-11-29 00:18:15
I'm having a trouble installing rvm ROR on my machine using ubuntu 12.04 here are the outputs I'm getting: Output #1: Searching for binary rubies, this might take some time. No binary rubies available for: ubuntu/12.04/i386/ruby-1.8.7-p371.Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Installing requirements for ubuntu, might require sudo password. and at the end of the line of update I get this: Output #2: There has been error while updating 'apt-get', please give it some time and try again later. For 404 errors check your sources configured in

Error running '__rvm_make install'

非 Y 不嫁゛ 提交于 2019-11-28 23:46:09
I'm new to programming trying to add Ruby 2.2 using RVM and receiving the below error. I've run rvm get stable and tried reinstalling, but getting the same error. $ rvm reinstall ruby-2.2.0 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.10/x86_64/ruby-2.2.0. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Checking requirements for osx. Installing requirements for osx. Updating system..... Installing required packages: autoconf, automake, libtool, pkg-config, libyaml, readline, libksba, openssl..

Error running 'requirements_osx_brew_libs_install…' on Mac 10.7

青春壹個敷衍的年華 提交于 2019-11-28 23:45:44
问题 Trying to install brew on a last generation Macbook Pro and keep getting the following error: Error running 'requirements_osx_brew_libs_install autoconf automake libtool pkg-config apple-gcc42 libyaml readline libxml2 libxslt libksba openssl sqlite', please read /Users/allegrascrugham/.rvm/log/ruby-1.9.3-p392/1368142352_package_install_autoconf_automake_libtool_pkg-config_apple-gcc42_libyaml_readline_libxml2_libxslt_libksba_openssl_sqlite.log I tried removing and reinstalling RVM & Brew with

How do I use JRUBY_OPTS with RVM?

最后都变了- 提交于 2019-11-28 23:12:19
问题 It seems that the idiomatic way to provide flags to JRuby in an RVM-based Rails project is to set the environmental variable JRUBY_OPTS or PROJECT_JRUBY_OPTS, the latter perhaps being done automatically, since I see I can uncomment this line from my project directory's .rvmrc : PROJECT_JRUBY_OPTS=( --1.9 ) However, that line seems to do nothing, and if I set the environmental variables, RVM actually unsets them. So, how am I supposed to do this? (Note that I have this at the bottom of my

Cannot use ruby-debug19 with 1.9.3-p0? [duplicate]

一曲冷凌霜 提交于 2019-11-28 23:11:07
Possible Duplicate: Rails 3.1 and Ruby 1.9.3p125: ruby-debug19 still crashes with “Symbol not found: _ruby_threadptr_data_type” I run this: gem install ruby-debug19 And in my cucumber env.rb file, I have this: require 'ruby-debug' When I try to run, though, I get this exception: /home/skendall/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so: undefined symbol: ruby_current_thread - /home/skendall/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so (LoadError) What do I need to do to get ruby-debug to work with 1.9.3-p0? Tom De Leu UPDATE: ruby

How to compile ruby with RVM on a low memory system?

倾然丶 夕夏残阳落幕 提交于 2019-11-28 21:30:59
rvm install 1.9.3 leads to the error in the make.log: ... compiling ./enc/trans/emoji_sjis_docomo.c compiling ./enc/trans/emoji_sjis_kddi.c gcc: internal compiler error: Killed (program cc1) gcc: internal compiler error: Killed (program cc1) gcc: internal compiler error: Killed (program cc1) Please submit a full bug report, with preprocessed source if appropriate. ... dmesg shows [180031.341709] send sigkill to 3705 (cc1), adj 0, size 3394 free shows at some point running configure process: total used free shared buffers cached Mem: 241668 238676 2992 0 92 2020 -/+ buffers/cache: 236564 5104