INSTALLING SELECT PACKAGES
These notes were made while installing versions of select external packages. The packages themselves contain the actual installation instructions. These notes should only serve as examples. You'll have to make the appropriate substitutions for your site.
In these examples the BOREALIS_SOFTWARE environment variable is set to a directory where the packages will be installed. If you want to install a package in the default system directories omit the --prefix argument and run the make install command as a super user. Note that you can not intall packages in a temporary directory and then copy them elsewhere.
Download gcc-4.1.1.tar.gz or earlier through gcc-3.3.5.tar.gz from gcc.gnu.org/releases.html and unroll it in a temporary directory.
> gunzip gcc-4.1.1.tar.gz
> tar xvf gcc-4.1.1.tar
> mkdir gcc_obj
> cd gcc_obj/
> ../gcc4.1.1/configure --program-suffix=-4.1.1 --prefix=${BOREALIS_SOFTWARE}/gcc
> make bootstrap
> make install
Download ccache-2.4.tar.gz from www.samba.org/ftp/ccache/ and unroll it in a temporary directory. Note that this is installed in a common subdirectory that can be shared with other build tools.
ccache-2.4> configure --prefix=${BOREALIS_SOFTWARE}/common
ccache-2.4> make
ccache-2.4> make install
In many cases if a version comes with the operating system it will work. The default version is usually at: /usr/bin/ccache
Download antlr-2.7.6.tar.gz from www.antlr.org and unroll it in a temporary directory.
# First on PATH to override older Debian version.
> setenv PATH /.../java/linux/jdk1.5/bin:${PATH}
# Make sure the directory containing configure is in the CLASSPATH.
> setenv CLASSPATH \
/.../java/linux/jdk1.5/lib/jre/javaws/:<temporary>/antlr/antlr-2.7.6/
> mkdir ${BOREALIS_SOFTWARE}/antlr
antlr-2.7.6> configure --disable-csharp --prefix=${BOREALIS_SOFTWARE}/antlr
antlr-2.7.6> make
antlr-2.7.6> make install
# The borealis/src/configure.ac file accesses the jar file here:
${BOREALIS_SOFTWARE}/antlr> cp share/antlr-2.7.6/antlr.jar lib/antlr.jar
You will want to modify your login script to ensure the PATH and CLASSPATH variables are properly set.
Depending on availability you can download and install the binary distribution. With gcc 3.3.5 the binary distribution xerces-c_2_6_0-redhat_80-gcc_32.tar.gz can be downloaded from xml.apache.org/xerces-c/download.cgi and unroll it in a temporary directory.
> mv xerces-c_2_6_0-redhat_80-gcc_32 ${BOREALIS_SOFTWARE}/xerces
If no binary distribution is available you can build it from source. For gcc 4.0.4 and 4.1.1 you can download xerces-c-current.tar from xml.apache.org/xerces-c/build.html and unroll it a temporary directory.
xerces-c-src_2_7_0/src/xercesc> setenv XERCESCROOT <kit location>/xerces-c-src_2_7_0
xerces-c-src_2_7_0/src/xercesc> runConfigure -p linux -c gcc -x g++ -P ${BOREALIS_SOFTWARE}/xerces
xerces-c-src_2_7_0/src/xercesc> make
xerces-c-src_2_7_0/src/xercesc> make install
Download libtool-1.5.22.tar.gz from www.gnu.org/software/libtool/libtool.html and unroll it in a temporary directory. This procedure will install bin/libtool and bin/libtoolize. Note that this is installed in a common subdirectory that can be shared with other build tools.
libtool-1.5.22> configure --prefix=${BOREALIS_SOFTWARE}/common
libtool-1.5.22> make
libtool-1.5.22> make install
Download autoconf-2.60.tar.gz from www.gnu.org/software/autoconf/ and unroll it in a temporary directory. This procedure will install bin/autoconf, bin/autoheader, bin/autom4te, bin/autoreconf, bin/autoscan, bin/autoupdate and bin/ifnames. Note that this is installed in a common subdirectory that can be shared with other build tools.
autoconf-2.60> configure --prefix=${BOREALIS_SOFTWARE}/common
autoconf-2.60> make
autoconf-2.60> make install
Download automake-1.9.2.tar.gz from www.gnu.org/software/automake/ and unroll it in a temporary directory. This procedure will install bin/aclocal and bin/automake. Note that this is installed in a common subdirectory that can be shared with other build tools.
automake-1.9.6> configure --prefix=${BOREALIS_SOFTWARE}/common
automake-1.9.6> make
automake-1.9.6> make install
Automake, Autoconf and Libtool need to be installed in the same directory.
> echo /usr/share/aclocal > /usr/local/share/aclocal/dirlistSee the Automake manual's "Macro search path" section for more discussion about dirlist.
Download db-4.4.20.tar.gz from www.sleepycat.com and unroll it in a temporary directory.
> mkdir ${BOREALIS_SOFTWARE}/bdb
db-4.4.20/build_unix> ../dist/configure --enable-cxx \
--prefix=${BOREALIS_SOFTWARE}/bdb
db-4.4.20/build_unix> make
db-4.4.20/build_unix> make install
If you configure Berkeley-Db without the --enable-cxx flag the lib_cxx.a will not be created. When you build Borealis you'll get the message "cannot find -ldb_cxx".
Download glpk-4.8-src-11.11.tar.gz, from www.gnu.org/software/glpk/glpk.html and unroll it in a temporary directory.
> mkdir ${BOREALIS_SOFTWARE}/glpk
glpk-4.8> configure --prefix=${BOREALIS_SOFTWARE}/glpk
glpk-4.8> make
glpk-4.8> make install
Download gsl-1.7.tar.gz, from www.gnu.org/software/gsl/ and unroll it in a temporary directory.
> mkdir ${BOREALIS_SOFTWARE}/gsl
gsl-1.7> configure --prefix=${BOREALIS_SOFTWARE}/gsl
gsl-1.7> make
gsl-1.7> make install
Download opencv-1.0.0.tar.gz, from http://downloads.sourceforge.net/opencvlibrary/ and unroll it in a temporary directory.
> mkdir ${BOREALIS_SOFTWARE}/ocv
opencv-1.0.0> configure --prefix=${BOREALIS_SOFTWARE}/ocv
opencv-1.0.0> make
opencv-1.0.0> make install
Download doxygen-1.4.7.src.tar.gz, from www.stack.nl/~dimitri/doxygen/index.html and unroll it in a temporary directory.
> mkdir ${BOREALIS_SOFTWARE}/doxygen
doxygen-1.4.7> configure --prefix ${BOREALIS_SOFTWARE}/doxygen
doxygen-1.4.7> make
doxygen-1.4.7> make install