rvm

Rubygems, Bundler and RVM confusion

六月ゝ 毕业季﹏ 提交于 2019-11-28 15:11:22
I read " Relationships between Rubygems, Bundler, and RVM " before asking it again. Well, there are many questions like this, but people who answered say they work with Rubygems, RVM and Bundler, and they have not explained how each of these work in isolation. I am really confused with how the three work in isolation when we are installing gems. Please do not tell me how you work, which will help me, but I won't learn what is happening when we play with them. My confusion can be broken down into these questions. Where is a gem installed when: I just have Rubygems (without RVM or Bundler)?

RVM is not working in ZSH

…衆ロ難τιáo~ 提交于 2019-11-28 15:11:16
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 this, interestingly: rvm rubies ruby-1.8.7-p302 [ x86_64 ] => ruby-1.9.2-p0 [ x86_64 ] This is

Error installing Ruby with RVM (OSX 10.8)

旧时模样 提交于 2019-11-28 13:57:54
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 running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg

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

大憨熊 提交于 2019-11-28 13:35:29
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.3 weren't available/visible to the script when run within Xcode. If I run my project through xcodebuild

Faulty ruby compilation with rvm: getting 'undefined symbol: rb_Digest_MD5_Init' while running racku

泪湿孤枕 提交于 2019-11-28 12:41:51
I am on Ubuntu. Any ideas? Do I have to set any compilation option? It seems you're missing some devel packages on your system. See my article here , specifically this step . I'm not sure, but the MD5 code could be part of libssl, so it would be covered by installing these packages. $ sudo apt-get install zlib1g-dev libreadline5-dev libssl-dev libxml2-dev 来源: https://stackoverflow.com/questions/3545118/faulty-ruby-compilation-with-rvm-getting-undefined-symbol-rb-digest-md5-init

Unknown ruby interpreter version (do not know how to handle): RUBY_VERSION

爱⌒轻易说出口 提交于 2019-11-28 10:56:47
问题 Trying to rvm use . in order to follow the instructions in here in an attempt to fix my messed up configuration, I get the following message in console: Unknown ruby interpreter version (do not know how to handle): RUBY_VERSION. Could not determine which Ruby to use; . should contain .rvmrc or .versions.conf or .ruby-version or .rbfu-version or .rbenv-version, or an appropriate line in Gemfile. Which I guess refers to the variable RUBY_VERSION in the Gemfile: source "https://rubygems.org"

Which Ruby version am I really running?

浪尽此生 提交于 2019-11-28 10:41:51
I'm running Ubuntu 12.04 lts, and installed Ruby via RVM. The problem is, when I type ruby -v into the terminal, it says that my Ruby version is 1.8.7, and using the shotgun gem for Sinatra it says that I'm running Ruby 1.8.7. When I type rvm list it shows that the only version of Ruby that I have installed is 2.0.0 and it is my current and default version. I installed Ruby 2.0.0 via RVM and it is the only version I had installed on my machine. I tried to install Rails 4 but got an error saying that I need Ruby 1.9 or higher. How do I know what version am I really on, and how do I set 2.0.0 as

RVM Does Not Install Ruby 1.9.2 on Snow Leopard: 'Error running 'make '

爷,独闯天下 提交于 2019-11-28 10:02:56
When I try to install Ruby 1.9.2 on Snow Leopard using: rvm install 1.9.2 I get the following: ERROR: Error running 'make ', please read /Users/mary/.rvm/log/ruby-1.9.2-p180/make.log ERROR: There has been an error while running make. Halting the installation. So, I check out make.log. The end of it reads: readline.c: In function ‘username_completion_proc_call’: readline.c:1386: error: ‘username_completion_function’ undeclared (first use in this function) readline.c:1386: error: (Each undeclared identifier is reported only once readline.c:1386: error: for each function it appears in.) make[1]:

Error on terminal start

让人想犯罪 __ 提交于 2019-11-28 09:59:33
-bash: /etc/profile.d/rvm.sh: No such file or directory -bash: /Users/janekambani/.bash_profile: line 1: conditional binary operator expected -bash: /Users/janekambani/.bash_profile: line 1: syntax error near `"$HOME/.rvm/scripts/rvm"' -bash: /Users/janekambani/.bash_profile: line 1: `[[ -s "$HOME/.rvm/scripts/rvm"]] && . "$HOME/.rvm/scripts/rvm" ' I tried this: sudo rm -rf /etc/rvmrc /etc/profile.d/rvm.sh /usr/local/rvm /usr/local/bin/rvm $HOME/.rvm $HOME/.rvmrc but i still kept getting the same error. im using OS X 10.8 Homan Take a look at the source of /etc/profile. On 10.8 of Mac OS,

bundle update: env: ruby_executable_hooks: No such file or directory

梦想的初衷 提交于 2019-11-28 09:16:46
Just updated rubygems-bundler from 1.2.2 to 1.3.0 Not sure, exactly, that this is the problem but now I'm getting these errors: $ bundle update env: ruby_executable_hooks: No such file or directory $ bundle install env: ruby_executable_hooks: No such file or directory please open a bug here: https://github.com/mpapis/executable-hooks/issues as a temporary fix try: rvm @global do gem regenerate_binstubs gem regenerate_binstubs Update 1: As a fix for https://github.com/mpapis/executable-hooks/issues/6 version 1.2.1 of executable-hooks was released - it should fix the problem. Update 2: Folowing