Last active
August 29, 2015 14:06
-
-
Save amonmoce/7c500e9832daa56e126f to your computer and use it in GitHub Desktop.
Problems encountered with MAC laptop during the installation of the environment for SOA class. The programming language is Ruby. So we have to install Ruby via RVM. But first Xcode command line tools and Homebrew (as missing package manager for OSX)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 1: Installing Xcode command line tools | |
I already had Xcode IDE installed. I launch Xcode and went to Xcode->Open Developper Tools->More Developpers Tools that led me to a website where i downloaded Xcode command line tools and installed it. And I tried the suggestion on ISS-SOA Github tutorial, the command 'xcode-select --install' which stopped with an error: Can't install the Software because it is not currently available from the Software Update server.Lucky then. | |
Step 2: Installing Homebrew | |
ruby -e "$(curl -fsSL XXXX)" | |
XXXX as an url that was the one on the Homebrew website. | |
brew doctor showed some errors like: | |
Warning: Unbrewed .xxxx files were found in folder XXXX. | |
If you didn't put them there on purpose they could cause problems when | |
building Homebrew formulae, and may need to be deleted. | |
Unexpected .xxxx files: | |
XXXX/[something].xxx | |
Solution:Delete the file XXXX/[something].xxx | |
Warning: /usr/bin occurs before /usr/local/bin | |
This means that system-provided programs will be used instead of those | |
provided by Homebrew. The following tools exist at both paths: | |
curl | |
curl-config | |
Consider setting your PATH so that /usr/local/bin | |
occurs before /usr/bin. Here is a one-liner: | |
echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile | |
Solution: run -> echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile | |
quit and relaunch the terminal | |
(.bash_profile or .profile or bashrc) | |
Step 3: Installing some development packages and then RVM | |
brew install rvm | |
Error: No available formula for rvm | |
Searching taps... | |
I run -> brew tap homebrew/version -> brew install rvm | |
But same problem | |
Tried to install without brew, by using curl | |
curl -L https://get.rvm.io | bash -s stable --autolibs=enable | |
I get: | |
Library not loaded: /usr/local/lib/libcurl.4.dylib | |
Referenced from: /usr/local/bin/curl | |
Reason: Incompatible library version: curl requires version 8.0.0 or later, but libcurl.4.dylib provides version 7.0.0 | |
Step 4: Restart the installations | |
I decide to restart the process by deleting everything: rm -rf /usr/local | |
And then: | |
install command_line_tools_for_os_x_10.9_for_xcode_6.1_beta.dmg | |
run -> ruby -e "$(curl -fsSL XXXX)" from Homebrew site | |
run -> brew install autoconf automake libtool pkg-config apple-gcc42 libyaml readline libxml2 libxslt libksba openssl sqlite | |
Error:No available formula for apple-gcc42 | |
Searching taps... | |
homebrew/dupes/apple-gcc42 | |
run -> brew tap homebrew/dupes | |
run -> brew install autoconf automake libtool pkg-config apple-gcc42 libyaml readline libxml2 libxslt libksba openssl sqlite | |
run -> curl -L get.rvm.io | bash (installing rvm with curl) | |
run -> rvm -v | |
Error:-bash: rvm: command not found | |
run -> source ~/.rvm/scripts/rvm (in order to use rvm in your current shell) | |
run -> rvm get head (install stable version ?) | |
run -> rvm install 2.0.0 (install ruby 2.0.0) | |
run -> rvm use 2.0.0 (use ruby 2.0.0 as current version) | |
run -> rvm default 2.0.0 (version 2.0.0 as default version) | |
run -> ruby -v (check ruby) | |
Xcode command line tools, Homebrew, RVM and RUBY: All installed. | |
Good additionnal resource | |
http://www.interworks.com/blogs/ckaukis/2013/03/05/installing-ruby-200-rvm-and-homebrew-mac-os-x-108-mountain-lion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment