rvm

Error on terminal start

别说谁变了你拦得住时间么 提交于 2019-11-27 03:19:10
问题 -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

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

眉间皱痕 提交于 2019-11-27 02:47:57
问题 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 回答1: 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

Why can't I install Rails on Lion using RVM?

假如想象 提交于 2019-11-27 02:44:57
I'm running into issues trying to install Rails on OS X Lion using RVM. So far, I have done the following: Installed Mac OS X Lion Version 10.7 (Build 11A459e). Installed XCode 4.1 Developer Preview 5. Installed RVM. Installed a 1.8.7 version of Ruby via RVM using the command rvm install 1.8.7 . Note: I need to be using 1.8.7 and not 1.9.2. Switched to the 1.8.7 version of Ruby using the command rvm 1.8.7 . Created a new gemset using the command rvm gemset create rails3 . Switched to the new gemset using the command rvm use 1.8.7@rails3 . To install Rails I ran the command gem install rails

How do I “activate” a different version of a particular gem?

吃可爱长大的小学妹 提交于 2019-11-27 02:37:46
I want to switch between rails 2.3.10 as the "active" gem for my OS, so that I can invoke it at the command line. Is it possible to do this? I'm not using rvm. Maybe it's time to start. I tried gem install rails --version=2.3.10 , but that just makes sure that version of the gem is installed, it doesn't put it in /usr/bin/rails . (I do already use bundler for my apps -- but haven't needed any precise control over gems at the OS level until now) If your problem is to run binaries of a certain version, then: rails --version # => the latest version rails _2.3.10_ --version # => Rails 2.3.10 This

Use rvmrc or ruby-version file to set a project gemset with RVM?

本秂侑毒 提交于 2019-11-27 02:29:29
I use RVM, the Ruby Version Manager to specify a Ruby version and a set of gems for each of my Rails projects. I have a .rvmrc file to automatically select a Ruby version and gemset whenever I cd into a project directory. After installing RVM 1.19.0, I get a message You are using .rvmrc , it requires trusting, it is slower and it is not compatible with other ruby managers, you can switch to .ruby-version using rvm rvmrc to [.]ruby-version or ignore this warnings with rvm rvmrc warning ignore /Users/userName/code/railsapps/rails-prelaunch-signup/.rvmrc , .rvmrc will continue to be the default

rmagick gem install “Can't find Magick-config”

跟風遠走 提交于 2019-11-27 02:27:01
I get the error shown below when attempting to install the rmagick gem. I am on Snowleopard 10.6 using RVM, Ruby 1.9.2-head and Rails 3.05. Responses to similar questions recommended installing ImageMagick, which I successfully did. Other suggested installing the "libmagick9-dev library", however, I can not figure out how to do this. I'm a new developer, and any assistance or directions to an existing explanation or resource is greatly appreciated. Thanks! jjdevenuta(opal)$ gem install rmagick Fetching: rmagick-2.13.1.gem (100%) Building native extensions. This could take a while... ERROR:

Gem Install Debugger Error

你离开我真会死。 提交于 2019-11-27 02:11:21
问题 I am running Rails v4.0.2 on Mac OS 10.9.2 and I had everything smoothly. All of a sudden I'm getting an error saying gems are missing when I try rails server . I run bundle install and this is the output: Fetching gem metadata from https://rubygems.org/....... Fetching additional metadata from https://rubygems.org/.. Using rake 10.1.1 Using i18n 0.6.9 Using minitest 4.7.5 Using multi_json 1.9.0 Using atomic 1.1.16 Using thread_safe 0.2.0 Using tzinfo 0.3.39 Using activesupport 4.0.2 Using

RVM Ruby 1.9.1 install can't locate zlib but its runtime and dev library are there

余生颓废 提交于 2019-11-27 00:00:16
问题 Trying to get Ruby 1.9.1 up and running with RVM on a fresh install (fedora). After doing rvm install 1.9.1 , the rubygems error logs show that zlib can't be located no such file to load -- zlib (LoadError) However both the zlib runtime and development libraries are installed and up-to-date. I'm kinda stumped on this one at the moment. 回答1: Use rvm to install zlib https://rvm.io/packages/zlib/ rvm package install zlib rvm remove 1.9.1 rvm install 1.9.1 -C --with-zlib-dir=$rvm_path/usr Edit:

Ruby, RVM, LLVM and MySQL

一世执手 提交于 2019-11-26 23:59:22
问题 I'm having big trouble in configuring Ruby and MySQL on MacOSX. Just a fact, I'm new on MacOSX and Ruby On Rails. So, first I was having problems to install mysql2 gem, after get the gem installed I was trying developer a test, and when I tried start the WEBrick got this error saying that couldn't load a MySQL lib called "libmysqlclient.18.dylib". Googlin' about the error I saw that everyone was recommending using Ruby through RVM. I installed RVM and tried install ruby 1.9.3 and get this

how to solve “ruby installation is missing psych” error?

一曲冷凌霜 提交于 2019-11-26 23:22:39
I used rvm to install ruby 1.9.3. even though it was successfully installed, it complained about libyaml. and now every time i wanna install a gem (say rails) this warning shows up: It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby. I use Mac os X 10.7 (Lion). peterpengnz In my case rvm pkg install libyaml and rvm reinstall ruby-1.9.3-p125 solved the problem. For people using Ubuntu, make sure that libtool is installed prior to the steps above: sudo apt-get install libtool For macOS users (with homebrew