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

2012-04-04 21:25:33 +08:00
 icexfire
之前的主题 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
4283 次点击
所在节点    问与答
7 条回复
fanzeyi
2012-04-04 21:50:50 +08:00
Make 命令有么
icexfire
2012-04-04 22:03:04 +08:00
@fanzeyi 有的
lex
2012-04-04 22:14:40 +08:00
去年在Lion里装过,brew各种失败,后来快放弃FontForge改用FontLab Studio的时候,试了一下用MacPorts装,结果一步就装上了。
icexfire
2012-04-04 22:21:06 +08:00
@lex 囧,homebrew和macports可以同时用么? 回悲剧吧。。。肿么办,已经用brew安装了几个软件了。。。
icexfire
2012-04-04 23:17:39 +08:00
google的结果,“Homebrew 声明自己和 MacPorts 和 Fink 不兼容”,orz了

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

无奈了。。。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/31344

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX