JDS CBE setup
As JDS source is released on 10/28, I decide it is a good time to try it out. If everything works as expected, maybe pkgtool/pkgbuild can become the official package building environment for OpenSolaris.
So I read the instruction and start to follow.
I would like to have the build environment in my home directory rather than the default /jds/cbe, with Gman saying it should work, I decide to give it a try.
So, step 1, add myself with Software Installation profile. Open up /etc/user_attr and modified. Done.
step 2, ./cbe-install. Failed with following message:
Run this script as root or a user with the "Software Installation" profile See the user_attr(4) and profiles(1) manual pages for details
After some investigation, there is a /usr/sfw/bin/profiles which is started rather than the desired /usr/bin/profiles. Setting my path by move /usr/sfw/bin to last. Move on.
Need some packages from Solaris, OK. Pop in my nv_24 DVD, and give the path, /cdrom/sol_11_x86/Solaris_11/Product, all needed packages are installed. Easy!
Now, base directory, like I said, I would like to use home directory, so I tried:
Okeydo, try absolute path.Enter the base directory (prefix) of the cbe [/jds/cbe]: ~/jds/cbe Would you like to create it now? [yes]: Failed to create directory ~/jds/cbe (mkdir: "/~/jds/cbe": Permission denied)
Enter the base directory (prefix) of the cbe [/jds/cbe]: /home/henryjen/jds/cbe Would you like to create it now? [yes]:
That works, continue, argh, my Sun Studio does not have the required patch, how about smpatch analyze? Need to register, OK, updatemanager, register without a key, updating ..., a dialog popup, Read System Analysis Data Error. Try again as directed, the same.
OK, try another way. Download required patch as mentioned at http://opensolaris.org/os/community/tools/sun_studio_tools/. Follow the instruction. Voila, it is building CBE.