2 月 16 2005
portupgrade
手邊某台機器升級 perl 以後爛掉, 其實主要原因是因為 portupgrade 有點問題.
在機器上面裝了一堆 ports 軟體以後, 現在用 portupgrade 時有時會跳出這個:
/usr/local/lib/ruby/site_ruby/1.8/pkgmisc.rb:61:in `push”: failed to allocate memory (NoMemoryError)
from /usr/local/lib/ruby/site_ruby/1.8/pkgmisc.rb:61:in `shellwords”
from /usr/local/sbin/portupgrade:1162:in `get_pkgname”
from /usr/local/sbin/portupgrade:1147:in `check_pkgname”
from /usr/local/sbin/portupgrade:933:in `upgrade_pkg”
from /usr/local/sbin/portupgrade:756:in `do_upgrade”
from /usr/local/sbin/portupgrade:691:in `main”
from /usr/local/sbin/portupgrade:688:in `each”
from /usr/local/sbin/portupgrade:688:in `main”
from /usr/local/sbin/portupgrade:207:in `initialize”
from /usr/local/sbin/portupgrade:207:in `new”
from /usr/local/sbin/portupgrade:207:in `main”
from /usr/local/sbin/portupgrade:1869
目前還找不到解法, 所以我得想辦法一個一個慢慢找 dependency, 然後一個一個重新安裝.
我也不知道該不該 report 回去給 core team. orz
很悲慘啊…
3 月 22 2005
檢查 ports tree 的軟體更新
我之前在 portupgrade 裡面提到我在用 portupgrade 時有問題.
出問題的機器所安裝的 ports 軟體都有 200 個以上, 所以我在 IRC 上面曾經哭訴過, 當時也有位長輩 ( 我忘記是哪位了…orz ) 說他也有相同的問題, 然後他裝了 7xx 個 ports ( 看來是大長輩, 專作大事業的.. ) .
後來我找到了另外一套可以去檢查是否有更新的軟體, 叫 portmanager :
這套曾經正常運作過一段時間, 可是後來跑一跑都會出現 core dump …..orz
現在我是改用 portversion 這個指令在掃…. (上天保佑它能一直跑下去吧… )
By Joe Horn • FreeBSD 1 • Tags: portmanager, portupgrade, portversion