<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 閱讀(4083) 評論(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

    求指教。
    主站蜘蛛池模板: 在线观看亚洲网站| 亚洲成av人无码亚洲成av人| 一区二区在线视频免费观看| 最新69国产成人精品免费视频动漫 | 免费人成在线观看播放a| 在线视频免费观看www动漫| 亚洲AV日韩综合一区尤物| 欧美好看的免费电影在线观看| 亚洲一区二区影视| 特级做A爰片毛片免费69| jiz zz在亚洲| 又爽又黄无遮挡高清免费视频 | 四虎影视在线影院在线观看免费视频 | 最新国产成人亚洲精品影院| 97视频免费在线| 亚洲人成网站999久久久综合| 四虎影院免费在线播放| 香蕉视频亚洲一级| 亚洲伊人久久综合影院| 免费成人在线电影| 亚洲av成人一区二区三区| 天堂在线免费观看中文版| 黄色网址免费在线| 亚洲精品无码不卡在线播HE| 日本免费中文字幕| 中日韩亚洲人成无码网站| 免费一级国产生活片| 免费看少妇高潮成人片| 亚洲精品国产成人专区| 成人免费午夜在线观看| 一级黄色毛片免费看| 亚洲欧洲国产精品久久| 蜜臀91精品国产免费观看| 久青草视频在线观看免费| 亚洲福利电影在线观看| 免费不卡中文字幕在线| 久草免费手机视频| 国产精品亚洲а∨无码播放麻豆 | 国产91在线免费| 日本免费在线观看| 亚洲欧美一区二区三区日产|