月別アーカイブ: 2014年4月

MacPorts

久しぶりに使ったらエラー。

bash-3.2# port install dkms

Warning: port definitions are more than two weeks old, consider using selfupdate

Error: Port dkms not found

セルフアップデートしてもエラー

bash-3.2# port -d selfupdate

DEBUG: Copying /Users/jun/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences

DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs

—> Updating MacPorts base sources using rsync

receiving file list … done

base.tar

sent 11356 bytes received 500217 bytes 146163.71 bytes/sec

total size is 4925440 speedup is 9.63

receiving file list … done

base.tar.rmd160

sent 64 bytes received 635 bytes 466.00 bytes/sec

total size is 512 speedup is 0.73

DEBUG: successful verification with key /opt/local/share/macports/macports-pubkey.pem

DEBUG: /usr/bin/tar -C /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/tmp -xf /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base.tar

MacPorts base version 2.1.1 installed,

DEBUG: Rebuilding and reinstalling MacPorts if needed

MacPorts base version 2.2.1 downloaded.

—> Updating the ports tree

Synchronizing local ports tree from rsync://rsync.macports.org/release/tarballs/ports.tar

DEBUG: /usr/bin/rsync -rtzv –delete-after rsync://rsync.macports.org/release/tarballs/ports.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs

receiving file list … done

ports.tar

sent 51081 bytes received 9117572 bytes 1222487.07 bytes/sec

total size is 60323840 speedup is 6.58

DEBUG: /usr/bin/rsync -rtzv –delete-after rsync://rsync.macports.org/release/tarballs/ports.tar.rmd160 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs

receiving file list … done

ports.tar.rmd160

sent 64 bytes received 636 bytes 466.67 bytes/sec

total size is 512 speedup is 0.73

DEBUG: successful verification with key /opt/local/share/macports/macports-pubkey.pem

DEBUG: /usr/bin/tar -C /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/tmp -xf /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports.tar

DEBUG: /usr/bin/rsync -rtzv –delete-after rsync://rsync.macports.org/release/tarballs/PortIndex_darwin_13_i386/PortIndex /opt/local/var/macports/sources/rsync.macports.org/release/tarballs

receiving file list … done

PortIndex

sent 17686 bytes received 1384175 bytes 311524.67 bytes/sec

total size is 10507072 speedup is 7.50

DEBUG: /usr/bin/rsync -rtzv –delete-after rsync://rsync.macports.org/release/tarballs/PortIndex_darwin_13_i386/PortIndex.rmd160 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs

receiving file list … done

PortIndex.rmd160

sent 64 bytes received 636 bytes 466.67 bytes/sec

total size is 512 speedup is 0.73

DEBUG: successful verification with key /opt/local/share/macports/macports-pubkey.pem

—> MacPorts base is outdated, installing new version 2.2.1

DEBUG: Permissions OK

Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl

checking build system type… i386apple-darwin13.1.0

checking host system type… i386apple-darwin13.1.0

checking target system type… i386apple-darwin13.1.0

checking MacPorts version… 2.2.1

checking for sw_vers… /usr/bin/sw_vers

checking for defaults… /usr/bin/defaults

checking for xcode-select… /usr/bin/xcode-select

checking Mac OS X version… 10.9.2

checking Xcode location… /Applications/Xcode.app/Contents/Developer

checking Xcode version… 5.1.1

checking for gcc… /usr/bin/cc

checking whether the C compiler works… no

configure: error: in `/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base’:

configure: error: C compiler cannot create executables

See `config.log’ for more details

Command failed: cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc ./configure –prefix=/opt/local –with-tclpackage=/Library/Tcl –with-install-user=root –with-install-group=admin –with-directory-mode=0755 –enable-readline && make && make install SELFUPDATING=1

Exit code: 77

DEBUG: Error installing new MacPorts base: command execution failed

while executing

macports::selfupdate [array get global_options] base_updated”

Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed

素直にログを見る。

See `config.log’ for more details

You have not agreed to the Xcode license agreements, please run ‘xcodebuild     -license’ (for user-level acceptance) or ‘sudo xcodebuild -license’ (for sys    tem-wide acceptance) from within a Terminal window to review and agree to th    e Xcode license agreements.

そういえば、Xcodeをバージョンアップ後に一度も起動していなかったので、起動。エラーコードは変わったが失敗。

macports::selfupdate [array get global_options] base_updated”

Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed

こんなメッセージを発見。

can’t find tcl configuration definitions

http://stackoverflow.com/questions/19622337/cant-update-macports-with-mac-os-x-mavericks

を参考に、

install the “Command Line Tools” first:

sudo xcode-select --install

Then upgrade the ports:

sudo port -v selfupdate

で成功。あとは

sudo port upgrade outdated

llvm-3.0 is not supported on Mavericks or later.

とこける。

https://trac.macports.org/wiki/Migration

を参考に結局クリーンインストールorz