Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
share|improve this question

migrated from stackoverflow.com Oct 25 '10 at 10:15

This question came from our site for professional and enthusiast programmers.

2  
I think that question should be asked on serverfault.com instead here – kogut Oct 25 '10 at 7:42
1  
You should look into the log file /opt/local/var/macports/logs/...release_ports_databases_db46/main.log and search error of Google if it is not trivial – CharlesB Oct 25 '10 at 7:49
    
Try installing some of those listed dependencies individually. Also make sure you're using port with sudo. – Ollie Saunders Oct 25 '10 at 8:00
    
@CharlesB, I have edited my answer with that log. – ant2009 Oct 25 '10 at 9:15
    
@Ollie, Yes, I did try and install the db46. However, I got the same problem. – ant2009 Oct 25 '10 at 9:16
up vote 1 down vote accepted

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.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .