V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
icexfire
V2EX  ›  问与答

OSX安装Fontforge, Error: Failed executing: make (fontforge.rb:38)

  •  
  •   icexfire · 2012-04-04 21:25:33 +08:00 · 4262 次点击
    这是一个创建于 4418 天前的主题,其中的信息可能已经有所发展或是发生改变。
    之前的主题 http://www.v2ex.com/t/31305

    因为现在错误提示不在是GCC not found了,那个主题有点误导,重新开一个帖子,可以的吧 ><

    很多人brew install fontforge --use-gcc这样就可以搞定
    我尝试了 --use-gcc --use-clang 以及不添加参数,都会出现
    Error: Failed executing: make (fontforge.rb:38)

    其它信息:
    gcc --version
    i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)

    已安装xcode,command line tools for xcode,cairo也按照网上的建议 重新用--use-clang参数安装过



    另附上fontforge.rb文件


    1 require 'formula'
    2
    3 class Fontforge < Formula
    4 url 'http://downloads.sourceforge.net/project/fontforge/fontforge-source/fontforge_full- 20110222.tar.bz2'
    5 head 'git://fontforge.git.sourceforge.net/gitroot/fontforge/fontforge'
    6 homepage 'http://fontforge.sourceforge.net'
    7 md5 '5be4dda345b5d73a27cc399df96e463a'
    8
    9 depends_on 'pkg-config' => :build
    10 depends_on 'gettext'
    11 depends_on 'pango'
    12 depends_on 'potrace'
    13
    14 def options
    15 [['--without-python', 'Build without Python.']]
    16 end
    17
    18 fails_with :llvm do
    19 build 2336
    20 cause "Compiling cvexportdlg.c fails with error: initializer element is not constant"
    21 end
    22
    23 def install
    24 args = ["--prefix=#{prefix}", "--enable-double", "--without-freetype-bytecode"]
    25 args << "--without-python" if ARGV.include? "--without-python"
    26
    27 ENV.x11
    28 # Fix linker error; see: http://trac.macports.org/ticket/25012
    29 ENV.append "LDFLAGS", "-lintl"
    30 system "./configure", *args
    31
    32 # Fix hard-coded install locations that don't respect the target bindir
    33 inreplace "Makefile" do |s|
    34 s.gsub! "/Applications", "$(prefix)"
    35 s.gsub! "ln -s /usr/local/bin/fontforge", "ln -s $(bindir)/fontforge"
    36 end
    37
    38 system "make"
    39 system "make install"
    40 end
    41
    42 def caveats; <<-EOS.undent
    43 fontforge is an X11 application.
    44
    45 To install the Mac OS X wrapper application run:
    46 brew linkapps
    47 or:
    48 ln -s #{prefix}/FontForge.app /Applications
    49 EOS
    50 end
    51 end
    7 条回复    1970-01-01 08:00:00 +08:00
    fanzeyi
        1
    fanzeyi  
       2012-04-04 21:50:50 +08:00
    Make 命令有么
    icexfire
        2
    icexfire  
    OP
       2012-04-04 22:03:04 +08:00
    @fanzeyi 有的
    lex
        3
    lex  
       2012-04-04 22:14:40 +08:00
    去年在Lion里装过,brew各种失败,后来快放弃FontForge改用FontLab Studio的时候,试了一下用MacPorts装,结果一步就装上了。
    icexfire
        4
    icexfire  
    OP
       2012-04-04 22:21:06 +08:00
    @lex 囧,homebrew和macports可以同时用么? 回悲剧吧。。。肿么办,已经用brew安装了几个软件了。。。
    icexfire
        5
    icexfire  
    OP
       2012-04-04 23:17:39 +08:00
    google的结果,“Homebrew 声明自己和 MacPorts 和 Fink 不兼容”,orz了

    肿么才能安上这个软件呢...
    lex
        6
    lex  
       2012-04-05 00:36:57 +08:00
    @icexfire 我是先装了brew,安了不少软件后为了FontForge再装的MacPorts,现在用brew会提示不会能和MacPorts共用,但是port命令一切正常,所以不再用Homebrew了。
    icexfire
        7
    icexfire  
    OP
       2012-04-05 08:44:08 +08:00
    @lex 昨天又执行了一次 brew update, brew upgrade 现在又变成了
    Error: GCC could not be found

    无奈了。。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3098 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 14:54 · PVG 22:54 · LAX 07:54 · JFK 10:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.