gettext constantly broken after MacPorts upgrade
2014-04
I use MacPorts on Mac OS X Mountain Lion. This issue has been there for a year: whenever I upgrade MacPorts:
sudo port selfupdate
this seems to work fine. But then running:
sudo port upgrade outdated
it always fails at gettext:
Error: org.macports.activate for port gettext returned:
Error: Failed to install gettext
Please see the log file for port gettext for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/main.log
Error: The following dependencies were not installed: gettext
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Then if I run any port
commands at all, I get:
dyld: Library not loaded: /opt/local/lib/libintl.8.dylib
Referenced from: /bin/sh
Reason: image not found
Fortunately I have another Mac so usually if I copy the same dylib back from there I'd be fine afterwards.
I don't believe that this was a bug that was hanging for years. It must have been something I've been doing wrong. Question is what?
Snow Leopard 10.6.4 mac ports 1.9.1
I have just installed macports and I want to install git-core.
However, I get the following errors:
---> Computing dependencies for git-core
---> Dependencies to be installed: python26 db46 gdbm readline sqlite3 rsync popt
---> Building db46
Error: Target org.macports.build returned: shell command failed
Log for db46 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/main.log
Error: The following dependencies failed to build: python26 db46 gdbm readline sqlite3 rsync popt
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
I have tried doing a port selfupdate
and a port clean all
and then trying to install again. But still get the same problem.
This is my first time using mac ports.
Many thanks for any suggestions.
====== EDIT ====
:error:build Target org.macports.build returned: shell command failed
:debug:build Backtrace: shell command failed
while executing
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for db46): org.macports.activate org.macports.build org.macports.destroot org.macports.install
If
:info:build Warning: the following items did not execute (for db46): org.macports.activate org.macports.build org.macports.destroot org.macports.install
is the first error in the log then I think you need to run the command with sudo
e.g.
sudo port install readline
Try readline as I think it is the simplest port
and I think superuser is the correct place for this not serverfault as macports can apply to one machine and is just for installing software. (I suppose Apple StackExchange might be a relevant site.