Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I upgraded recently to Snow Leopard but used Time Machine wich was in Leopard. Time Machine asked to copy everything from old machine and I said yes.

How I seem to be having trouble installing Ruby because of the libraries and when I try to upgrade the Mac ports it fails although I installed the latest mac ports software.

Any ideas?

sudo port upgrade -d outdated
Warning: Skipping upgrade since ncursesw 5.7_0 >= ncursesw 5.7_0, even though installed variants "" do not match "+darwin_10". Use 'upgrade --enforce-variants' to switch to the requested variants.
Warning: Skipping upgrade since ncurses 5.7_0 >= ncurses 5.7_0, even though installed variants "" do not match "+darwin_10". Use 'upgrade --enforce-variants' to switch to the requested variants.
--->  Computing dependencies for apr-util
--->  Configuring apr-util
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.9" && ./configure --prefix=/opt/local --with-apr=/opt/local/bin/apr-1-config --with-expat=/opt/local --with-iconv=/opt/local --with-berkeley-db=/opt/local/include:/opt/local/lib/db46 --without-mysql --without-pgsql --with-sqlite3=/opt/local " returned error 1
Command output: checking for -ldb... no
checking for Berkeley DB 2 in /opt/local/include and /opt/local/lib/db46... 
checking db2/db.h usability... no
checking db2/db.h presence... no
checking for db2/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for db_open in -ldb2... no
checking db2/db.h usability... no
checking db2/db.h presence... no
checking for db2/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for db_open in -ldb... no
checking for Berkeley DB 1.0.0 in /opt/local/include and /opt/local/lib/db46... 
checking db1/db.h usability... no
checking db1/db.h presence... no
checking for db1/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for dbopen in -ldb1... no
checking for Berkeley DB 1 in /opt/local/include and /opt/local/lib/db46... 
checking db_185.h usability... no
checking db_185.h presence... no
checking for db_185.h... no
checking for Berkeley DB... not found
configure: error: Berkeley DB not found.

Error: Unable to upgrade port: 1
Before reporting a bug, first run the command again with the -d flag to get complete output.
share|improve this question

migrated from stackoverflow.com Feb 14 '10 at 16:40

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

add comment

2 Answers 2

up vote 2 down vote accepted

Do what it says and use the --enforce-variants option to rebuild your installed ports using the 10.6 default variants:

sudo port selfupdate
sudo port upgrade -u --enforce-variants installed

EDIT: If you haven't already, you will also probably need to install the MacPorts base files for 10.6 and then upgrade the ports. There are detailed instructions here.

share|improve this answer
    
Thanks Ned for the answer. unfortunately I got the same error message :( –  Tam Feb 13 '10 at 7:50
    
See EDIT for additional info. –  Ned Deily Feb 13 '10 at 8:20
add comment

Yes, you have the wrong Macports.

If you change your operating system, e.g. from Leopard to Snow Leopard (but not from SL to Lion), you need to reinstall Macports from scratch. See the Macports migration guide

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.