Set up OpenSolaris 08.11 for a develop environment
By evanyan on Dec 14, 2008
I've recently got a new laptop, Lenovo Thinkpad X200. With some effort, I've set up OpenSolaris 08.11 for a develop environment.
It took a trick to install OpenSolaris 08.11. I intended to leave a unreserved disk space to install it. But the installer just had some problem to create a Solaris partition using the unreserved disk space. I had to create a partition first, then let the installer convert the partition to Solaris partition. After that, the installation goes pretty smoothly.
I see OpenSolaris has improved a lot in hardware compatibility. Almost all the devices of my laptop have been recognized and installed correctly, except the wireless card. My wireless card is an integrated Intel PRO/1000 card. Actually the driver (iwk) is already there, but just miss the device id. Manually adding the device id make it work.
As installed from a live CD, a bunch of stuffs are not there. To use it as a develop environment, you need to install some other packages. Fortunately we have IPS. The desktop GUI for IPS, Package Manager, has also improved a lot since I first tried it on OpenSolaris 08.05. BTW, because of a bug, you'll have to work around it if you want to set proxy for Package Manager.
The first thing I want is Mercurial. Just install SUNWmercurial through IPS, pretty easy. Then I tried to build cscope. Several packages installed to make the build success, including SUNWhea, SUNWgmake, SUNWgm4, SUNWautoconf. (Of course you'll also need to install a compiler if you don't have one).
More packages will be needed depending on what development you'll be doing. To build Mozilla applications, I installed SUNWgnome-common-devel, SUNWxorg-headers, SUNWcurl. IPS is your friend.
Unlike Linux's package management, OpenSolaris doesn't separate the devel part of a package into a standalone one. We don't need to install a bunch of devel packages. But I think the devel part really should be seperated, so that we can have more spaces in the CD to have other stuffs in.