- CouchDB and PHP Web Development Beginner’s Guide
- Tim Juravich
- 168字
- 2021-08-13 18:22:51
Time for action — installing Homebrew
We are going to use Terminal to download Homebrew and install it onto our computer.
- Open Terminal.
- Type the following commands into Terminal, pressing Enter after each line:
sudo mkdir -p /usr/local sudo chown -R $USER /usr/local curl -Lf http://github.com/mxcl/homebrew/tarball/master | tar xz -- strip 1 -C/usr/local
- Terminal will respond with a progress bar and show you how the installation process went. When the installation is complete, you will receive a success message, and you will have control of the Terminal again.
What just happened?
We added the directory /usr/local
, which is where Homebrew will save all of its files. Then we made sure that the folder was owned by us (the current user). We then installed Homebrew using a cURL
statement to grab the repository from Github (I'll cover cURL
later in this chapter; we are going to use it quite a bit). After grabbing the repository, it was unzipped, using the command line function tar
, and placed into the /usr/local
folder.
推薦閱讀
- Delphi程序設計基礎:教程、實驗、習題
- Python入門很簡單
- 薛定宇教授大講堂(卷Ⅳ):MATLAB最優化計算
- Learning Laravel 4 Application Development
- Python完全自學教程
- 前端HTML+CSS修煉之道(視頻同步+直播)
- PLC應用技術(三菱FX2N系列)
- Hands-On GUI Programming with C++ and Qt5
- Learning Material Design
- PHP編程基礎與實踐教程
- Simulation for Data Science with R
- Vue.js光速入門及企業項目開發實戰
- Java程序性能優化實戰
- Azure for Architects
- Learning Java Lambdas