Last active
December 8, 2020 17:11
-
-
Save galbus/1fa502155e54a77604aa to your computer and use it in GitHub Desktop.
Install Macports, NVM & RVM on OSX Yosemite
This file contains hidden or 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-by step instructions for installing: # | |
| # # | |
| # - Macports # | |
| # - RVM & Ruby # | |
| # - NVM & Node # | |
| # # | |
| # DO NOT execute all steps at once # | |
| # Do each one manually & check the output # | |
| # # | |
| # Tested on clean OSX Yosemite # | |
| ############################################# | |
| ##### | |
| # 1 # | |
| ######################## | |
| # install xcode (full) # | |
| ######################## | |
| xcode-select --install | |
| ##### | |
| # 2 # | |
| ########################## | |
| # agree to Xcode license # | |
| ########################## | |
| sudo xcodebuild -license | |
| ##### | |
| # 3 # | |
| ########################################## | |
| # install macports for your OS X version # | |
| ########################################## | |
| open https://www.macports.org/install.php | |
| ##### | |
| # 4 # | |
| ############### | |
| # install RVM # | |
| ############### | |
| \curl -sSL https://get.rvm.io | bash -s stable --autolibs=macports --rails | |
| ##### | |
| # 5 # | |
| ################################## | |
| # close & reopen terminal window # | |
| ################################## | |
| exit | |
| ##### | |
| # 6 # | |
| ############################################### | |
| # make sure we’re using Macports with our RVM # | |
| ############################################### | |
| rvm autolibs macports | |
| ##### | |
| # 7 # | |
| ################ | |
| # install Ruby # | |
| ################ | |
| echo progress-bar >> ~/.curlrc | |
| source ~/.rvm/scripts/rvm | |
| rvm list known | |
| rvm install 2.1 | |
| rvm use 2.1 --default | |
| ##### | |
| # 8 # | |
| ##################### | |
| # install Ruby Gems # | |
| ##################### | |
| gem install bundler compass | |
| ##### | |
| # 9 # | |
| ############### | |
| # install NVM # | |
| ############### | |
| curl https://raw.githubusercontent.com/creationix/nvm/v0.22.0/install.sh | bash | |
| ###### | |
| # 10 # | |
| ################################## | |
| # close & reopen terminal window # | |
| ################################## | |
| exit | |
| ###### | |
| # 11 # | |
| ################ | |
| # install Node # | |
| ########################################### | |
| # for ‘nvm: command not found’ errors see # | |
| # http://stackoverflow.com/a/16905910 # | |
| ########################################### | |
| nvm install 0.10 | |
| nvm use 0.10 | |
| ###### | |
| # 12 # | |
| ######################### | |
| # install Node packages # | |
| ######################### | |
| npm install -g grunt-cli http-server uglify-js jshint yo node-inspector forever nodemon generator-angular bower |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment