- 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.
推薦閱讀
- Dynamics 365 for Finance and Operations Development Cookbook(Fourth Edition)
- WildFly:New Features
- FreeSWITCH 1.8
- CockroachDB權威指南
- Python金融數據分析
- MongoDB權威指南(第3版)
- Android項目實戰:手機安全衛士開發案例解析
- Mastering C++ Multithreading
- Buildbox 2.x Game Development
- Apache Camel Developer's Cookbook
- QPanda量子計算編程
- 邊玩邊學Scratch3.0少兒趣味編程
- jQuery從入門到精通(微課精編版)
- 實驗編程:PsychoPy從入門到精通
- Python繪圖指南:分形與數據可視化(全彩)