gccがバージョンアップできない
コミュニティの皆さん、初めまして。初投稿いたします。
いま、私はMacBookPro (OSX mountain lion)を使っていますが、gccのバージョンが古い(gcc42)ため、MacPortsを使ってgcc45へバージョンアップすることにしました。インストール自体はエラーなく行えたのですが、バージョンアップ後にきちんと更新されたか確認したところ、古いバージョン(gcc43)のままでした。また、試しにgcc43へのバージョンアップも試みたのですが、同様の結果になりました。
ターミナル操作自体初心者なもので、色々と悪戦苦闘しています。
どうしたらよいものか・・・知恵をお貸しくださいm(_ _)m
以下に、ログを載せておきます。
//現在のバージョンを確認
$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 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.
//gcc45インストール
$ sudo port install gcc45
Password:
---> Computing dependencies for gcc45
---> Dependencies to be installed: libmpc ppl glpk
---> Fetching archive for libmpc
---> Attempting to fetch libmpc-1.0_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/libmpc
---> Fetching distfiles for libmpc
---> Attempting to fetch mpc-1.0.tar.gz from http://distfiles.macports.org/libmpc
---> Verifying checksum(s) for libmpc
---> Extracting libmpc
---> Configuring libmpc
---> Building libmpc
---> Staging libmpc into destroot
---> Installing libmpc @1.0_0
---> Activating libmpc @1.0_0
---> Cleaning libmpc
---> Fetching archive for glpk
---> Attempting to fetch glpk-4.47_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/glpk
---> Fetching distfiles for glpk
---> Attempting to fetch glpk-4.47.tar.gz from ftp://ftp.dti.ad.jp/pub/GNU/glpk
---> Attempting to fetch glpk-4.47.tar.gz from http://mirror.facebook.net/gnu/gnu/glpk
---> Attempting to fetch glpk-4.47.tar.gz from http://distfiles.macports.org/glpk
---> Verifying checksum(s) for glpk
---> Extracting glpk
---> Configuring glpk
---> Building glpk
---> Staging glpk into destroot
---> Installing glpk @4.47_0
---> Activating glpk @4.47_0
---> Cleaning glpk
---> Fetching archive for ppl
---> Attempting to fetch ppl-1.0_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/ppl
---> Fetching distfiles for ppl
---> Attempting to fetch ppl-1.0.tar.bz2 from http://distfiles.macports.org/ppl
---> Verifying checksum(s) for ppl
---> Extracting ppl
---> Configuring ppl
---> Building ppl
---> Staging ppl into destroot
---> Installing ppl @1.0_0
---> Activating ppl @1.0_0
---> Cleaning ppl
---> Fetching archive for gcc45
---> Attempting to fetch gcc45-4.5.4_1.darwin_12.x86_64.tbz2 from http://packages.macports.org/gcc45
---> Fetching distfiles for gcc45
---> Attempting to fetch gcc-core-4.5.4.tar.bz2 from ftp://ftp.dti.ad.jp/pub/GNU/gcc/gcc-4.5.4
---> Attempting to fetch gcc-core-4.5.4.tar.bz2 from http://mirror.facebook.net/gnu/gnu/gcc/gcc-4.5.4
---> Attempting to fetch gcc-core-4.5.4.tar.bz2 from http://distfiles.macports.org/gcc45
---> Attempting to fetch gcc-fortran-4.5.4.tar.bz2 from ftp://ftp.dti.ad.jp/pub/GNU/gcc/gcc-4.5.4
---> Attempting to fetch gcc-fortran-4.5.4.tar.bz2 from http://mirror.facebook.net/gnu/gnu/gcc/gcc-4.5.4
---> Attempting to fetch gcc-fortran-4.5.4.tar.bz2 from http://distfiles.macports.org/gcc45
---> Attempting to fetch gcc-g++-4.5.4.tar.bz2 from ftp://ftp.dti.ad.jp/pub/GNU/gcc/gcc-4.5.4
---> Attempting to fetch gcc-g++-4.5.4.tar.bz2 from http://mirror.facebook.net/gnu/gnu/gcc/gcc-4.5.4
---> Attempting to fetch gcc-g++-4.5.4.tar.bz2 from http://distfiles.macports.org/gcc45
---> Attempting to fetch gcc-java-4.5.4.tar.bz2 from ftp://ftp.dti.ad.jp/pub/GNU/gcc/gcc-4.5.4
---> Attempting to fetch gcc-java-4.5.4.tar.bz2 from http://mirror.facebook.net/gnu/gnu/gcc/gcc-4.5.4
---> Attempting to fetch gcc-java-4.5.4.tar.bz2 from http://distfiles.macports.org/gcc45
---> Attempting to fetch gcc-objc-4.5.4.tar.bz2 from ftp://ftp.dti.ad.jp/pub/GNU/gcc/gcc-4.5.4
---> Attempting to fetch gcc-objc-4.5.4.tar.bz2 from http://mirror.facebook.net/gnu/gnu/gcc/gcc-4.5.4
---> Attempting to fetch gcc-objc-4.5.4.tar.bz2 from http://distfiles.macports.org/gcc45
---> Attempting to fetch ecj-4.5.jar from http://distfiles.macports.org/gcc45
---> Verifying checksum(s) for gcc45
---> Extracting gcc45
---> Applying patches to gcc45
---> Configuring gcc45
---> Building gcc45
---> Staging gcc45 into destroot
---> Installing gcc45 @4.5.4_1
---> Activating gcc45 @4.5.4_1
---> Cleaning gcc45
---> Updating database of binaries: 100.0%
---> Scanning binaries for linking errors: 100.0%
---> No broken files found.
//バージョンアップできたか確認
$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 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.
//試しにgcc45で確認してもコマンドがないといわれる
$ gcc45 --version
-bash: gcc45: command not found
MacBook Pro, OS X Mountain Lion