mac 命令行安装软件 | 您所在的位置:网站首页 › mac命令行安装命令 › mac 命令行安装软件 |
第一步需要在mac上安装brew工具 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"安装成功,出现如下提示 HEAD is now at aa8eb21 Merge pull request #2861 from reitermarkus/cask-search-tty ==> Tapping homebrew/core Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'... remote: Counting objects: 4491, done. remote: Compressing objects: 100% (4284/4284), done. remote: Total 4491 (delta 35), reused 467 (delta 12), pack-reused 0 Receiving objects: 100% (4491/4491), 3.56 MiB | 495.00 KiB/s, done. Resolving deltas: 100% (35/35), done. Tapped 4281 formulae (4,536 files, 11.1MB) ==> Cleaning up /Library/Caches/Homebrew... ==> Migrating /Library/Caches/Homebrew to /Users/yanglongfeng/Library/Caches/Homebrew... ==> Deleting /Library/Caches/Homebrew... Already up-to-date. ==> Installation successful! ==> Homebrew has enabled anonymous aggregate user behaviour analytics. Read the analytics documentation (and how to opt-out) here: http://docs.brew.sh/Analytics.html ==> Next steps: - Run `brew help` to get started - Further documentation: http://docs.brew.shbrew help命令查看brew可以使用的命令行 Example usage: brew search [TEXT|/REGEX/] brew (info|home|options) [FORMULA...] brew install FORMULA... brew update brew upgrade [FORMULA...] brew uninstall FORMULA... brew list [FORMULA...] Troubleshooting: brew config brew doctor brew install -vd FORMULA Developers: brew create [URL [--no-fetch]] brew edit [FORMULA...] http://docs.brew.sh/Formula-Cookbook.html Further help: man brew brew help [COMMAND] brew home例如:安装ideviceinstaller brew install ideviceinstaller 安装后的软件,存放在/usr/local/Cellar 目录下
当运行命令行安装包时报如下错误: Could not connect to lockdownd. Exiting. 这可能是ideviceinstaller这个工具出现了问题,下面是网上找到的解决方法: brew uninstall ideviceinstaller brew uninstall libimobiledevice brew install --HEAD libimobiledevice brew link --overwrite libmobiledevice brew install ideviceinstaller brew link --overwrite ideviceinstaller
|
CopyRight 2018-2019 实验室设备网 版权所有 |