Install common development tools under Mac

Source: Internet
Author: User
Tags install homebrew

Mac for most development, still pretty good, simple and efficient speed. Although it brought a lot of development environment, such as Apache,php,python,easy_install, but still not enough to meet the needs. Today's summary of the common tools. 1, install homebrew

Homebrew is a powerful container that helps you install something that Mac doesn't have.

Homebrew installs the stuff you need that Apple didn ' t.
Homebrew complements OS x. Install your gems with gems, and their with brew.
Enter the terminal, enter the following command to install homebrew

/usr/bin/ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"
2, install wget with homebrew

Wget is a free tool for automatically downloading files from the network, which supports downloading via HTTP, HTTPS, FTP three most common TCP/IP protocols, and can use HTTP proxies. The origin of the wget name is the combination of "World Wide Web" and "get". Install Command:

Brew Install wget
3, install Python

Mac systems actually bring a python execution environment to run Python, but development may not be enough, so we need to reinstall Python.
1.homebrew installation Python,sudo elevated privileges.

sudo brew install Python

2. Download and install from the website
You can download the latest version of Python from the https://www.python.org/download, just like ordinary software, installation is OK, after the upgrade uninstall have to solve their own.
To view the installation location:

which Python

When the installation is complete, type: Python in the terminal to verify that the installation was successful. 4, install PIP

The PIP is a tool for installing and managing Python packages and is a replacement for Easy_install. The PIP can be installed with a Mac-Easy_install, open the terminal terminal, and enter:

sudo easy_install pip

or use wget installation:

wget https://bootstrap.pypa.io/get-pip.py
5, install the editor

Sublime,mou,macdown or something like that, don't say it. 6, install the PHP environment

I have a special introduction: Mac Build AMP Environment (apache+mysql+php) 6, install the Android development environment

Look at my other blog, specifically:
Android Studio 2.0+ Efficient Development 7, install NDK

Google Official downloads:
Http://developer.android.com/ndk/downloads/index.html the address. Locate the NDK of the corresponding system and place it in the specified directory.
1,CD to the directory where the files are changed. Execute command to elevate permissions:

chmod a+x  android-ndk-r10c-darwin-x86_64.bin     ./android-ndk-r10c-darwin-x86_64.bin

2, modify system environment variables
Open the terminal, enter Open. Bash_profile, open Configuration path, append your ndk file path,

Export Android_ndk_home=/users/duqian/library/android/sdk/ndk-bundle

3, input ndk-build-v, appear the information description NDK configuration OK

duqian-mbp:~ duqian$ ndk-build-v
GNU make 3.81
Copyright (C) 2006 free Software Foundation  , Inc.
This is free software; The source for copying conditions.
There is NO warranty; Not even for merchantability or FITNESS for A
particular purpose.
8, other related

To be continued, Du Hu, dusan,291902259.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.