Building ON on OpenSolaris 2008.05

You might be able to get a lot of the packages with "pkg install ss-dev" or "pkg install gcc-dev", but that's not what
I did.

   -  Download ISO image from
        http://opensolaris.org/index.html

   - Install

   - Update to build 91 (and above)

       # pkg image-update
       # beadm mount opensolaris-1 /mnt
       # /mnt/boot/solaris/bin/update-
grub -R /mnt
       # reboot

   - Now you should be running build 91

       # zfs mount rpool/ROOT/opensolaris/opt
       # pkg refresh --full
       # pkg install SUNWmercurial SUNWgcc SUNWhea SUNWarc SUNWj6dev /
         SUNWperl-xml-parser SUNWtlsd SUNWprd SUNWsfwhea SUNWj6rt SUNWflexlex

       # pkgadd -d path-to-WBEM-packages SUNWwb*

The rest of the steps are the same as building ON on any good old
Solaris system, but are included here fore completeness:

   - Install Sun Studio compilers and build tools:

       Download SS11.tar.bz2 from
            http://opensolaris.org/os/community/tools/sun_studio_tools/sun_studio_11_tools/
       # cd /opt; bzcat SS11.tar.bz2 | tar xf -

       Download SUNWonbld.i386.tar.bz2 from
            http://dlc.sun.com/osol/on/downloads/current/
       # cd /tmp; bzcat SUNWonbld.i386.tar.bz2 | tar xf -
       # pkgadd -d onbld SUNWonbld

   - Bring over ON (OS/Net) source

       # hg clone ssh:// anon@hg.opensolaris.org/hg/onnv/onnv-gate /
           onnv-your-name

   - Download the closed binaries from
            http://dlc.sun.com/osol/on/downloads/current/
       # cd onnv-your-name
       # bzcat on-closed-bins.i386.tar.bz2 | tar xf -

       If doing non-debug build
       # bzcat on-closed-bins-nd.i386.tar.bz2 | tar xf -

   - Customize environment file
       # cp usr/src/tools/env/opensolaris. sh opensolaris.sh

       - Change GATE to your workspace: onnv-your-name
       - Change CODEMGR_WS to your path: /rpool/your-name/${GATE}
       - Change STAFFER to yourself
       - If no gcc build, add this line to opensolaris.sh

          CW_NO_SHADOW= ; export CW_NO_SHADOW

   - Compilation

       # /opt/onbld/bin/nightly opensolaris.sh &
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值