texinfo 5.2 をインストールしようとしてい./configure
ますが、C コンパイラに関連していると思われるいくつかの問題に遭遇しました。Snow Leopard からアップグレードしたとき、クリーン インストールを実行しなかったので、おそらくそれが問題の一部です。とにかく、ここに私が持っているものがあります:
ryansmacbook:texinfo-5.2 ryan$ sudo ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" CPP="gcc -E" CXXCPP="g++ -E"
Password:
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking for perl... /usr/bin/perl
checking Perl version and Encode module... yes
checking for gawk... (cached) awk
checking for gcc... gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64
checking whether the C compiler works... no
configure: error: in `/Users/ryan/Downloads/texinfo-5.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
これに関連する他の質問をいくつか読んだので、コマンド ライン ツールをインストールしようとしました。
ryansmacbook:~ ryan$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
App StoreからインストールされたXcode 5.1を実行していますが、インストールされていないようです。私が読んだことから、コマンドラインツールをインストールする必要がありますが、試しました
$ xcode-select --install
とにかく、インストールするように指示すると、「ソフトウェア更新サーバーから現在利用できないため、ソフトウェアをインストールできません」というメッセージがポップアップ表示されます。
http://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac- os-で回避策と思われるものを見つけましたx/、だから私は次のことをしました:
ryansmacbook:Tools ryan$ brew install coreutils
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
==> Downloading http://ftpmirror.gnu.org/coreutils/coreutils-8.22.tar.xz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/coreutils/8.22 --program-prefix=g --w
==> make install
==> Caveats
All commands have been installed with the prefix 'g'.
If you really need to use these commands with their normal names, you
can add a "gnubin" directory to your PATH from your bashrc like:
PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
Additionally, you can access their man pages with normal names if you add
the "gnuman" directory to your MANPATH from your bashrc as well:
MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
/usr/local/share/info/dir: Permission denied
==> Summary
/usr/local/Cellar/coreutils/8.22: 211 files, 10M, built in 2.4 minutes
しかし、私にはまだ./configure
問題があります。
参考のため、
$ 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.1 (clang-503.0.38) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
先日gcc-4.7をインストールしようとしましたが、現在は
/usr/gcc-4.7.2/bin/gcc-4.7
コマンドラインからコマンドとして実行する方法がよくわかりません。
$ gcc-4.7 --version
-bash: gcc-4.7: command not found
私が今得ているものですが、それはここでもそこでもないかもしれません。
編集:これは、C コンパイラが動作するかどうかの確認に関する私の質問に直接答えないため、これを回答として送信しません。試してみたところbrew install texinfo
、それは魅力のように機能しました。この時点で、なぜtexinfo
ソースからインストールしようとしたのか、何のために必要だったのか (おそらく GNU Make 関連か Emacs 関連か?) を思い出せません。