I tried to install some packages and got following errors:
$ sudo port install pkgconfig ---> Computing dependencies for pkgconfig ---> Dependencies to be installed: libiconv ---> Installing libiconv @1.14_0 Error: org.macports.install for port libiconv returned: no destroot found at: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/destroot Error: Failed to install libiconv Please see the log file for port libiconv for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/main.log Error: The following dependencies were not installed: libiconv To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port pkgconfig failed
This seemed like a macports issue. So I tried to update the ports. It threw the same error (no destroot found):
$ sudo port upgrade outdated ---> Installing expat @2.1.0_0 Error: org.macports.install for port expat returned: no destroot found at: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/work/destroot Please see the log file for port expat for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/main.log Error: Problem while installing expat To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets
sudo port selfupdate, which didn't work. However
sudo port -v selfupdate worked. When I try to install expat via
sudo port install -fp expat, for example, I get this:
no destroot found at: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/work/destroot
The error suggested me to look at the log it created, which can be found here: http://pastebin.com/H39VTf7b. It goes on about something with user privileges, although I'm running the command with sudo.
After that, I tried manually creating the directory for expat. Then it brilliantly failed telling me that it had no destroot for ncurses. Created that as well (along with chown to macports). Now it fails for gawk (log file: http://pastebin.com/E5w66mqe). I can't be going through all the dependencies and creating directories for them. I also have no idea how to fix this. I tried changing owner of macports files to "macports" with no results..
EDIT: I've also reinstalled command line tools. Still nothing.