Changeset 13354


Ignore:
Timestamp:
09/13/12 10:50:32 (13 years ago)
Author:
cborstad
Message:

CHG: debugged issues of permissions with freetype2 include files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/matplotlib/install-osx.sh

    r13246 r13354  
    44PYTHON=python${pythonversion}
    55
     6export C_INCLUDE_PATH="$C_INCLUDE_PATH:/usr/include/c++/4.2.1"
    67export GIT_SSL_NO_VERIFY=true
    7 export CC="gcc -fPIC"
    8 export CXX="g++ -fPIC"
    9 export F77="gfortran -fPIC"
    10 export FC="gfortran -fPIC"
    11 export FFLAGS=-ff2c
     8export CC="gcc -fPIC -arch x86_64 -I/usr/include/c++/4.2.1"
     9export CXX="g++ -fPIC -arch x86_64 -I/usr/include/c++/4.2.1"
     10export F77="gfortran -fPIC -arch x86_64 -I/usr/include/c++/4.2.1"
     11export FC="gfortran -fPIC -arch x86_64 -I/usr/include/c++/4.2.1"
     12export FFLAGS="-ff2c -arch x86_64 -I/usr/include/c++/4.2.1"
     13export ARCHFLAGS="-arch x86_64 -I/usr/include/c++/4.2.1"
     14
    1215
    1316
     
    1619mkdir deps
    1720cd src
    18 exit
    19 make -f make.osx PREFIX=$ISSM_DIR/externalpackages/matplotlib/deps PYVERSION=$pythonversion fetch deps mpl_install_std
    20 ${PYTHON} -c "import matplotlib; print 'Installed matplotlib', matplotlib.__version__, matplotlib.__file__"
     21
     22#only try this if the classic python setup.py build approach does not work. The approach in the next 3 lines can
     23#trigger issues of permissions with freetype. Sometimes it is better to independently install freetype2 (from the
     24#issm externalpackages) as sudo (or root), so that the python script can detect its existence automatically.
     25#sudo make -f make.osx PREFIX=$ISSM_DIR/externalpackages/matplotlib/deps PYVERSION=$pythonversion fetch deps mpl_install_std
     26#sudo make -f make.osx PREFIX=$ISSM_DIR/externalpackages/matplotlib/deps PYVERSION=$pythonversion mpl_install_std
     27#${PYTHON} -c "import matplotlib; print 'Installed matplotlib', matplotlib.__version__, matplotlib.__file__"
     28
     29
     30#to be tried:  first get freetype and  zlib and libpng installed in sudo mode
     31python setup.py build
     32python setup.py install
Note: See TracChangeset for help on using the changeset viewer.