Install socat on Mac OSX

本文介绍如何在Mac上安装实用的网络工具socat及软件包管理工具Homebrew,并提供详细的步骤说明。
About the App
Install the App
  1. Press Command+Space and type Terminal and press enter/return key.
  2. Run in Terminal app:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

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

==> This script will install:

/usr/local/bin/brew

/usr/local/share/doc/homebrew

/usr/local/share/man/man1/brew.1

/usr/local/share/zsh/site-functions/_brew

/usr/local/etc/bash_completion.d/brew

/usr/local/Homebrew


Press RETURN to continue or any other key to abort

==> Downloading and installing Homebrew...

remote: Counting objects: 6205, done.

remote: Compressing objects: 100% (3795/3795), done.

remote: Total 6205 (delta 3540), reused 4107 (delta 2217), pack-reused 0

Receiving objects: 100% (6205/6205), 3.54 MiB | 9.00 KiB/s, done.

Resolving deltas: 100% (3540/3540), done.

From https://github.com/Homebrew/brew

 * [new branch]      master     -> origin/master

 * [new tag]         0.1        -> 0.1

 * [new tag]         0.2        -> 0.2

 * [new tag]         0.3        -> 0.3

 * [new tag]         0.4        -> 0.4

 * [new tag]         0.5        -> 0.5

 * [new tag]         0.6        -> 0.6

 * [new tag]         0.7        -> 0.7

 * [new tag]         0.7.1      -> 0.7.1

 * [new tag]         0.8        -> 0.8

 * [new tag]         0.8.1      -> 0.8.1

 * [new tag]         0.9        -> 0.9

 * [new tag]         0.9.1      -> 0.9.1

 * [new tag]         0.9.2      -> 0.9.2

 * [new tag]         0.9.3      -> 0.9.3

 * [new tag]         0.9.4      -> 0.9.4

 * [new tag]         0.9.5      -> 0.9.5

 * [new tag]         0.9.8      -> 0.9.8

 * [new tag]         0.9.9      -> 0.9.9

 * [new tag]         1.0.0      -> 1.0.0

 * [new tag]         1.0.1      -> 1.0.1

 * [new tag]         1.0.2      -> 1.0.2

 * [new tag]         1.0.3      -> 1.0.3

 * [new tag]         1.0.4      -> 1.0.4

 * [new tag]         1.0.5      -> 1.0.5

 * [new tag]         1.0.6      -> 1.0.6

 * [new tag]         1.0.7      -> 1.0.7

 * [new tag]         1.0.8      -> 1.0.8

 * [new tag]         1.0.9      -> 1.0.9

 * [new tag]         1.1.0      -> 1.1.0

 * [new tag]         1.1.1      -> 1.1.1

 * [new tag]         1.1.10     -> 1.1.10

 * [new tag]         1.1.11     -> 1.1.11

 * [new tag]         1.1.12     -> 1.1.12

 * [new tag]         1.1.13     -> 1.1.13

 * [new tag]         1.1.2      -> 1.1.2

 * [new tag]         1.1.3      -> 1.1.3

 * [new tag]         1.1.4      -> 1.1.4

 * [new tag]         1.1.5      -> 1.1.5

 * [new tag]         1.1.6      -> 1.1.6

 * [new tag]         1.1.7      -> 1.1.7

 * [new tag]         1.1.8      -> 1.1.8

 * [new tag]         1.1.9      -> 1.1.9

 * [new tag]         1.2.0      -> 1.2.0

 * [new tag]         1.2.1      -> 1.2.1

HEAD is now at 744e7dd Merge pull request #2679 from MikeMcQuaid/parallel-rubocop

==> Tapping homebrew/core

Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...

fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': SSLRead() return error -9806

Error: Failure while executing: git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1

Error: Failure while executing: /usr/local/bin/brew tap homebrew/core

Failed during: /usr/local/bin/brew update --force

MikedeMacBook-Pro:~ mike_lee$


  1. and press enter/return key. Wait for the command to finish.
  2. Run:
    brew install socat

Done! You can now use socat.






Homebrew

===================================

brew 又叫Homebrew,是Mac OSX上的软件包管理工具,能在Mac中方便的安装软件或者卸载软件, 只需要一个命令, 非常方便brew类似ubuntu系统下的apt-get的功能

阅读目录

  1. 安装brew
  2. 使用brew安装软件
  3. 使用brew卸载软件
  4. 使用brew查询软件
  5. 其他brew命令

 

安装brew

brew 的官方网站: http://brew.sh/   在官方网站对brew的用法进行了详细的描述

安装方法:  在Mac中打开Termal:  输入命令:

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

 不知道为什么, 在国内经常被屏蔽 

使用brew安装软件

一个命令就搞定了, 比如安装git

brew install git

比如安装wget

brew install wget

 

使用brew卸载软件

卸载更方便了

brew uninstall wget

 

使用brew查询软件

有时候,你不知道你安装的软件的名字, 那么你需要先搜索下, 查到包的名字。

比如我要安装

brew search /wge*/

/wge*/是个正则表达式, 需要包含在/中

 

 

其他brew命令

brew list           列出已安装的软件

brew update     更新brew

brew home       用浏览器打开brew的官方网站

brew info         显示软件信息

brew deps        显示包依赖

 











评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值