Ran in to this problem on OpenSolaris 2009.06 within a zone (no special tweaks anywhere -- just did a normal 2009.06 install, then created a zone with default settings and installed SUNWamp). We didn't have time to troubleshoot fully and found that the zone didn't have the X server bits although it did have some other X stuff. Apparently there's some dep on things included in the SUNWxwsvr package. So we installed that and the error was gone (Our original error was that, when we ran php, it complained about gd.so and some x11 stuff and gd wasn't working). Sorry this is vague and such a shotgun approach (short on time), but we wanted to respect IPS and not just start blurting copies of managed software stacks all about the place.. YMMV.
pkg install pkg:/SUNWxwsvr fixed it. -- This message posted from opensolaris.org