ReferencePlatforms/Linux: Difference between revisions
Jump to navigation
Jump to search
(Finished!) |
GavinSharp (talk | contribs) |
||
Line 38: | Line 38: | ||
Note: we should archive this binary somewhere | Note: we should archive this binary somewhere | ||
Go to http://java.sun.com/javase/downloads/ | *Go to http://java.sun.com/javase/downloads/ | ||
Click through to JDK 5.0 Update 8 | *Click through to JDK 5.0 Update 8 | ||
Download the "Linux self-extracting file"... ''not the RPM'' | *Download the "Linux self-extracting file"... ''not the RPM'' | ||
Save to /builds | *Save to /builds | ||
cd /builds | cd /builds |
Revision as of 21:55, 16 August 2006
This is a procedure I'm using to create a potential VM for producing Linux nightlies for Gecko 1.9.
Install CentOS4.3 from CDs
For the moment, I'm using "bsmedberg" as the regular user. If we are going to provide a public download of the VM, we probably shouldn't use the standard cltbld account/password. I'm not sure how that should work security-wise.
Choose the development workstation installation set.
Fix some permissions, create /builds directory
Save the following file as ~/.bash_profile
# Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin
export PATH export CVS_RSH=ssh export JAVA_HOME=/builds/jdk1.5.0_08
Fix some permissions, and create a /builds directory.
su - chmod a+x /etc/bashrc groupadd builders usermod -a -G builders bsmedberg mkdir /builds chgrp builders /builds
Logout/login to pick up new group setting
Install Sun Java JDK
Note: we should archive this binary somewhere
- Go to http://java.sun.com/javase/downloads/
- Click through to JDK 5.0 Update 8
- Download the "Linux self-extracting file"... not the RPM
- Save to /builds
cd /builds ./jdk-1_5_0_08-linux-i586.bin # type 'yes' to accept the license
Get GCC trunk builds
This will change when GCC 4.2 is actually released.
mkdir /builds/gcc-trunk cd /builds/gcc-trunk curl ftp://gcc.gnu.org/pub/gcc/snapshots/4.2-20060812/gcc-4.2-20060812.tar.bz2 > gcc-4.2-20060812tar.bz2 tar -xjf gcc-4.2-20060812.tar.bz2 curl "http://gcc.gnu.org/cgi-bin/get-raw-msg?listname=gcc-patches&date=2006-08&msgid=44E07A8D.4060106%40smedbergs.us" > gcc-rtti.patch cd gcc-4.2-20060812/gcc patch -p0 -l < ../../gcc-rtti.patch # Ignore the error about invoke.texi mkdir /builds/gcc-trunk/obj-release cd /builds/gcc-trunk/obj-release ../gcc-4.2-20060812/configure --prefix=/builds/gcc-trunk/installed-release --enable-shared=libgcc --enable-__cxa_atexit --enable-languages=c,c++ --with-system-zlib make make install
To build mozilla
The mozconfig for building mozilla should contain the following settings:
CC=/builds/gcc-trunk/installed-release/bin/gcc CXX=/builds/gcc-trunk/installed-release/bin/g++