V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  icexfire  ›  全部回复第 10 页 / 共 10 页
回复总数  182
1  2  3  4  5  6  7  8  9  10  
2012-04-04 20:37:10 +08:00
回复了 icexfire 创建的主题 问与答 GCC could not be found... os x 小白求助
@eric_q 刚刚又执行了一下 brew update 和 brew upgrade 这次执行的时候貌似更新了点东西。

现在不会有Error: GCC could not be found错误了,全部都是 Error: Failed executing: make (fontforge.rb:38)了,无论 --use-clang 还是 --use-gcc

彻底无语了,网上很多人都是 --use-gcc 成功安装的。

附上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
2012-04-04 18:25:37 +08:00
回复了 icexfire 创建的主题 问与答 GCC could not be found... os x 小白求助
1  2  3  4  5  6  7  8  9  10  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2690 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 9ms · UTC 03:09 · PVG 11:09 · LAX 19:09 · JFK 22:09
Developed with CodeLauncher
♥ Do have faith in what you're doing.