<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级毛片无码A∨ | 日韩一区二区三区免费播放| 久久夜色精品国产噜噜亚洲AV| 亚洲精品国产电影| 老司机永久免费网站在线观看| 最近中文字幕无免费| baoyu122.永久免费视频| 青青视频免费在线| 亚洲精品GV天堂无码男同| 亚洲理论片在线中文字幕| 亚洲av日韩av高潮潮喷无码| 久久精品国产亚洲7777| 免费在线观看黄网站| 免费看的成人yellow视频| 亚洲天堂免费在线| 久久午夜夜伦鲁鲁片免费无码影视| a级成人免费毛片完整版| 国产黄在线播放免费观看| 日韩精品免费一线在线观看| 久久精品国产亚洲AV天海翼| 亚洲人成网站999久久久综合| 4hu四虎最新免费地址| 日韩精品久久久久久免费| 日本免费中文视频| 免费无码又爽又刺激高潮软件| 国产免费一级高清淫曰本片| 人妻无码中文字幕免费视频蜜桃| 最新亚洲人成网站在线观看 | 免费A级毛片av无码| 国产精品免费观看调教网| 免费国产在线视频| 无码AV片在线观看免费| 免费观看四虎精品成人| 亚洲成a人片在线观看天堂无码| 亚洲精品久久无码av片俺去也| 亚洲日韩精品A∨片无码加勒比| 亚洲欧洲无码一区二区三区| 亚洲aⅴ无码专区在线观看| 在线观看亚洲精品专区| 黄色三级三级三级免费看|