/[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 2324 by jfenwick, Thu Mar 19 04:35:30 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 267  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

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

  ViewVC Help
Powered by ViewVC 1.1.26