When installing a package by using macports, my macbook did kernel panic. After kernel panic, my macports told "macports registry malformed". Therefore, I deleted "/opt/local/var/macports/registry/registry.db", and reinstall macports. So, packages are installed in /opt/local/ and cannot reinstall these package by macports, but my macports registry doesn't have a database of installed package.
How to make registry.db?
(My Mac OSX is El Capitan)
答案 0 :(得分:0)
没有简单的方法来重建registry.db
。你不应该删除数据库。
有时在崩溃后,如果使用写访问权限打开注册表,则可以从日志日志中恢复注册表状态,但如果删除它,则无法执行此操作。
此时您唯一的选择是按照https://guide.macports.org/#installing.macports.uninstalling上的卸载说明操作,然后重新安装所有端口。