/[escript]/branches/doubleplusgood/doc/install/srclinux.tex
ViewVC logotype

Diff of /branches/doubleplusgood/doc/install/srclinux.tex

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2317 by jfenwick, Thu Mar 19 01:48:00 2009 UTC revision 2455 by jfenwick, Wed Jun 3 03:29:07 2009 UTC
# Line 68  tar -zxf ../package_src/scons-1.2.0.tar. Line 68  tar -zxf ../package_src/scons-1.2.0.tar.
68  Build python.  Build python.
69  \begin{shellCode}  \begin{shellCode}
70  cd Python*  cd Python*
71  ./configure --prefix=\$PKG_ROOT/python-2.6.1 --enable-shared 2>&1 \  ./configure --prefix=$PKG_ROOT/python-2.6.1 --enable-shared 2>&1 \
72    | tee tt.configure.out    | tee tt.configure.out
73  make install 2>&1 | tee tt.make.out  make install 2>&1 | tee tt.make.out
74    
75  cd ..  cd ..
76    
77  export PATH=\$PKG_ROOT/python/bin:\$PATH  export PATH=$PKG_ROOT/python/bin:$PATH
78  export PYTHONHOME=\$PKG_ROOT/python  export PYTHONHOME=$PKG_ROOT/python
79  export LD_LIBRARY_PATH=\$PKG_ROOT/python/lib:\$LD_LIBRARY_PATH  export LD_LIBRARY_PATH=$PKG_ROOT/python/lib:$LD_LIBRARY_PATH
80    
81  pushd ../packages  pushd ../packages
82  ln -s python-2.6.1/ python  ln -s python-2.6.1/ python
# Line 91  Now build numarray. Line 91  Now build numarray.
91  cd numarray-1.5.2  cd numarray-1.5.2
92    
93  python setup.py install \  python setup.py install \
94   --gencode --install-lib=\$PKG_ROOT/numarray-1.5.2/lib \   --gencode --install-lib=$PKG_ROOT/numarray-1.5.2/lib \
95   --install-headers=\$PKG_ROOT=\$PKG_ROOT/numarray-1.5.2/include/numarray \   --install-headers=$PKG_ROOT=$PKG_ROOT/numarray-1.5.2/include/numarray \
96     2>&1 | tee tt.install.out     2>&1 | tee tt.install.out
97    
98    
99  export PYTHONPATH=\$PKG_ROOT/numarray/lib:\$PYTHONPATH  export PYTHONPATH=$PKG_ROOT/numarray/lib:$PYTHONPATH
100  cd ..  cd ..
101  pushd ../packages  pushd ../packages
102  ln -s numarray-1.5.2 numarray  ln -s numarray-1.5.2 numarray
# Line 106  popd Line 106  popd
106  Now we build scons.  Now we build scons.
107  \begin{shellCode}  \begin{shellCode}
108  cd scons-1.2.0  cd scons-1.2.0
109  python setup.py install --prefix=\$PKG_ROOT/scons-1.2.0  python setup.py install --prefix=$PKG_ROOT/scons-1.2.0
110    
111  export PATH=\$PKG_ROOT/scons/bin:\$PATH  export PATH=$PKG_ROOT/scons/bin:$PATH
112  cd ..  cd ..
113  pushd ../packages  pushd ../packages
114  ln -s scons-1.2.0 scons  ln -s scons-1.2.0 scons
# Line 119  popd Line 119  popd
119  \begin{shellCode}  \begin{shellCode}
120  cd boost_1_37_0  cd boost_1_37_0
121    
122  ./configure --prefix=\$PKG_ROOT/boost_1_37_0 --with-python-root=\$PKG_ROOT/python \  ./configure --prefix=$PKG_ROOT/boost_1_37_0 --with-python-root=$PKG_ROOT/python \
123    --with-python-version=2.6 --with-libraries=python    --with-python-version=2.6 --with-libraries=python
124    
125  make  make
126  make install  make install
127  ln -s \$PKG_ROOT/boost_1_37_0 \$PKG_ROOT/boost  ln -s $PKG_ROOT/boost_1_37_0 $PKG_ROOT/boost
128  export LD_LIBRARY_PATH=\$PKG_ROOT/boost/lib:\$LD_LIBRARY_PATH  export LD_LIBRARY_PATH=$PKG_ROOT/boost/lib:$LD_LIBRARY_PATH
129  cd ..  cd ..
130  pushd ../packages  pushd ../packages
131  ln -s boost_1_37_0 boost  ln -s boost_1_37_0 boost
# Line 137  popd Line 137  popd
137  cd netcdf-4.0  cd netcdf-4.0
138  CFLAGS="-O2 fPIC -Df2cFortran" CXXFLAGS="-O2 fPIC -Df2cFortran" \  CFLAGS="-O2 fPIC -Df2cFortran" CXXFLAGS="-O2 fPIC -Df2cFortran" \
139  FFLAGS="-O2 fPIC -Df2cFortran" FCFLAGS="-O2 fPIC -Df2cFortran" \  FFLAGS="-O2 fPIC -Df2cFortran" FCFLAGS="-O2 fPIC -Df2cFortran" \
140  ./configure --prefix=\$PKG_ROOT/netcdf-4.0  ./configure --prefix=$PKG_ROOT/netcdf-4.0
141    
142  make -j2  make -j2
143  make install  make install
144    
145  export LD_LIBRARY_PATH=\$PKG_ROOT/netcdf/lib:\$LD_LIBRARY_PATH  export LD_LIBRARY_PATH=$PKG_ROOT/netcdf/lib:$LD_LIBRARY_PATH
146  cd ..  cd ..
147  pushd ../packages  pushd ../packages
148  ln -s netcdf-4.0 netcdf  ln -s netcdf-4.0 netcdf
# Line 152  popd Line 152  popd
152  CMake and Mesa are required for VTK.  CMake and Mesa are required for VTK.
153  \begin{shellCode}  \begin{shellCode}
154  cd cmake-2.6.3  cd cmake-2.6.3
155  ./configure --prefix=\$PKG_ROOT/cmake-2.6.3 2>&1 | tee tt.configure  ./configure --prefix=$PKG_ROOT/cmake-2.6.3 2>&1 | tee tt.configure
156  make -j 4  make -j 4
157  make install  make install
158    
159  export PATH=\$PKG_ROOT/cmake/bin:\$PATH  export PATH=$PKG_ROOT/cmake/bin:$PATH
160  cd ..  cd ..
161  pushd ../packages  pushd ../packages
162  ln -s cmake-2.6.3 cmake  ln -s cmake-2.6.3 cmake
# Line 167  These instructions do not compile MesaDe Line 167  These instructions do not compile MesaDe
167  If you need to check if Mesa compiled correctly, then the demos are a good test.  If you need to check if Mesa compiled correctly, then the demos are a good test.
168  \begin{shellCode}  \begin{shellCode}
169  cd Mesa-7.2  cd Mesa-7.2
170  ./configure --prefix=\$PKG_ROOT/mesa-7.2 --enable-gl-osmesa --with-driver=xlib  ./configure --prefix=$PKG_ROOT/mesa-7.2 --enable-gl-osmesa --with-driver=xlib
171    
172  make -j 4  make -j 4
173  make install  make install
174    
175  export LD_LIBRARY_PATH=\$PKG_ROOT/mesa:\$LD_LIBRARY_PATH  export LD_LIBRARY_PATH=$PKG_ROOT/mesa:$LD_LIBRARY_PATH
176  cd ..  cd ..
177  pushd ../packages  pushd ../packages
178  ln -s mesa-7.2 mesa  ln -s mesa-7.2 mesa
# Line 230  OPENGL_gl_LIBRARY  ..../stand/packages/me Line 230  OPENGL_gl_LIBRARY  ..../stand/packages/me
230  #----------------  #----------------
231    
232  cmake .  cmake .
233    
234    chmod +w Utilities/vtktiff/tif_fax3sm.c
235    
236  make  make
237  make install  make install
238    
# Line 241  cd .. Line 244  cd ..
244    
245  Now copy the \esfinley source into an \filename{escript.d} directory in \filename{stand}.  Now copy the \esfinley source into an \filename{escript.d} directory in \filename{stand}.
246    
247    \subsection{Compiling escript}\label{sec:compileescriptlinux}
248    
249    Change to the directory containing your escript source (\filename{escript.d}), then:
250    
251  \begin{shellCode}  \begin{shellCode}
252  cd scons  cd scons
253  cp linux_options_example.py YourMachineName_options.py  cp linux_options_example.py YourMachineName_options.py
# Line 263  boost_libs     = ['boost_python-gcc43-mt'] Line 270  boost_libs     = ['boost_python-gcc43-mt']
270  usevtk      = 'yes'  usevtk      = 'yes'
271  #-------------------------------------------------------------------  #-------------------------------------------------------------------
272    
273  ln -s \$PKG_ROOT/vtk-5.2.1 \$PKG_ROOT/vtk  ln -s $PKG_ROOT/vtk-5.2.1 $PKG_ROOT/vtk
274    
275  Modify /scripts/finley_wrapper_template  Modify bin/escript
276    
277  STANDALONE=1  STANDALONE=1
278    
279  #Check to make sure the paths in the if [ \$STANDALONE == 1 ]  #Check to make sure the paths in the if [ $STANDALONE == 1 ]
280  # Section are correct  #block are correct
281    
282  #-----------------------------------------------------------------  #-----------------------------------------------------------------
283    
 scons bin/escript  
   
284  #start a new terminal  #start a new terminal
285  cd stand  cd stand
286  export PATH=`pwd`/packages/scons/bin:\$PATH  export PATH=`pwd`/packages/scons/bin:$PATH
287  cd escript.d  cd escript.d
288  eval `bin/escript -e`  eval `bin/escript -e`
289  scons  scons
# Line 290  Note this may take a while if you have a Line 295  Note this may take a while if you have a
295  scons all_tests  scons all_tests
296  \end{shellCode}  \end{shellCode}
297    
298  Once you are satisfied, the \filename{build} and \filename{\$PKG_ROOT/build} directories can be removed.  \subsection{Cleaning up}
299  Within the \filename{packages} directory, the \filename{scons}, \filename{scons-1.2.0}, \filename{cmake-2.6.3} and \filename{cmake} entries can also be removed.  Once you are satisfied, the \filename{escript.d/build} and \filename{\$PKG_ROOT/build} directories can be removed.
 If you are not redistributing this bundle you can remove \filename{\$PKG_ROOT/package_src}.  
300    
301  If you do not plan to edit or recompile the source you can remove it.  If you \emph{really} want to save space and do not wish to be able to edit or recompile escript, you can remove the following:
 The only entries which are required in \filename{escript.d} are:  
302  \begin{itemize}  \begin{itemize}
303   \item \filename{bin}   \item From the \filename{escript.d} directory:\begin{itemize}
304  \item \filename{esys}  \item Everything except: \filename{bin}, \filename{include}, \filename{lib}, \filename{esys},
305  \item \filename{include}  \filename{README_LICENSE}.
306  \item \filename{lib}  \item Hidden files, which can be removed using
 \item \filename{README_LICENSE}  
 \end{itemize}  
   
 Hidden files can be removed with  
307  \begin{shellCode}  \begin{shellCode}
308  find . -name .?* | xargs rm -rf  find . -name .?* | xargs rm -rf
309  \end{shellCode}  \end{shellCode}
310    in the \filename{escript.d} directory.
311    \end{itemize}
312    \item from the \filename{packages} directory:
313    \begin{itemize}
314    \item  \filename{scons}, \filename{scons-1.2.0}, \filename{cmake-2.6.3} and \filename{cmake}
315    \end{itemize}
316    \item \filename{package\_src}\footnote{Do not remove this if you intend to redistribute.}.
317    \end{itemize}
318    
319    Please note that removing all these files may make it more difficult for us to diagnose problems.
320    
321    
322    
323    
324  \section{Additional Functionality}\label{sec:linaddfunc}  \section{Additional Functionality}\label{sec:linaddfunc}
325  To perform visualisations you will need some additional tools.  To perform visualisations you will need some additional tools.

Legend:
Removed from v.2317  
changed lines
  Added in v.2455

  ViewVC Help
Powered by ViewVC 1.1.26