<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

    求指教。
    主站蜘蛛池模板: 免费无码又爽又高潮视频| 在线天堂免费观看.WWW| 久久精品国产亚洲7777| 成人免费视频一区二区| 国产乱辈通伦影片在线播放亚洲 | 亚洲精品无码人妻无码| 免费黄色福利视频| 亚洲欧洲日韩极速播放| 全部免费毛片在线播放| 亚洲精品熟女国产| 国内免费高清在线观看| 亚洲s码欧洲m码吹潮| 亚洲av无码乱码在线观看野外 | 久草免费福利视频| 91情国产l精品国产亚洲区| 67194成手机免费观看| 亚洲毛片基地4455ww| 国产黄色片在线免费观看| 久久亚洲AV成人无码国产最大| 国产在线观看xxxx免费| 久久亚洲国产中v天仙www | 亚洲AV永久无码精品成人| 久久爰www免费人成| 亚洲综合激情六月婷婷在线观看 | 国产精品免费看久久久 | 亚洲国产成人片在线观看| 99热免费在线观看| 天堂亚洲国产中文在线| 亚洲精品亚洲人成在线观看下载 | 国产精品另类激情久久久免费 | 久久久亚洲裙底偷窥综合| 18禁超污无遮挡无码免费网站国产 | 久久久久久夜精品精品免费啦| 国产又大又粗又硬又长免费| 狠狠热精品免费观看| 久久久久亚洲AV片无码| 成人毛片18女人毛片免费96 | 91在线老王精品免费播放| 精品久久久久久久久亚洲偷窥女厕| 中文毛片无遮挡高潮免费| 亚洲av成人无码网站…|