zoukankan      html  css  js  c++  java
  • 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.sh
    

    brew 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

  • 相关阅读:
    【spring mvc】application context中【bean】的生命周期
    【spring mvc】基础概念
    TSql Work with comma
    统计公司人数
    t_sql中的COUNT函数
    T_SQL又另外两种找出3年连续获奖的人
    A Sql Stumper
    验证ISIN, SEDOLE和CUSIP
    按月份进行统计
    使用4中不同的方式找出连续三年获奖的人
  • 原文地址:https://www.cnblogs.com/wx2017/p/7232424.html
Copyright © 2011-2022 走看看