/[escript]/trunk/doc/install/srcmac.tex
ViewVC logotype

Diff of /trunk/doc/install/srcmac.tex

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

revision 2602 by jfenwick, Tue Aug 11 00:38:42 2009 UTC revision 2868 by artak, Mon Jan 25 04:44:45 2010 UTC
# Line 222  Hidden files can be removed with Line 222  Hidden files can be removed with
222  find . -name '.?*' | xargs rm -rf  find . -name '.?*' | xargs rm -rf
223  \end{shellCode}  \end{shellCode}
224    
 %Mac ports removed until Artak has a chance to update it  
   
 % \section{Installing from source for \macosx using Macports}  
 % \label{sec:srcmacports}  
 %  
 % As we mentioned in \Sec{sec:srcmac}, before you start installing from source you will need \macosx development tools installed on your Mac.  
 % If you do not have Macports already, please install Macports from \url{www.macports.org}. You can also install porticus (GUI for Macports).  
 %    
 % Once you have Macports working install boost using porticus or from the terminal  
 % \begin{shellCode}  
 % sudo port install boost@1.35.0_2+complete  
 % \end{shellCode}  
 % Sometimes this fails due to unknown reasons, but to overcome this problem you need to run  
 % \begin{shellCode}  
 % sudo port clean boost@1.35.0_2+complete  
 %  
 % sudo port install boost@1.35.0_2+complete  
 %  \end{shellCode}  
 %    
 % Download scons source scons-0.98.5.tar.gz from \url{www.scons.org}.  
 % \begin{shellCode}  
 % tar xfz scons-0.98.5.tar.gz  
 % cd scons-0.98.5  
 % python setup.py install  
 % \end{shellCode}  
 %  
 % Note: Do not try to install scons using porticus or \texttt{sudo port install scons}, because it automatically installs another python version and you are likely run into problems with different python versions.    
 %    
 % Download numarray-1.5.2.tar.gz from \\  
 % \url{http://www.stsci.edu/resources/software_hardware/numarray/numarray.html}.  
 % \begin{shellCode}  
 % tar xfz numarray-1.5.2.tar.gz  
 % cd numarray-1.5.2  
 % python setup.py install --gencode  2>&1 | tee tt.install.out  
 % \end{shellCode}  
 %  
 % You can run a test to check the numarray installation by  
 % \begin{shellCode}  
 % python  
 % import numarray.testall as testall  
 % testall.test()  
 % \end{shellCode}  
 %    
 % Install netcdf, gsl and fltk using Macports  
 % \begin{shellCode}  
 % sudo port install netcdf  
 % sudo port install gsl  
 % sudo port intall fltk  
 % \end{shellCode}  
 % Note: If this fails, download and install from sources.  
 %    
 % Downlaod gmsh-2.2.3-source.tar and install from sources.  
 % \begin{shellCode}  
 % ./configure --with-gsl-prefix=/opt/local/  --with-fltk    --prefix=/usr/local/  
 % \end{shellCode}  
 % Note: if you install using porticus or sudo port  it automaticall installs in \filename{/opt/local/}, but if you install from sources it installs in /usr/local. So, make sure these paths are right.  
 % \begin{shellCode}  
 % sudo make -j2  
 % sudo make install  
 % \end{shellCode}  
 %    
 % Download and install Mesa-7.0.3 (required for VTK) from sources  
 % \begin{shellCode}  
 % tar xjf MesaDemos-7.0.3.tar.bz2  
 % tar xjf MesaGLUT-7.0.3.tar.bz2  
 % tar xjf MesaLib-7.0.3.tar.bz2  
 % cd Mesa-7.0.3  
 %    
 % sudo make -j 2  
 % make install  
 % \end{shellCode}  
 %    
 % % Install vtk-5.0.4 from source. If you install from ports it won't configure to use shared libraries.  
 % % Once you untar it you will have (assume user is john) /Users/john/Downloads/VTK folder, then run the following:  
 % %    
 % % \begin{shellCode}  
 % % sudo mkdir /usr/local/VTKBuild/  
 % % cd /usr/local/VTKBuild/  
 % % sudo ccmake /Users/john/Downloads/VTK/  
 % % # It will create CMakeCache.txt. Make sure  you use the following configurations.  
 % %    
 % % #       Advanced options            ON  
 % % #       BUILD_EXAMPLES              ON  
 % % #       BUILD_SHARED_LIBS           ON  
 % % #       VTK_WRAP_PYTHON             ON  
 % % #       CMAKE_VERBOSE_MAKEFILE          TRUE  
 % % #       VTK_OPENGL_HAS_OSMESA           ON  
 % % #       VTK_USE_MANGLED_MESA            OFF  
 % % #       VTK_USE_OFFSCREEN           OFF  
 % %    
 % % sudo make -j2  
 % % sudo make install  
 % % \end{shellCode}  
 % %    
 % % Note: you need to set the following ENV variables in your \filename{/Users/john/.profile} for VTK to work:  
 % % \begin{shellCode}  
 % % export LD_LIBRARY_PATH = /usr/local/VTKBuild/bin: \  
 % %              /usr/local/VTKBuild/bin:${LD_LIBRARY_PATH}  
 % % export PYTHONPATH = /usr/local/VTKBuild/Wrapping/Python:\  
 % %             /usr/local/VTKBuild/bin:${PYTHONPATH}  
 % %        
 % % #     For testing you can run:  
 % % python  
 % % import vtk  
 % % \end{shellCode}  
 %    
 % All that's left to install is triangle and netpbm (required for ppmtompeg) using Macports:  
 % \begin{shellCode}  
 % sudo port install triangle  
 % sudo port install netpbm  
 % \end{shellCode}  
225    

Legend:
Removed from v.2602  
changed lines
  Added in v.2868

  ViewVC Help
Powered by ViewVC 1.1.26