您的位置:首页 > 产品设计 > UI/UE

Building ON on OpenSolaris 2008.05

2008-07-17 08:52 411 查看
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 &
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: