<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永久无码天堂影院| 亚洲情A成黄在线观看动漫软件| 久久国产亚洲高清观看| 久久亚洲国产成人精品性色| 亚洲电影一区二区| 亚洲国产美女视频| 99久久国产亚洲综合精品| 77777亚洲午夜久久多喷| 亚洲AV无码一区二区三区久久精品 | 综合一区自拍亚洲综合图区 | 免费大黄网站在线观看| 亚洲国产成人精品无码久久久久久综合| 国产嫩草影院精品免费网址| 亚洲一区二区三区乱码A| 亚洲av无码一区二区乱子伦as| 亚洲高清在线视频| 亚洲色少妇熟女11p| 成av免费大片黄在线观看| 69式互添免费视频| 亚洲AV无码乱码在线观看| 亚洲国产成人一区二区三区| 成人亚洲国产va天堂| 中文字幕在线免费视频| 好爽又高潮了毛片免费下载 | 国产免费播放一区二区| 国产高清不卡免费在线| 亚洲最大激情中文字幕| 亚洲色中文字幕在线播放|