OSX安装Fontforge, Error: Failed executing: make (fontforge.rb:38) - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
icexfire
V2EX    问与答

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

  •  
  •   icexfire 2012-04-04 21:25:33 +08:00 4659 次点击
    这是一个创建于 4938 天前的主题,其中的信息可能已经有所发展或是发生改变。
    之前的主题 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     Solana     2741 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 23ms UTC 08:31 PVG 16:31 LAX 01:31 JFK 04:31
    Do have faith in what you're doing.
    ubao snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86