ruby radare2自制软件

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ruby radare2自制软件相关的知识,希望对你有一定的参考价值。

require "formula"

class R2 < Formula
  homepage "http://radare.org"
  revision 2

  head do
    url "https://github.com/radare/radare2.git"

    resource "bindings" do
      url "https://github.com/radare/radare2-bindings.git"
    end
  end

  depends_on "pkg-config" => :build
  #depends_on "valabind" => :build
  #depends_on "swig" => :build
  #depends_on "gobject-introspection" => :build
  #depends_on "libewf"
  #depends_on "libmagic"
  depends_on "gmp"
  #depends_on "lua51" # It seems to latch onto Lua51 rather than Lua. Enquire this upstream.
  depends_on "openssl"

  def install
    # Build Radare2 before bindings, otherwise compile = nope.
    system "./configure", "--prefix=#{prefix}", "--with-openssl"
    system "make"
    system "make", "install"

    #resource("bindings").stage do
    #  ENV.append_path "PKG_CONFIG_PATH", "#{lib}/pkgconfig"

    #  system "./configure", "--prefix=#{prefix}"
    #  system "make"
    #  system "make", "install", "DESTDIR=#{prefix}"
    #end
  end
end

以上是关于ruby radare2自制软件的主要内容,如果未能解决你的问题,请参考以下文章

ruby 通过自制软件启用cpu挖掘的cgminer公式

如何避免在 OSX 上从自制​​软件中“无法加载此类文件 - utils/popen”

ruby 自制的libcpuid公式

ruby 自制的telseq安装;使用brew install(url)

radare2 中的 ASM 模式搜索

radare2 和 EVM