- 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.
推薦閱讀
- C/C++算法從菜鳥到達人
- 深入淺出Windows API程序設計:編程基礎篇
- PHP+MySQL+Dreamweaver動態網站開發從入門到精通(第3版)
- 基于ARM Cortex-M4F內核的MSP432 MCU開發實踐
- Visual Basic程序設計習題與上機實踐
- HoloLens與混合現實開發
- Machine Learning With Go
- Mastering Gephi Network Visualization
- C#面向對象程序設計(第2版)
- Learning C++ by Creating Games with UE4
- DB2SQL性能調優秘笈
- 金融商業數據分析:基于Python和SAS
- 3D Printing Designs:The Sun Puzzle
- 從零開始構建深度前饋神經網絡:Python+TensorFlow 2.x
- Node.js應用開發