I tried to install ruby 1.9.2 on rvm, but after the computer compiles for a while, the system says error message on Terminal. Do you know what the matter is? It's taking me hours :(
ruby-1.9.2-head - #fetching
HEAD is now at 91799a2 merges r30786, r30787 and r30797 from trunk into ruby_1_9_2.
From https://github.com/ruby/ruby
* branch ruby_1_9_2 -> FETCH_HEAD
Already up-to-date.
Copying from repo to src path...
Running autoconf
ruby-1.9.2-head - #configuring
ruby-1.9.2-head - #compiling
ERROR: Error running 'make ', please read /Users/nofear38/.rvm/log/ruby-1.9.2-head/make.log
ERROR: There has been an error while running make. Halting the installation.
Run rvm notes and ensure that OS dependencies are installed.
Do you have the build tools from XCode installed? You will need them if you want to make things.
The error output is specifically saying to read /Users/nofear38/.rvm/log/ruby-1.9.2-head/make.log. What does that log file tell you about the error? That might tell you exactly what the problem is.
If not, what command did you use when you installed RVM?
Are you following the Installation Methods or some other instructions? All too often we find people have either followed the wrong directions, didn't follow the directions completely, or are using the system-wide installation instead of the single-user's sandbox.
The command output you show is not what I see when installing Ruby via RVM for the current 1.9.2 install. If you used:
rvm install 1.9.2-head
I recommend instead you use:
rvm install 1.9.2
which will pull in 1.9.2-p180, which is the current stable branch, rather than the latest bleeding-edge version.
In case you haven't solved this problem, I'm running Ubuntu 11.0 and I used sudo apt-get install ruby-rvm and rvm installed perfectly!
Related
I installed rvm on my Linux machine and download simple project from github. I tried to run rails s, but got a error with ruby version:
I executed next commands:
rvm install ruby-2.3.0
rvm use ruby-2.3.0
rvm use ruby-2.3.0 --default
When I opened the project and ran rails s, I got this error
https://i.imgur.com/Dwvp8WF.png
Update
My Gemfile has ruby 2.3.0
Can't run bundle install because of this error https://imgur.com/a/UMcirdt
w
which rails, which ruby: https://imgur.com/a/vycG8wG
I haven't used rvm, but I'm using rbenv for version management.
From what I've read, it works similarly, although the commands are a little bit different.
Did command rvm use ruby-2.3.0 inside the project folder generate a file called .ruby_version?
It should list the current version of ruby used in this project
After checked the errors on your updated screenshot, I think it's better just do this:
rm -r ~/.bundle
bundle
bundle install
Maybe just
rvm reinstall all
then try again.
If permission error happens, run
rvm fix-permissions
And then do it again.
I am trying to install and set up my dev environment for RoR, on a Mac OSX Maverick 10.9.
After run the command:
$ rvm install ruby-2.0.0-p353
the following error out:
Installing required packages: libyaml, openssl.
Error running 'requirements_osx_brew_libs_install libyaml openssl',
showing last 15 lines of /Users/wlinares/.rvm/log/1388963243_ruby-2.0.0-p353/package_install_libyaml_openssl.log
esac;
return $ret
}
}
I downloaded libyaml from http://pyyaml.org/download/libyaml/ and installed following the default instructions.
Then I made the same for openssl so it was installed successfully under: /usr/lib/
Anyone has overcome this error? thanks!
You could try:
$ rvm install 2.0.0-p353 --autolibs=enable
After trying many tricks I could not overcome the issue, then I uninstalled everything and restart the process as a beginner I am. I decided to run the command.
$ gem install rails
then I installed gems:
$ gem install rubygems-update
and finally tested the environment with: rails new blog command.
Until here all seems to be working fine, but I am following the ruby guides in order to start coding my project. I don't have RVM now so I don't know how to handle with upgrades and versions.
That is my only problem, because I was told that Rails change frequently.
I would like to know now how to handle with upgrades including gems.
After getting Xcode rvm install 1.9.3 works totally fine. However, rvm install 1.8.7 throws the following error.
~ ☺ rvm install 1.8.7
Installing Ruby from source to: /Users/jordanscales/.rvm/rubies/ruby-1.8.7-p358, this may take a while depending on your cpu(s)...
ruby-1.8.7-p358 - #fetching
ruby-1.8.7-p358 - #extracting ruby-1.8.7-p358 to /Users/jordanscales/.rvm/src/ruby-1.8.7-p358
Error running 'tar xjf /Users/jordanscales/.rvm/archives/ruby-1.8.7-p358.tar.bz2 -C /Users/jordanscales/.rvm/tmp/rvm_src_30581 ', please read /Users/jordanscales/.rvm/log/ruby-1.8.7-p358/extract.log
There has been an error while trying to extract the source.
Halting the installation.
There has been an error fetching the ruby interpreter. Halting the installation.
Please be aware that you just installed a ruby that requires 2 patches just to be compiled on up to date linux system.
This may have known and unaccounted for security vulnerabilities.
Please consider upgrading to Ruby 1.9.3-194 which will have all of the latest security patches.
~ ☺
The log reads
[2012-06-04 17:06:23] tar xjf /Users/jordanscales/.rvm/archives/ruby-1.8.7-p358.tar.bz2 -C /Users/jordanscales/.rvm/tmp/rvm_src_30581
ruby-1.8.7-p358/lib/test/unit/ui/gtk/testrunner.rb: (Empty error message)
tar: Error exit delayed from previous errors.
Any idea how to fix? I've tried rvm get head, installing gcc-4.2 and using that, using clang, etc. But nothing seems to work.
Make sure to satisfy all requirements specified by:
rvm requirements
Including Xcode 4.1 or osx-gcc-installer
Run (to fix broken download):
rvm cleanup archives
and try again:
rvm reinstall 1.8.7
Is there any reason why you are going with 1.8.7? it's about at end of life and 1.9.3 should be used instead if this is not an requirement.
I'm trying to use rvm (the Ruby version manager) on a Mac Mini. However, when I try:
rvm install 1.9.2
I get ERROR: Unrecognized command line argument: 'install 1.9.2' ( see: 'rvm usage' )
When I try:
rvm use 1.9.2
I also get ERROR: Unrecognized command line argument: 'use 1.9.2' ( see: 'rvm usage' )
rvm usage works fine, though.
Anyone know what's wrong? I think I found a message in another forum that said my bash might be outdated, resulting in some regex being incorrectly parsed possibly, but bash --version says my bash version is 3.2.48(1)-release, which is the same version as on my MacBook Pro, which can run rvm fine.
UPDATE: Solved (kind of) -- for some reason, my /usr/local/bin/rvm is at version 1.10.2 (the latest) and yet gives me all these errors. But if I switch to .rvm/bin/rvm, which is also at version 1.10.2, everything works fine... So bounty will be given to anyone who can explain why!
You might have a really old rvm installed. The best procedure is to re-install using the method on the RVM page. It changes from time to time so I'm not pasting it here.
I've never seen any issues with bash as the OS usually has a reasonably up-to-date version and rvm runs on a variety of systems.
You can try with this command first, before install Ruby in order to know if you meet installation requirements:
rvm --debug requirements ruby-1.9.2
After that you can run the install command:
rvm install 1.9.2
Quote my source: RVM error with Requirements installation failed with status:1
I am trying to gem install libxml-ruby under RVM's 1.9.2-p0 on a Snow Leopard installation. The build process of the native extension, however, halts with this error:
~/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/mkmf.rb:368:in 'try_do': The complier failed to generate an executable file. (RuntimeError)
You have to install development tools first.
I'm not sure where exactly to start in terms of debugging this issues, but if anyone has a hint at a solution, I would much appreciate it. Here is a full dump of the log: https://gist.github.com/3b13bf6f66f5bd6033ca.
The message:
You have to install development tools first.
means you don't have Apple's XCode development environment installed. You can download it from Apple's XCode site with a free registration.
The XCode environment is also included with the Snow Leopard DVD, but it was buggy, so download the latest version.
Your question isn't exactly clear though. RVM isn't anywhere near a 1.9.2 release, so I think you mean "Ruby 1.9.2-p0". If so, then I'm not sure how you got Ruby installed under RVM's control without the development environment unless... did you run sudo or su to root before trying to install LibXML? If so, that is potentially the problem as you're never supposed to install gems under RVMs control using sudo if you're running a single-user version of RVM.
If you're sure all your existing RVM and Ruby and XCode are good, try rvm package install libxml2.
Also, as a safety tip, remember to periodically run rvm get head to make sure its current. I run it every other day, but weekly or monthly should be good.