I have OSX mavericks and I was trying to install ruby on rails .First I tried Installing via RailsInstaller ( http://railsinstaller.org/en ) ,There was a notice in the website saying "Please do not run the installer on OSX Mavericks until further notice."
Then I tried installing using rvm which turned out to be a night mare .
I followed instructions from all the below links none seem to work
Xcode install on OSX 10.9 - clang: error: no input files
http://railsapps.github.io/installrubyonrails-mac.html
I have installed Xcode 5.0 and I have even manually downloaded Command lines tools
https://developer.apple.com/downloads/index.action
when I try
rails -v
I get a message
Rails is not currently installed on this system. To get the latest version, simply type:
$ sudo gem install rails
Then I tried command for which I got an error message
Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb checking for libkern/OSAtomic.h... yes creating Makefile
make "DESTDIR=" compiling atomic_reference.c atomic_reference.c:57:59: warning: incompatible pointer types passing 'void **' to parameter of type 'volatile int64_t *' (aka 'volatile long long *') [-Wincompatible-pointer-types]
if (OSAtomicCompareAndSwap64(expect_value, new_value, &DATA_PTR(self))) {
^~~~~~~~~~~~~~~ /usr/include/libkern/OSAtomic.h:507:93: note: passing argument to parameter '__theValue' here
I'm not able to use xcode-select --install
either which says the software is not present in the server
Please guide on how to install rails on my osx mavericks
?
Rails 4 needs RubyGems 2.0.3. Update it and you should be good to go.
gem update --system 2.0.3
Then,
gem install rails
Hope it helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.