我看过gcj页面,尽管有下载链接,但它们仅用于下载gcc,而在苹果版本的gcc中,不包含gcj:
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
$ gcj
zsh: command not found: gcj
或使用自制安装的gcc 4.9:
➜ ~ gcc-4.9 --version
gcc-4.9 (GCC) 4.9.0 20140302 (experimental)
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
➜ ~ gcj
zsh: command not found: gcj
并且在gcc帮助中搜索它不起作用:
➜ ~ gcc --help|grep -i gcj
➜ ~ gcc --help|grep -i java
➜ ~ gcc-4.9 --help|grep -i java
➜ ~ gcc-4.9 --help|grep -i gcj
我看过这篇关于如何在Linux上安装它的文章,我希望有一个自制的公式,一点运气都没有。
关于如何在OSX上安装GCJ的任何想法?
brew install gcc --with-java
它会显示为/usr/local/bin/gcj-5
(例如)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句