今天爱分享给大家带来mac sox如何安装【详细教程】,希望能够帮助到大家。
sox的mac安装非常简单,但是百度上居然没搜到,这里弥补一下空缺,首先安装homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
然后,安装sox:
brew install sox
安装日志:
Updating Homebrew... ==> Auto-updated Homebrew! Updated 1 tap (homebrew/core). ==> Updated Formulae ansible awscli juju-wait ansible-lint conjure-up pstoedit ==> Installing dependencies for sox: libogg, flac, lame, libpng, libvorbis, libsndfile, mad, opus and opusfile ==> Installing sox dependency: libogg ==> Downloading https://homebrew.bintray.com/bottles/libogg-1.3.4.mojave.bottle. ==> Downloading from https://akamai.bintray.com/57/57278622c3550ef4cfe1a14aa885d ######################################################################## 100.0% ==> Pouring libogg-1.3.4.mojave.bottle.tar.gz ? /usr/local/Cellar/libogg/1.3.4: 97 files, 473.2KB ==> Installing sox dependency: flac ==> Downloading https://homebrew.bintray.com/bottles/flac-1.3.3.mojave.bottle.ta ==> Downloading from https://akamai.bintray.com/ef/ef7f0557e79c99a79814f4ed29120 ######################################################################## 100.0% ==> Pouring flac-1.3.3.mojave.bottle.tar.gz ? /usr/local/Cellar/flac/1.3.3: 53 files, 2.4MB ==> Installing sox dependency: lame ==> Downloading https://homebrew.bintray.com/bottles/lame-3.100.mojave.bottle.ta Already downloaded: /Users/admin/Library/Caches/Homebrew/downloads/b96cee71ed4329bc9de357a68f60ef14ffd6a0b27d45f3a3478a8ac01c27e30e--lame-3.100.mojave.bottle.tar.gz ==> Pouring lame-3.100.mojave.bottle.tar.gz ? /usr/local/Cellar/lame/3.100: 27 files, 2.1MB ==> Installing sox dependency: libpng ==> Downloading https://homebrew.bintray.com/bottles/libpng-1.6.37.mojave.bottle Already downloaded: /Users/admin/Library/Caches/Homebrew/downloads/1957fe4350dafd271e0a5ae9ac4c9e3583520b3b77111f873366c8a21f2e9703--libpng-1.6.37.mojave.bottle.tar.gz ==> Pouring libpng-1.6.37.mojave.bottle.tar.gz ? /usr/local/Cellar/libpng/1.6.37: 27 files, 1.2MB ==> Installing sox dependency: libvorbis ==> Downloading https://homebrew.bintray.com/bottles/libvorbis-1.3.6.mojave.bott Already downloaded: /Users/admin/Library/Caches/Homebrew/downloads/904a20d43fb270bcc1c290fd357d3a12ef2b9f519ee9cb9f43eb3fbba79b2a15--libvorbis-1.3.6.mojave.bottle.tar.gz ==> Pouring libvorbis-1.3.6.mojave.bottle.tar.gz ? /usr/local/Cellar/libvorbis/1.3.6: 157 files, 2.3MB ==> Installing sox dependency: libsndfile ==> Downloading https://homebrew.bintray.com/bottles/libsndfile-1.0.28.mojave.bo Already downloaded: /Users/admin/Library/Caches/Homebrew/downloads/7d5cc70676ccbf966017c3f4d29e0a199461c392e37b86f24c69b390e10f1c25--libsndfile-1.0.28.mojave.bottle.tar.gz ==> Pouring libsndfile-1.0.28.mojave.bottle.tar.gz ? /usr/local/Cellar/libsndfile/1.0.28: 48 files, 1.8MB ==> Installing sox dependency: mad ==> Downloading https://homebrew.bintray.com/bottles/mad-0.15.1b.mojave.bottle.1 Already downloaded: /Users/admin/Library/Caches/Homebrew/downloads/87718a6c9395963b2a6824cc104a794e9a500df60a0a02f6471dcf208440353a--mad-0.15.1b.mojave.bottle.1.tar.gz ==> Pouring mad-0.15.1b.mojave.bottle.1.tar.gz ? /usr/local/Cellar/mad/0.15.1b: 13 files, 321.3KB ==> Installing sox dependency: opus ==> Downloading https://homebrew.bintray.com/bottles/opus-1.3.1.mojave.bottle.ta Already downloaded: /Users/admin/Library/Caches/Homebrew/downloads/022e104b8443a397084620dd6b9dbbed83e93884a252160feffa7be52e0bb368--opus-1.3.1.mojave.bottle.tar.gz ==> Pouring opus-1.3.1.mojave.bottle.tar.gz ? /usr/local/Cellar/opus/1.3.1: 17 files, 982.4KB ==> Installing sox dependency: opusfile ==> Downloading https://homebrew.bintray.com/bottles/opusfile-0.11_1.mojave.bott ######################################################################## 100.0% ==> Pouring opusfile-0.11_1.mojave.bottle.tar.gz ? /usr/local/Cellar/opusfile/0.11_1: 17 files, 292KB ==> Installing sox ==> Downloading https://homebrew.bintray.com/bottles/sox-14.4.2_3.mojave.bottle. Already downloaded: /Users/admin/Library/Caches/Homebrew/downloads/16b4e9e4c3e1b6b87ec7cda23b369efff98f922504d54f784b78ef32a1885e31--sox-14.4.2_3.mojave.bottle.tar.gz ==> Pouring sox-14.4.2_3.mojave.bottle.tar.gz ? /usr/local/Cellar/sox/14.4.2_3: 23 files, 1.8MB