Macに入っているPython2.7を、2.7.5から2.7.8へと更新しようと以下のコマンド
$ sudo port upgrade python27
を打つと、以下のエラー
Warning: The Xcode Command Line Tools don't appear to be installed; most ports will likely fail to build. Warning: Install them by running `xcode-select --install'. ---> Computing dependencies for python27 ---> Configuring python27 Error: Failed to configure python27, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/work/Python-2.7.8/config.log Error: org.macports.configure for port python27 returned: configure failure: command execution failed Please see the log file for port python27 for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/main.log Error: Unable to upgrade port: 1 To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets
が出て更新できませんでした。
エラーメッセージにある通り、以下のコマンドを実行してみました。
$ xcode-select --install
もう一度以下のコマンドを実行すると、
$ sudo port upgrade python27
今度は以下のエラーが出てまた失敗しました。
---> Cleaning python27 ---> Updating database of binaries ---> Scanning binaries for linking errors ---> Found 10 broken file(s), matching files to ports ---> Found 5 broken port(s), determining rebuild order ---> Rebuilding in order avahi @0.6.31 +gtk+python27+x11 ImageMagick @6.8.5-5 +x11 gconf @2.28.1 libproxy @0.4.11 +python27 VLC @2.0.7 +mod+mpc+osd+qtkit+quartz ---> Computing dependencies for dbus ---> Building dbus Error: org.macports.build for port dbus returned: command execution failed Please see the log file for port dbus for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_dbus/dbus/main.log Error: Unable to upgrade port: 1
このエラーはまだ解決できていません。