<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人在线观看青青| 亚洲第一福利网站在线观看| 欧洲乱码伦视频免费国产| 中文字幕亚洲日韩无线码| 免费网站看av片| 亚洲国产日产无码精品| 我想看一级毛片免费的| 国产在亚洲线视频观看| 久久亚洲av无码精品浪潮| 野花香高清在线观看视频播放免费 | 免费女人高潮流视频在线观看 | 亚洲精品无码永久在线观看男男| 国产男女猛烈无遮挡免费网站 | 2021在线永久免费视频| 国产午夜亚洲精品| 亚洲精品在线视频| 伊人久久免费视频| 亚洲av无码偷拍在线观看| 国产亚洲精品无码拍拍拍色欲| 免费国产污网站在线观看15| 亚洲狠狠色丁香婷婷综合| 亚洲日韩精品无码专区网站| 99精品视频免费在线观看| 亚洲AV无码一区二区三区电影| 亚洲精品V欧洲精品V日韩精品| 亚洲性线免费观看视频成熟 | 91亚洲精品麻豆| 免费一级毛片正在播放| 久久久久久久岛国免费播放| 亚洲综合无码一区二区痴汉| 国产亚洲AV手机在线观看 | 亚洲国产精品综合久久网络 | 国产高清不卡免费在线|