Skip to content
Snippets Groups Projects
Commit 0bec11b1 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing install SUITESPARSE on osx

parent ffd07f29
No related branches found
No related tags found
No related merge requests found
......@@ -355,6 +355,8 @@ make install
if [ ! "$(ls -A $1/PETSC)" ]; then
rm -rf $1/PETSC
else
#Mark the installation
echo 1 > $1/PETSC/version
exit 0
fi
......@@ -23,18 +23,18 @@ cd SuiteSparse
# configuration
if [ x"$platform" = x"osx" ]; then
# installation for OSX
#if [ x"$platform" = x"osx" ]; then
# # installation for OSX
# sed -i "" -e "s| LAPACK = -llapack|LAPACK = |" SuiteSparse_config/SuiteSparse_config_Mac.mk
# sed -i "" -e "s| BLAS = -lopenblas|BLAS = -L"$1"/OPENBLAS/lib -lopenblas|" SuiteSparse_config/SuiteSparse_config_Mac.mk
### Overwrite SuiteSparse_config.mk
rm SuiteSparse_config/SuiteSparse_config.mk
mv SuiteSparse_config/SuiteSparse_config_Mac.mk SuiteSparse_config/SuiteSparse_config.mk
# rm SuiteSparse_config/SuiteSparse_config.mk
# mv SuiteSparse_config/SuiteSparse_config_Mac.mk SuiteSparse_config/SuiteSparse_config.mk
else
#else
# Installation for linux
......@@ -50,7 +50,7 @@ else
# sed -i "/\sBLAS\s=\s\-lopenblas/c\BLAS = -L$1/OPENBLAS/lib -lopenblas -lpthread" SuiteSparse_config/SuiteSparse_config.mk
# fi
fi
#fi
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$1/OPENBLAS/lib"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment