<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

    求指教。
    主站蜘蛛池模板: 亚洲神级电影国语版| 日本久久久久亚洲中字幕| 亚洲精品色在线网站| 免费看少妇作爱视频| 亚洲精品无码永久在线观看男男| 亚洲动漫精品无码av天堂| 亚欧乱色国产精品免费视频| 亚洲性久久久影院| 99在线免费视频| 亚洲午夜精品久久久久久人妖| 免费能直接在线观看黄的视频| 亚洲最大av无码网址| 精品久久久久久无码免费| 国产精品亚洲综合一区| 久久免费国产精品| 在线观看亚洲一区二区| 91频在线观看免费大全| 亚洲国产成人无码AV在线| 国产一卡2卡3卡4卡2021免费观看| 久久被窝电影亚洲爽爽爽| 免费无码又爽又刺激高潮视频| 亚洲免费网站在线观看| 午夜理伦剧场免费| 亚洲一区二区三区91| 亚洲А∨精品天堂在线| 久久国产精品成人免费| 亚洲免费一级视频| 免费在线观看的黄色网址| 美女在线视频观看影院免费天天看| 亚洲日本国产精华液| 免费A级毛片无码A∨免费| 亚洲乱亚洲乱妇无码| 亚洲永久无码3D动漫一区| 精品无码免费专区毛片| 偷自拍亚洲视频在线观看| 亚洲国产天堂久久综合网站| 日韩精品无码区免费专区| 国产精品无码免费专区午夜| 亚洲六月丁香六月婷婷蜜芽| 又大又粗又爽a级毛片免费看| 久久青草国产免费观看|