微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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
                
                                 

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐