MacPorts のアップデート(2.4.1から2.4.2)があったから、以前の問題が解決するといいなぁと思いつつ完了を待ってたら、インストールが上手くいかずに手こずる。
具体的には以下のような感じに。
入出力結果(Terminal)
$ sudo port selfupdate
---> Updating MacPorts base sources using rsync
MacPorts base version 2.4.1 installed,
MacPorts base version 2.4.2 downloaded.
---> Updating the ports tree
---> MacPorts base is outdated, installing new version 2.4.2
Installing new MacPorts release in /opt/local as root:admin; permissions 0755
$ port -v
MacPorts 2.4.1
Entering shell mode... ("help" for help, "quit" to quit)
[Users/kamimura] > quit
Goodbye
$
上記の出力から確認できるように、2.4.1から2.4.2にアップデートされずに2.4.1のまま。
ということで、port のコマンドライン引数に-d(Debug mode, generate debugging messages, implies -v)を指定して再度実行してみることに。
入出力結果(Terminal)
$ sudo port -d selfupdate Password: DEBUG: Copying /Users/kamimura/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences 省略... checking for objc/objc.h... yes checking if linking libobjc requires pthreads... no checking for Apple Objective-C runtime... yes checking for GNU Objective C runtime... no configure: Using Apple Objective-C runtime checking for Apple Foundation library... no configure: WARNING: GNUSTEP_SYSTEM_ROOT is not defined in your environment, preventing the use of GNUstep's Foundation library configure: error: Could not find a working Foundation implementation Command failed: CC=/usr/bin/cc OBJC=/usr/bin/cc ./configure --prefix='/opt/local' --with-install-user='root' --with-install-group='admin' --with-directory-mode='0755' --enable-readline && make SELFUPDATING=1 && make install SELFUPDATING=1 Exit code: 1 $
Xcode がインストール時に壊れてたり、おかしくなってるっぽいから、Finder、Applications から Xcode を 削除して Mac App Storeからダウンロード、再インストールしてみることに。
入出力結果(Terminal)
$ sudo port selfupdate Password: ---> Updating MacPorts base sources using rsync MacPorts base version 2.4.1 installed, MacPorts base version 2.4.2 downloaded. ---> Updating the ports tree ---> MacPorts base is outdated, installing new version 2.4.2 Installing new MacPorts release in /opt/local as root:admin; permissions 0755 The ports tree has been updated. To upgrade your installed ports, you should run port upgrade outdated $ port version Version: 2.4.2 $
無事アップデートできた。ということで指示に従ってインストール済みの ports をアップグレード。
入出力結果(Terminal)
$ sudo port -u upgrade outdated
Nothing to upgrade.
$ port variants tk
tk has the variants:
quartz: Support for native Mac OS X graphics
* conflicts with x11
universal: Build for multiple architectures
[+]x11: Enable X11 support
* conflicts with quartz
$ sudo port install tk +quartz
---> Computing dependencies for tk
---> Building tk
---> Staging tk into destroot
---> Installing tk @8.6.7_0+quartz
---> Activating tk @8.6.7_0+quartz
---> Cleaning tk
---> Updating database of binaries
---> Scanning binaries for linking errors
---> No broken files found.
$
以前の問題ももしかしたら Xcode 関連の問題だったのかもしれないと思って、まず tk のみインストールしてみたら、上手くいった。ということで、tk、x11、quartz等に依存関係があって前回インストールできなかったソフトウェアもインストール、無事完了。
0 コメント:
コメントを投稿