«前の日記(2007-01-24) 最新 次の日記(2007-02-07)» 編集

echo.dip.jp 携帯用QRコード

過去の日記
http://echo.dip.jp/fts4p/

2007-02-05

_ [OS] FreeBSD sysutils/portupgradeからports-mgmt/portupgradeへとカテゴリが移動

portsnap fetch
portsnap update
portversion -v
portupgrade-2.2.2,2 < needs updating (port has 2.2.2_4,2) (=> 'ports-mgmt/portupgrade')

# エラーが出る
portupgrade -a
cd: can't cd to /usr/ports/sysutils/portupgrade
[missing key: categories] [Updating the portsdb <format:bdb_btree> in /usr/ports ... - 16441 port entries found .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000 .........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000.... ..... done]
missing key: categories: Cannot read the portsdb!
/usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:548:in `open_db': database file error (PortsDB::DBError)
from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:702:in `port'
from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:890:in `all_depends_list'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:809:in `tsort_build'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:801:in `each'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:801:in `tsort_build'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:823:in `sort_build'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:827:in `sort_build!'
from /usr/local/sbin/portupgrade:721:in `main'
from /usr/local/lib/ruby/1.8/optparse.rb:755:in `initialize'
from /usr/local/sbin/portupgrade:220:in `new'
from /usr/local/sbin/portupgrade:220:in `main'
from /usr/local/sbin/portupgrade:2084

# 削除
pkg_deinstall portupgrade

# インストール
cd /usr/ports/ports-mgmt/portupgrade
make install clean

# いつも通り
portupgrade -a


«前の日記(2007-01-24) 最新 次の日記(2007-02-07)» 編集