1 $NetBSD: README.Solaris,v 1.11 2009/01/19 20:34:33 adrianp Exp $
3 You will need a working C compiler. Any version of gcc >2.8 should
4 work, 2.95.x and 3.x have been tested. SunPro 5 and 8 have been
5 tested, but versions in between should work, too.
7 The following packages are the minimum required on Solaris 8 to
8 bootstrap and build packages.
17 Realistically you will need more, such as SUNWlibm, and SUNWlibC for
18 C++ packages if you are using SunPro.
20 Please note the use of GNU binutils on Solaris is not supported.
22 pkgsrc in Solaris Zones
23 -----------------------
25 If you are trying to bootstrap pkgsrc in a Solaris Zone then you will
26 need to install the following packages (assuming you will bootstrap using
41 Tested on OpenSolaris 5.11 snv_105 and pkgsrc bootstrap as at Jan 2009.
45 It makes life much simpler if you only use the same gcc consistently
46 for building all packages.
48 See http://www.netbsd.org/docs/software/packages.html for
49 binary kits and initial packages, including gcc.
51 It is recommended that an external gcc be used only for bootstrapping,
52 then remove gcc and install the pkgsrc binary package.
54 Binary packages of gcc can be found through
55 http://www.sunfreeware.com/
57 If you are using Sun WorkShop
58 -----------------------------
59 You will need at least the following packages installed to build C and
64 SPROcc Sun WorkShop Compiler C 5.0
65 SPROcpl Sun WorkShop Compiler C++ 5.0
66 SPROild Sun WorkShop Incremental Linker
67 SPROlang Sun WorkShop Compilers common components
71 SPROcc Sun ONE Studio 8 Compiler C
72 SPROcpl Sun ONE Studio 8 Compiler C++
73 SPROdwrfb DwarfSupportLibrary binaries
74 SPROild Sun ONE Studio 8 Incremental Linker
75 SPROlang Sun ONE Studio 8 Compilers Common Components
76 SPROsbld Sun ONE Studio 8 Linker Stab Library
77 SPROscl Sun ONE Studio 8 Standard Class Library for C++
78 SPROtlbn7 Sun ONE Studio 8 Tools.h++ 7.1 Class Library for C++
79 SPROutool Sun ONE Studio 8 Common Tools
81 The corresponding 64-bit packages are also required to build 64-bit
82 binaries and libraries.
84 To build 64-bit binaries, pass '--abi=64' to bootstrap, and also see the
85 crle(1) man page to configure the runtime linking environment.
87 pkgsrc defaults to finding the Sun compiler in /opt/SUNWspro. If you use a
88 different prefix, pass SUNWSPROBASE in the environment to bootstrap. If 'cc'
89 is not in your path, pass CC as well. So, to build 64-bit Sun compiler
90 bootstrap with a non-standard install:
92 env CC=/opt/studio12/SUNWspro/bin/cc \
93 SUNWSPROBASE=/opt/studio12/SUNWspro \
96 When bootstrap is finished your default mk.conf will contain ABI and
97 SUNWSPROBASE so you will not need to set these variables again.
99 Whichever compiler you use, please ensure the compiler tools and
100 your $prefix are in your PATH. This includes /usr/ccs/{bin,lib}
101 and eg. /usr/pkg/{bin,sbin}.
103 bootstrap-pkgsrc has been tested on Solaris 2.6 -> 10.