How to fix db46 problem macport installation or install db46 in Mac OS X 10.6.5

Solving error db46 requires the Java for Mac OS X development headers it easy. You get this error because after upgrading Mac OS X into 10.6.5, some files deleted from Xcode tools. Some people have this error when port install imagemagick or port install something. This happen eventually you already install Xcode and upgrading it before.

How to fix this error ?

--->  Configuring db46
Error: db46 requires the Java for Mac OS X development headers.
Error: Download the Java Developer Package from: https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20719
Error: Target org.macports.configure returned: missing Java headers
Error: Failed to install db46
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 were not installed: ghostscript xorg-libXext xorg-libX11 xorg-libxcb python26 db46 gdbm openssl readline sqlite3 xorg-libpthread-stubs xorg-xcb-proto libxml2 xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-libXt xorg-libsm xorg-libice lcms p7zip
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Here are solution for error db46. :
1. get your Mac OS X installation DVD
2. Insert it and install Xcode Tools again
3. then you can install again or upgrade xcode tools later

Now, you can install db46 in Mac OS X 10.6.5.

--->  Configuring db46
--->  Building db46
--->  Staging db46 into destroot
--->  Installing db46 @4.6.21_6
--->  Activating db46 @4.6.21_6
--->  Cleaning db46


It works!



You should follow me here

Comments

I'm getting a similar error installing imagemagick. It gets hung up installing db46. I'm using macports. I tried installing the older version of xcode tools, but doesn't look like it worked. Is a reboot required?

yes, we need to reboot before installing imagemagick.Try it :)

I decided to download xcode instead:
http://developer.apple.com/

no problems.

Error: db46 requires the Java for Mac OS X development headers.
Error: Download the Java Developer Package from: <https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftwa...

->

https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftwa...

:-)

port clean db46
port install db46 +no_java

This is fine if your application is not java based.

Hey Jason, thanks for the tip. The Java issue for db46 was getting ridiculous to solve. Multiple JDK installations, JDK version preference reordering, Mac Xcode reinstalls... no dice. Specifying +no_java was a perfect workaround, as my desired software did not require java.

Thanks again.

not the OP, but Jason's comment about installing the Apple Java developer app. A very quick and easy fix. Thanks J!

Add new comment