<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

    求指教。
    主站蜘蛛池模板: 国产gv天堂亚洲国产gv刚刚碰| 亚洲国产精品线观看不卡| 好久久免费视频高清| 亚洲区视频在线观看| 国产中文字幕免费| 国产成人久久AV免费| 亚洲欧美成人av在线观看| 亚洲色精品aⅴ一区区三区| 97在线线免费观看视频在线观看| 搜日本一区二区三区免费高清视频 | 亚洲一区二区三区免费视频| 亚洲А∨精品天堂在线| 亚欧在线精品免费观看一区| 免费的黄色的网站| 亚洲一卡2卡4卡5卡6卡在线99| 国产亚洲成归v人片在线观看| 男女免费观看在线爽爽爽视频| v片免费在线观看| 亚洲一卡一卡二新区无人区| 亚洲91av视频| 中文字幕亚洲一区二区va在线| 女人18毛片水真多免费播放| 人人玩人人添人人澡免费| 视频一区在线免费观看| 亚洲中文久久精品无码1| 亚洲日产韩国一二三四区| 好吊妞788免费视频播放| 99国产精品视频免费观看| 国产日韩精品无码区免费专区国产 | 无码人妻一区二区三区免费n鬼沢| 国产精品亚洲а∨无码播放不卡| 亚洲美女色在线欧洲美女| 国产亚洲人成网站在线观看| 午夜国产羞羞视频免费网站| 成人影片麻豆国产影片免费观看| 最近中文字幕国语免费完整| 中国人免费观看高清在线观看二区 | 久久久青草青青亚洲国产免观| 国产yw855.c免费视频| 好大好硬好爽免费视频| 91精品国产免费久久久久久青草|