其他分享
首页 > 其他分享> > Mac终端解压rar

Mac终端解压rar

作者:互联网

 1. 安装brew

在终端输入

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

安装成功后会提示

==> Next steps:

- Run `brew help` to get started

- Further documentation:

https://docs.brew.sh

 

2. 此时在终端输入

brew install unrar

出错,原因不明。。。

==> Downloading https://homebrew.bintray.com/bottles/unrar-5.7.5.high_sierra.bottle.tar.gz

==> Downloading from https://akamai.bintray.com/3d/3d5b170619917ee01c311696c457eb1b75310cc13cbe5cc7fc57c37e17c31a44?__gda__=exp=1558401851

curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to akamai.bintray.com:443

Error: Failed to download resource "unrar"

Download failed: https://homebrew.bintray.com/bottles/unrar-5.7.5.high_sierra.bottle.tar.gz

Warning: Bottle installation failed: building from source.

==> Downloading https://www.rarlab.com/rar/unrarsrc-5.7.5.tar.gz

###### 8.8%

curl: (56) LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60

Error: An exception occurred within a child process:

DownloadError: Failed to download resource "unrar"

Download failed: https://www.rarlab.com/rar/unrarsrc-5.7.5.tar.gz

 

3. 于是我进入了rar所在的文件夹,给了这个文件夹全部权限。

cd /Users/lisiyi/Documents

chmod -R 777 ./

再解压一次,报错unrar not found,说明unrar没安装上。

unrar x Node.rar

-bash: unrar: command not found

查看了一下brew,么得问题。

$ brew

Example usage:

brew search [TEXT|/REGEX/]

brew info [FORMULA...]

brew install FORMULA...

brew update

brew upgrade [FORMULA...]

brew uninstall FORMULA...

brew list [FORMULA...]

Troubleshooting:

brew config

brew doctor

brew install --verbose --debug FORMULA

Contributing:

brew create [URL [--no-fetch]]

brew edit [FORMULA...]

Further help:

brew commands

brew help [COMMAND]

man brew

https://docs.brew.sh

 

4. 那么就再装一次unrar~

brew install unrar

Updating Homebrew...

==> Auto-updated Homebrew!

Updated 1 tap (homebrew/core).

==> New Formulae

dbmate

==> Downloading https://homebrew.bintray.com/bottles/unrar-5.7.5.high_sierra.bottle.tar.gz

==> Downloading from https://akamai.bintray.com/3d/3d5b170619917ee01c311696c457eb1b75310cc13cbe5cc7fc57c37e17c31a44?__gda__=exp=1558404088

######################################################################## 100.0%

==> Pouring unrar-5.7.5.high_sierra.bottle.tar.gz

标签:解压,...,unrar,Mac,rar,https,brew,FORMULA,com
来源: https://www.cnblogs.com/cnlisiyiii-stu/p/11627141.html