6872735: Further update build readme for new platforms jdk7-b73

Wed, 23 Sep 2009 20:06:01 +0200

author
robilad
date
Wed, 23 Sep 2009 20:06:01 +0200
changeset 132
3ac6dcf78232
parent 131
d70b157f6407
child 133
2c88089b6e1c

6872735: Further update build readme for new platforms
6641691: Bring build readme's up-to-date
Summary: Added build instructions for Debian, Ubuntu 8.04, 8.10, 9.04, Fedora 10, 11, OpenSolaris 2009.06, OpenSUSE and Mandriva
Reviewed-by: ohair, andrew

README-builds.html file | annotate | diff | comparison | revisions
     1.1 --- a/README-builds.html	Tue Sep 22 14:06:04 2009 -0700
     1.2 +++ b/README-builds.html	Wed Sep 23 20:06:01 2009 +0200
     1.3 @@ -38,12 +38,17 @@
     1.4              <ul>
     1.5                  <li><a href="#introduction">Introduction</a></li>
     1.6                  <li><a href="#MBE">Minimum Build Environments</a></li>
     1.7 -                <li><a href="#SDBE">Specific Developer Build Environments</a></li>
     1.8 +                <li><a href="#SDBE">Specific Developer Build Environments</a>
     1.9                      <ul>
    1.10                          <li><a href="#fedora">Fedora Linux</a> </li>
    1.11                          <li><a href="#centos">CentOS Linux</a> </li>
    1.12 -                        <li><a href="#ubuntu">Ubuntu Linux</a> </li>
    1.13 +		        <li><a href="#debian">Debian GNU/Linux</a></li>
    1.14 +			<li><a href="#ubuntu">Ubuntu Linux</a> </li>
    1.15 +		        <li><a href="#opensuse">OpenSUSE</a></li>
    1.16 +		        <li><a href="#mandriva">Mandriva</a></li>
    1.17 +		        <li><a href="#opensolaris">OpenSolaris</a></li>
    1.18                      </ul>
    1.19 +		</li>
    1.20                  <li><a href="#directories">Source Directory Structure</a> </li>
    1.21                  <li><a href="#building">Build Information</a>
    1.22                      <ul>
    1.23 @@ -209,24 +214,59 @@
    1.24              we will try to provide what information we have available to us.
    1.25          </blockquote>
    1.26          <!-- ------------------------------------------------------ -->
    1.27 -        <h3><a name="fedora">Fedora 9</a></h3>
    1.28 +        <h3><a name="fedora">Fedora</a></h3>
    1.29          <blockquote>
    1.30 -            After installing
    1.31 -            <a href="http://www.fedoraproject.org/">Fedora 9</a>
    1.32 -            you need to make sure you have
    1.33 -            the "Software Development" bundle installed, plus the
    1.34 -            following packages:
    1.35 -            <blockquote>
    1.36 -                <ul>
    1.37 -                    <li>cups devel: Cups Development Package</li>
    1.38 -                    <li>freetype 2.3+ devel: Freetype 2.3 Development Package</li>
    1.39 -                    <li>hg: Mercurial, if you need to clone or manage source repositories</li>
    1.40 -                    <li>ksh: May be needed when using <tt>webrev</tt></li>
    1.41 -                </ul>
    1.42 +	  <h4>Fedora 9</h4>
    1.43 +	  <p>
    1.44 +	    <blockquote>
    1.45 +              After installing <a href="http://fedoraproject.org">Fedora</a> 9 
    1.46 +	      you need to install several build dependencies. The simplest
    1.47 +	      way to do it is to execute the following commands as user 
    1.48 +	      <tt>root</tt>:
    1.49 +	      <p/>
    1.50 +	      <code>yum-builddep java-openjdk</code>
    1.51 +	      <p/>
    1.52 +	      <code>yum install gcc gcc-c++</code>
    1.53 +	      <p/>
    1.54 +	      In addition, it's necessary to set a few environment variables for the build:
    1.55 +
    1.56 +	      <p/>
    1.57 +	      <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-openjdk</code>
    1.58              </blockquote>
    1.59 -            <p>
    1.60 -            Always a good idea to do a complete Software Update/Refresh
    1.61 -            after you get all the packages installed.
    1.62 +	  <h4>Fedora 10</h4>
    1.63 +	  <p>
    1.64 +	    <blockquote>
    1.65 +              After installing <a href="http://fedoraproject.org">Fedora</a> 10 
    1.66 +	      you need to install several build dependencies. The simplest
    1.67 +	      way to do it is to execute the following commands as user 
    1.68 +	      <tt>root</tt>:
    1.69 +	      <p/>
    1.70 +	      <code>yum-builddep java-1.6.0-openjdk</code>
    1.71 +	      <p/>
    1.72 +	      <code>yum install gcc gcc-c++</code>
    1.73 +	      <p/>
    1.74 +	      In addition, it's necessary to set a few environment variables for the build:
    1.75 +
    1.76 +	      <p/>
    1.77 +	      <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-openjdk</code>
    1.78 +            </blockquote>
    1.79 +	  <h4>Fedora 11</h4>
    1.80 +	  <p>
    1.81 +	    <blockquote>
    1.82 +              After installing <a href="http://fedoraproject.org">Fedora</a> 11 
    1.83 +	      you need to install several build dependencies. The simplest
    1.84 +	      way to do it is to execute the following commands as user 
    1.85 +	      <tt>root</tt>:
    1.86 +	      <p/>
    1.87 +	      <code>yum-builddep java-1.6.0-openjdk</code>
    1.88 +	      <p/>
    1.89 +	      <code>yum install gcc gcc-c++</code>
    1.90 +	      <p/>
    1.91 +	      In addition, it's necessary to set a few environment variables for the build:
    1.92 +
    1.93 +	      <p/>
    1.94 +	      <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-openjdk</code>
    1.95 +             </blockquote>
    1.96          </blockquote>
    1.97          <!-- ------------------------------------------------------ -->
    1.98          <h3><a name="centos">CentOS 5.2</a></h3>
    1.99 @@ -269,145 +309,146 @@
   1.100              it's needed.
   1.101          </blockquote>
   1.102          <!-- ------------------------------------------------------ -->
   1.103 -        <h3><a name="ubuntu">Ubuntu</a></h3>
   1.104 +        <h3><a name="debian">Debian</a></h3>
   1.105          <blockquote>
   1.106 -            In addition to needing the Bootstrap JDK and the Binary Plugs, 
   1.107 -            when building on Ubuntu you will need to
   1.108 -            make sure certain packages are installed.
   1.109 -            In particular, certain X11 packages, make, m4, gawk, gcc 4, 
   1.110 -            binutils, cups, freetype
   1.111 -            and alsa.
   1.112 -            <!-- ------------------------------------------------------ -->
   1.113 -            <h4>Ubuntu 6.06</h4>
   1.114 +            <h4>Debian 5.0 (Lenny)</h4>
   1.115              <p>
   1.116 -            The following list of packages for Ubuntu 6.06 is a working set that
   1.117 -            does appear to work. 
   1.118 +	      <blockquote>
   1.119 +		After installing <a href="http://debian.org">Debian</a> 5 
   1.120 +		you need to install several build dependencies. 
   1.121 +		The simplest way to install the build dependencies is to 
   1.122 +		execute the following commands as user <tt>root</tt>:
   1.123 +		<p/>
   1.124 +		<code>aptitude build-dep openjdk-6</code>
   1.125 +		<p/>
   1.126 +		<code>aptitude install openjdk-6-jdk libmotif-dev</code>
   1.127 +		<p/>
   1.128 +		In addition, it's necessary to set a few environment variables for the build:
   1.129 +		<p/>
   1.130 +		<code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk</code>
   1.131 +	      </blockquote>
   1.132 +        </blockquote>
   1.133 +        <!-- ====================================================== -->
   1.134 +	<h3><a name="ubuntu">Ubuntu</a></h3>
   1.135 +        <blockquote>
   1.136 +            <h4>Ubuntu 8.04</h4>
   1.137              <p>
   1.138 -            <b>Note that it's quite possible that some of these
   1.139 -                packages are not required, so anyone discovering that some of the
   1.140 -                packages listed below are NOT required,
   1.141 -                please let the
   1.142 -                OpenJDK
   1.143 -            team know.</b>
   1.144 +	      <blockquote>
   1.145 +		After installing <a href="http://ubuntu.org">Ubuntu</a> 8.04 
   1.146 +		you need to install several build dependencies. 
   1.147 +		<p/>
   1.148 +		First, you need to enable the universe repository in the 
   1.149 +		Software Sources application and reload the repository 
   1.150 +		information. The Software Sources application is available 
   1.151 +		under the System/Administration menu. 
   1.152 +		<p/>
   1.153 +		The simplest way to install the build dependencies is to 
   1.154 +		execute the following commands:
   1.155 +		<p/>
   1.156 +		<code>sudo aptitude build-dep openjdk-6</code>
   1.157 +		<p/>
   1.158 +		<code>sudo aptitude install openjdk-6-jdk</code>
   1.159 +		<p/>
   1.160 +		In addition, it's necessary to set a few environment variables for the build:
   1.161 +		<p/>
   1.162 +		<code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk</code>
   1.163 +              </blockquote>
   1.164 +           <h4>Ubuntu 8.10</h4>
   1.165              <p>
   1.166 -            All the packages below can be installed with the
   1.167 -            Synaptic Package manager provided with the base Ubuntu 6.06 release.
   1.168 -            <blockquote>
   1.169 -                <ul>
   1.170 -                    <li>binutils (2.16.1cvs20060117-1ubuntu2.1)</li>
   1.171 -                    <li>cpp (4:4.0.3-1)</li>
   1.172 -                    <li>cpp-4.0 (4.0.3-1ubuntu5)</li>
   1.173 -                    <li>libfreetype6-dev</li>
   1.174 -                    <li>g++ (4:4.0.3-1)</li>
   1.175 -                    <li>g++-4.0 (4.0.3-1ubuntu5)</li>
   1.176 -                    <li>gawk (1:3.1.5-2build1)</li>
   1.177 -                    <li>gcc (4:4.0.3-1)</li>
   1.178 -                    <li>gcc-4.0 (4.0.3-1ubuntu5)</li>
   1.179 -                    <li>libasound2-dev (1.0.10-2ubuntu4)</li>
   1.180 -                    <li>libc6 (2.3.6-0ubuntu20) to 2.3.6-0ubuntu20.4</li>
   1.181 -                    <li>libc6-dev (2.3.6-0ubuntu20.4)</li>
   1.182 -                    <li>libc6-i686 (2.3.6-0ubuntu20) to 2.3.6-0ubuntu20.4</li>
   1.183 -                    <li>libcupsys2-dev (1.2.2-0ubuntu0.6.06)</li>
   1.184 -                    <li>libgcrypt11-dev (1.2.2-1)</li>
   1.185 -                    <li>libgnutls-dev (1.2.9-2ubuntu1.1)</li>
   1.186 -                    <li>libgnutls12 (1.2.9-2ubuntu1) to 1.2.9-2ubuntu1.1</li>
   1.187 -                    <li>libgpg-error-dev (1.1-4)</li>
   1.188 -                    <li>libice-dev (2:1.0.0-0ubuntu2)</li>
   1.189 -                    <li>liblockfile1 (1.06.1)</li>
   1.190 -                    <li>libopencdk8-dev (0.5.7-2)</li>
   1.191 -                    <li>libpopt-dev (1.7-5)</li>
   1.192 -                    <li>libsm-dev (2:1.0.0-0ubuntu2)</li>
   1.193 -                    <li>libstdc++6-4.0-dev (4.0.3-1ubuntu5)</li>
   1.194 -                    <li>libtasn1-2-dev (0.2.17-1ubuntu1)</li>
   1.195 -                    <li>libx11-dev (2:1.0.0-0ubuntu9)</li>
   1.196 -                    <li>libxau-dev (1:1.0.0-0ubuntu4)</li>
   1.197 -                    <li>libxaw-headers (2:1.0.1-0ubuntu3)</li>
   1.198 -                    <li>libxaw7-dev (2:1.0.1-0ubuntu3)</li>
   1.199 -                    <li>libxdmcp-dev (1:1.0.0-0ubuntu2)</li>
   1.200 -                    <li>libxext-dev (2:1.0.0-0ubuntu4)</li>
   1.201 -                    <li>libxi-dev (2:1.0.0-0ubuntu3) </li>
   1.202 -                    <li>libxmu-dev (2:1.0.0-0ubuntu3)</li>
   1.203 -                    <li>libxmu-headers (2:1.0.0-0ubuntu3)</li>
   1.204 -                    <li>libxmuu-dev (2:1.0.0-0ubuntu3)</li>
   1.205 -                    <li>libxp-dev (6.8.2-11ubuntu2)</li>
   1.206 -                    <li>libxpm-dev (1:3.5.4.2-0ubuntu3)</li>
   1.207 -                    <li>libxrandr-dev (1:1.1.0.2-0ubuntu4)</li>
   1.208 -                    <li>libxt-dev (1:1.0.0-0ubuntu3)</li>
   1.209 -                    <li>libxtrap-dev (2:1.0.0-0ubuntu2)</li>
   1.210 -                    <li>libxtst-dev (2:1.0.1-0ubuntu2)</li>
   1.211 -                    <li>libxv-dev (2:1.0.1-0ubuntu3)</li>
   1.212 -                    <li>linux-kernel-headers (2.6.11.2-0ubuntu18)</li>
   1.213 -                    <li>m4 (1.4.4-1)</li>
   1.214 -                    <li>make (3.80+3.81.b4-1)</li>
   1.215 -                    <li>ssl-cert (1.0.13)</li>
   1.216 -                    <li>x-dev (7.0.4-0ubuntu2)</li>
   1.217 -                    <li>x11proto-core-dev (7.0.4-0ubuntu2)</li>
   1.218 -                    <li>x11proto-input-dev (1.3.2-0ubuntu2)</li>
   1.219 -                    <li>x11proto-kb-dev (1.0.2-0ubuntu2)</li>
   1.220 -                    <li>x11proto-randr-dev (1.1.2-0ubuntu2)</li>
   1.221 -                    <li>x11proto-record-dev (1.13.2-0ubuntu2)</li>
   1.222 -                    <li>x11proto-trap-dev (3.4.3-0ubuntu2)</li>
   1.223 -                    <li>x11proto-video-dev (2.2.2-0ubuntu2)</li>
   1.224 -                    <li>x11proto-xext-dev (7.0.2-0ubuntu2)</li>
   1.225 -                    <li>xlibs-dev (7.0.0-0ubuntu45)</li>
   1.226 -                    <li>zlib1g-dev (1:1.2.3-6ubuntu4)</li>
   1.227 -                </ul>
   1.228 -            </blockquote>
   1.229 -            <!-- ------------------------------------------------------ -->
   1.230 -            <h4>Ubuntu 7.04</h4>
   1.231 +	      <blockquote>
   1.232 +		After installing <a href="http://ubuntu.org">Ubuntu</a> 8.10 
   1.233 +		you need to install several build dependencies. The simplest
   1.234 +		way to do it is to execute the following commands:
   1.235 +		<p/>
   1.236 +		<code>sudo aptitude build-dep openjdk-6</code>
   1.237 +		<p/>
   1.238 +		<code>sudo aptitude install openjdk-6-jdk</code>
   1.239 +		<p/>
   1.240 +		In addition, it's necessary to set a few environment variables for the build:
   1.241 +		<p/>
   1.242 +		<code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk</code>
   1.243 +             </blockquote>
   1.244 +           <h4>Ubuntu 9.04</h4>
   1.245              <p>
   1.246 -            Using the Synaptic Package Manager, download the following
   1.247 -            packages (double indented packages are automatically aquired
   1.248 -            due to package dependencies):
   1.249 -            <blockquote>
   1.250 -                <ul>
   1.251 -                    <li>build-essential</li>
   1.252 -                    <ul>
   1.253 -                        <li>dpkg-dev</li>
   1.254 -                        <li>g++</li>
   1.255 -                        <li>g++-4.1</li>
   1.256 -                        <li>libc6-dev</li>
   1.257 -                        <li>libstdc++6.4.1-dev</li>
   1.258 -                        <li>linux-libc-dev</li>
   1.259 -                    </ul>
   1.260 -                    <li>gawk</li>
   1.261 -                    <li>m4</li>
   1.262 -                    <li>libasound2-dev</li>
   1.263 -                    <li>libcupsys2-dev</li>
   1.264 -                    <ul>
   1.265 -                        <li>libgcrypt11-dev</li>
   1.266 -                        <li>lgnutls-dev</li>
   1.267 -                        <li>libgpg-error-dev</li>
   1.268 -                        <li>liblzo-dev</li>
   1.269 -                        <li>libopencdk8-dev</li>
   1.270 -                        <li>libpopt-dev</li>
   1.271 -                        <li>libtasn1-3-dev</li>
   1.272 -                        <li>zlib1g-dev</li>
   1.273 -                    </ul>
   1.274 -                    <li>sun-java6-jdk</li>
   1.275 -                    <ul>
   1.276 -                        <li>java-common</li>
   1.277 -                        <li>libltdl3</li>
   1.278 -                        <li>odbcinst1debian1</li>
   1.279 -                        <li>sun-java6-bin</li>
   1.280 -                        <li>sun-java6-jre</li>
   1.281 -                        <li>unixodbc</li>
   1.282 -                    </ul>
   1.283 -                    <li>xlibs-dev</li>
   1.284 -                    <ul>
   1.285 -                        <li>(many)</li>
   1.286 -                    </ul>
   1.287 -                    <li>x11proto-print-dev</li>
   1.288 -                    <li>libxaw7-dev</li>
   1.289 -                    <ul>
   1.290 -                        <li>libxaw-headers</li>
   1.291 -                    </ul>
   1.292 -                    <li>libxp-dev</li>
   1.293 -                    <li>libfreetype6-dev</li>
   1.294 -                </ul>
   1.295 -            </blockquote>
   1.296 +	      <blockquote>
   1.297 +		After installing <a href="http://ubuntu.org">Ubuntu</a> 9.04 
   1.298 +		you need to install several build dependencies. The simplest
   1.299 +		way to do it is to execute the following commands:
   1.300 +		<p/>
   1.301 +		<code>sudo aptitude build-dep openjdk-6</code>
   1.302 +		<p/>
   1.303 +		<code>sudo aptitude install openjdk-6-jdk</code>
   1.304 +		<p/>
   1.305 +		In addition, it's necessary to set a few environment variables for the build:
   1.306 +		<p/>
   1.307 +		<code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk</code>
   1.308 +             </blockquote>
   1.309          </blockquote>
   1.310 -        <!-- ------------------------------------------------------ -->
   1.311 +        <!-- ====================================================== -->
   1.312 +        <h3><a name="opensuse">OpenSUSE</a></h3>
   1.313 +        <blockquote>
   1.314 +            <h4>OpenSUSE 11.1</h4>
   1.315 +            <p>
   1.316 +	      <blockquote>
   1.317 +		After installing <a href="http://opensuse.org">OpenSUSE</a> 11.1 
   1.318 +		you need to install several build dependencies. 
   1.319 +		The simplest way to install the build dependencies is to 
   1.320 +		execute the following commands:
   1.321 +		<p/>
   1.322 +		<code>sudo zypper source-install -d java-1_6_0-openjdk</code>
   1.323 +		<p/>
   1.324 +		<code>sudo zypper install make</code>
   1.325 +		<p/>
   1.326 +		In addition, it is necessary to set a few environment variables for the build:
   1.327 +		<p/>
   1.328 +		<code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-1.6.0-openjdk</code>
   1.329 +		<p/>
   1.330 +		Finally, you need to unset the <code>JAVA_HOME</code> environment variable:
   1.331 +		<p/>
   1.332 +		<code>export -n JAVA_HOME</code>
   1.333 +	      </blockquote>
   1.334 +	</blockquote>
   1.335 +        <!-- ====================================================== -->
   1.336 +        <h3><a name="mandriva">Mandriva</a></h3>
   1.337 +        <blockquote>
   1.338 +            <h4>Mandriva Linux One 2009 Spring</h4>
   1.339 +            <p>
   1.340 +	      <blockquote>
   1.341 +		After installing <a href="http://mandriva.org">Mandriva</a> Linux One 2009 Spring 
   1.342 +		you need to install several build dependencies. 
   1.343 +		The simplest way to install the build dependencies is to 
   1.344 +		execute the following commands as user <tt>root</tt>:
   1.345 +		<p/>
   1.346 +		<code>urpmi java-1.6.0-openjdk-devel ant make gcc gcc-c++ freetype-devel zip unzip libcups2-devel libxrender1-devel libalsa2-devel libstc++-static-devel libxtst6-devel libxi-devel</code>
   1.347 +                <p/>
   1.348 +		In addition, it is necessary to set a few environment variables for the build:
   1.349 +		<p/>
   1.350 +		<code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-1.6.0-openjdk</code>
   1.351 +	      </blockquote>
   1.352 +        </blockquote>
   1.353 +        <!-- ====================================================== -->
   1.354 +        <h3><a name="opensolaris">OpenSolaris</a></h3>
   1.355 +        <blockquote>
   1.356 +            <h4>OpenSolaris 2009.06</h4>
   1.357 +            <p>
   1.358 +	      <blockquote>
   1.359 +		After installing <a href="http://opensolaris.org">OpenSolaris</a> 2009.06 
   1.360 +		you need to install several build dependencies. 
   1.361 +		The simplest way to install the build dependencies is to 
   1.362 +		execute the following commands:
   1.363 +		<p/>
   1.364 +		<code>pfexec pkg install SUNWgmake SUNWj6dev SUNWant sunstudioexpress SUNWcups SUNWzip SUNWunzip SUNWxwhl SUNWxorg-headers SUNWaudh SUNWfreetype2</code>
   1.365 +                <p/>
   1.366 +		In addition, it is necessary to set a few environment variables for the build:
   1.367 +		<p/>
   1.368 +		<code>export LANG=C ALT_COMPILER_PATH=/opt/SunStudioExpress/bin/ ALT_CUPS_HEADERS_PATH=/usr/include/</code>
   1.369 +		<p/>
   1.370 +		Finally, you need to make sure that the build process can find the Sun Studio compilers:
   1.371 +		<p/>
   1.372 +		<code>export PATH=$PATH:/opt/SunStudioExpress/bin/</code>
   1.373 +	      </blockquote>
   1.374 +        </blockquote>
   1.375 +        <!-- ------------------------------------------------------ -->  
   1.376          <hr>
   1.377          <h2><a name="directories">Source Directory Structure</a></h2>
   1.378          <blockquote>

mercurial