<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Read Sean

    Read me, read Sean.
    posts - 508, comments - 655, trackbacks - 9, articles - 4

    Mac安裝tsocks

    Posted on 2014-05-07 23:23 laogao 閱讀(4082) 評論(2)  編輯  收藏 所屬分類: Computer Usage
    不知道從什么時候開始的,tsocks在Mac下面安裝要費些周折,brew官方和曾經一度存在的第三方tap都不再支持直接brew install,需要手工創建formula。過程倒也還OK:

    vim /usr/local/Library/Formula/tsocks.rb

    require 'formula'

    class Tsocks < Formula
      # The original is http://tsocks.sourceforge.net/
      # This GitHub repo is a maintained fork with OSX support

      homepage 'http://github.com/pc/tsocks'
      head 'https://github.com/pc/tsocks.git'

      depends_on 'autoconf' => :build if MacOS.xcode_version.to_f >= 4.3

      def install
        system "autoconf""-v"
        system "./configure""--prefix=#{prefix}""--disable-debug""--disable-dependency-tracking""--with-conf=#{config_file}"

        inreplace("tsocks") { |bin| bin.change_make_var! "LIBDIR", lib }

        system "make"
        system "make install"

        etc.install "tsocks.conf.simple.example" => "tsocks.conf" unless config_file.exist?
      end

      def test
        puts 'Your current public ip is:'
        ohai `curl -sS ifconfig.me 2>&1`.chomp
        puts "If your correctly configured #{config_file}, this should show the ip you have trough the proxy"
        puts 'Your ip through the proxy is:'
        ohai `tsocks curl -sS ifconfig.me 2>&1`.chomp
      end

      def config_file
        etc / 'tsocks.conf'
      end
    end

    有了上述formula之后,即可 brew install --HEAD tsocks 。

    Feedback

    # re: Mac安裝tsocks  回復  更多評論   

    2014-05-11 21:23 by ayanamist
    有一個proxychains-ng項目,還在更新,可以試試的

    # re: Mac安裝tsocks  回復  更多評論   

    2014-07-17 20:40 by mzj
    安裝不上

    brew install --HEAD tsocks 1 ?
    ==> Cloning https://github.com/pc/tsocks.git
    Updating /Library/Caches/Homebrew/tsocks--git
    ==> autoconf -v
    ==> ./configure --prefix=/usr/local/Cellar/tsocks/HEAD --with-conf=/usr/local/etc/tsocks.conf
    ==> make
    ==> make install
    mkdir /usr/local/Cellar/tsocks/HEAD/share/man/man8
    /usr/bin/install -c -m 644 tsocks.8 /usr/local/Cellar/tsocks/HEAD/share/man/man8/
    /bin/sh mkinstalldirs "/usr/local/Cellar/tsocks/HEAD/share/man/man5"
    mkdir /usr/local/Cellar/tsocks/HEAD/share/man/man5
    /usr/bin/install -c -m 644 tsocks.conf.5 /usr/local/Cellar/tsocks/HEAD/share/man/man5/

    READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting

    求指教。
    主站蜘蛛池模板: 久热中文字幕在线精品免费| 午夜不卡久久精品无码免费| 无码人妻一区二区三区免费 | 亚洲成a人无码亚洲成www牛牛 | 一个人免费高清在线观看| 亚洲色偷偷偷网站色偷一区| 在线涩涩免费观看国产精品 | 抽搐一进一出gif免费视频| 久久国产成人亚洲精品影院| 国产乱妇高清无乱码免费| 亚洲欧洲自拍拍偷午夜色无码| 99re8这里有精品热视频免费| 亚洲国产精品无码久久SM| 99热在线免费观看| 亚洲熟妇av一区二区三区下载| 成人免费视频69| 亚洲码和欧洲码一码二码三码| 亚洲中文无码永久免费| 久久久久精品国产亚洲AV无码| 亚洲免费福利在线视频| 亚洲午夜理论片在线观看| 亚洲 无码 在线 专区| 特级做A爰片毛片免费看无码 | 永久免费av无码网站yy| 亚洲综合无码一区二区三区| 中文字字幕在线高清免费电影| 亚洲AV综合色区无码一区| 2020久久精品国产免费| 国产AV无码专区亚洲AV蜜芽| 亚洲精品国产V片在线观看| 一级毛片不卡片免费观看| 亚洲日韩一区二区三区| 亚洲中文字幕不卡无码| 2019中文字幕免费电影在线播放| 亚洲av综合av一区二区三区| 亚洲深深色噜噜狠狠爱网站| 老司机在线免费视频| 久久久久久毛片免费看| 国产精品亚洲专区在线观看| 国产亚洲成人久久| 毛片在线看免费版|