rvm

Install Rails 3 on OSX with RVM

早过忘川 提交于 2019-11-28 04:12:04
Trying to install the new Rails 3 release on OSX 10.6. Have never touched Ruby or Rails on this machine since purchased. I was able to get rvm and get Ruby 1.9.2. installed. From there, I am stuck. I tried: rvmsudo gem install rails -v 3.0.0 sudo gem install rails --pre sudo gem install rails sudo gem update rails And I get the same result error each time: ERROR: While executing gem ... (Errno::ENOENT) No such file or directory - /Users/kevin/.rvm/gems/ruby-1.9.2-head@rails3/cache/activesupport-3.0.0.gem If I do gem list, it says LOCAL GEMS and doesn't list anything. I have read a few

Warning! PATH is not properly set up, usually this is caused by shell initialization files

纵然是瞬间 提交于 2019-11-28 03:55:01
Whenever I go to a folder with a .rvmrc file, there is a warning: Warning! PATH is not properly set up, '/home/me/.rvm/gems/ruby-2.0.0-p247/bin' is not available, usually this is caused by shell initialization files - check them for 'PATH=...' entries, to fix run: 'rvm use ruby-2.0.0-p247'. I did rvm use ruby-2.0.0-p247 , but the warning is still present. Note : There are no errors, Im able to run my application just fine, but the warning is very annoying. Any ideas? This was a bug and was handled with https://github.com/wayneeseguin/rvm/issues/2050 and was released as rvm stable 1.21.15 at

Can't install Ruby 2.0.0-p0 with RVM. Error running 'make -j8'

可紊 提交于 2019-11-28 03:43:15
问题 I tried to install Ruby 2 using RVM today and it failed. I updated RVM, all my brew formulas and whatnot. This is what I get: admin:/$ rvm install ruby-2.0.0-p0 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p0. Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Installing requirements for osx, might require sudo password. Already up-to-date. Certificates in '/usr/local/etc/openssl

Error while installing Nokogiri (1.6.7) on El Capitan

烈酒焚心 提交于 2019-11-28 03:39:32
One of my developers have updated Nokogiri, and when pulling the updated Gemfile my bundle install fails. ➜ my-project git:(master) bundle install Fetching source index from https://rubygems.org/ Using rake 10.4.2 Using i18n 0.7.0 Using json 1.8.3 Using minitest 5.8.3 Using thread_safe 0.3.5 Using tzinfo 1.2.2 Using activesupport 4.2.3 Using builder 3.2.2 Using erubis 2.7.0 Using mini_portile2 2.0.0 Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /Users/me/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb --use-system-libraries checking if the C compiler accepts ... yes checking if

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

荒凉一梦 提交于 2019-11-28 03:18:59
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. JasonOng 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: The rvm package command was renamed to rvm pkg in v1.6.25. You need to install zlib before compiling

How to have multiple versions of Ruby AND Rails, and their combinations on Windows?

☆樱花仙子☆ 提交于 2019-11-28 03:16:13
Since Windows doesn't support rvm (Ruby version Manager), how do we have Ruby 1.8.7, Rails 2.3.8 Ruby 1.8.7, Rails 3.0.0 Ruby 1.9.2, Rails 3.0.0 on the same PC? Virtual machines can be used but it is kind of troublesome. Use uru . It is a multi-platform ruby environment manager. You can download the Windows version here: https://bitbucket.org/jonforums/uru/wiki/Downloads Install the tool Assuming C:\tools is on PATH and uru_rt.exe was extracted to C:\tools C:\tools>uru_rt admin install This adds uru.bat file to the tools directory. Register ruby uru admin add C:\ruby200\bin List available

Ruby, RVM, LLVM and MySQL

泪湿孤枕 提交于 2019-11-28 03:16:00
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 error: ERROR: The provided CC(/usr/bin/gcc) is LLVM based, it is not yet fully supported by ruby and gems,

How to install RVM system requirements without giving sudo access for RVM user

99封情书 提交于 2019-11-28 02:53:40
On my Debian server I have a user called "deployer" that does not have sudo access, and has RVM installed. When installing Ruby using "deployer", like 1.9.3, it triggers a task to install dependencies "Installing requirements for debian, might require sudo password." which fails and stops installation because "deployer" can not sudo. I don't want to add "deployer" into the sudoers list, and don't want to install RVM for some other user just for a one-time use for installing dependencies. What is the correct way to install that dependencies? Or how do I list them to install manually? kwarrick

RVM: Uninstalling all gems of a gemset

柔情痞子 提交于 2019-11-28 02:46:44
I have global gems and various gemsets. I want to remove all gems of a gemset. Is there a way do to this, besides uninstalling the gemset? Use the gemset empty command: rvm gemset empty mygems Sulabh Jain This command removes all the ruby gems installed locally in 1-step Works well in Ubuntu 10.10 gem list | cut -d" " -f1 | xargs gem uninstall -aIx PS - removes all local gems. Use sudo accordingly. rvm gemset empty <gemset name> This will remove all gems from your mentioned gemset. you can also use rvm --force gemset empty rvm gemset empty <gemset> works, but only if you specify a gemset name.

Missing symbol when installing ruby-2.3.0 on OS X 10.11.6 by RVM

霸气de小男生 提交于 2019-11-28 00:54:14
I was failing to install ruby-2.3.0 by rvm, while it worked with ruby-2.2.0. The error message is as below Error running '__rvm_make -j 1', showing last 15 lines of /Users/Rookie/.rvm/log/1472865655_ruby-2.3.0/make.log compiling ./missing/explicit_bzero.c compiling ./missing/setproctitle.c compiling dmyenc.c linking miniruby config.status: creating ruby-runner.c dyld: lazy symbol binding failed: Symbol not found: _clock_gettime Referenced from: /Users/Rookie/.rvm/src/ruby-2.3.0/./miniruby (which was built for Mac OS X 10.12) Expected in: /usr/lib/libSystem.B.dylib dyld: Symbol not found: