<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) 評(píng)論(2)  編輯  收藏 所屬分類: Computer Usage
    不知道從什么時(shí)候開(kāi)始的,tsocks在Mac下面安裝要費(fèi)些周折,brew官方和曾經(jīng)一度存在的第三方tap都不再支持直接brew install,需要手工創(chuàng)建formula。過(guò)程倒也還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  回復(fù)  更多評(píng)論   

    2014-05-11 21:23 by ayanamist
    有一個(gè)proxychains-ng項(xiàng)目,還在更新,可以試試的

    # re: Mac安裝tsocks  回復(fù)  更多評(píng)論   

    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

    求指教。
    主站蜘蛛池模板: 一级黄色免费网站| 7777久久亚洲中文字幕蜜桃| 中文无码亚洲精品字幕| 国产精品视频免费观看| 久久精品视频亚洲| 免费毛片在线看不用播放器| 国产午夜亚洲不卡| 免费一区二区无码东京热| 亚洲AV无码乱码在线观看裸奔| 日本在线看片免费| 亚洲小说图片视频| 毛片免费视频观看| 亚洲人成电影网站免费| 日韩毛片免费在线观看| 人禽伦免费交视频播放| 亚洲国产精品热久久| 午夜国产精品免费观看 | 亚洲国产成人片在线观看| 日韩免费电影网站| 亚洲一区二区三区播放在线 | 成人一a毛片免费视频| 亚洲av无码成人精品区一本二本 | 亚洲成AV人影片在线观看| 亚洲AⅤ永久无码精品AA| 三级黄色在线免费观看| 亚洲视频网站在线观看| 香蕉高清免费永久在线视频| 人妻免费久久久久久久了| 亚洲国产精品无码中文字| 无码人妻一区二区三区免费手机| 亚洲变态另类一区二区三区| 亚洲自偷自偷在线制服| 91成年人免费视频| 免费国产黄网站在线看| 亚洲精品视频在线| 成人免费视频国产| 久久久久久影院久久久久免费精品国产小说 | 亚洲专区一路线二| 女人毛片a级大学毛片免费| 在线观看的免费网站| 456亚洲人成在线播放网站|