บททความนี้เป็นการติดตั้ง SuiteSparse บน ubuntu
1. sudo apt-get install cmake
#Install cmake
2. sudo apt-get upgrade
#Upgrade system after install cmake
3. http://faculty.cse.tamu.edu/davis/SuiteSparse/
#Download suitesparse
4. sudo tar xvzf SuiteSparse-4.5.3.tar.gz
#Extract tarball
5. cd SuiteSparse
6. cd SuiteSparse_config
7. sudo cp SuiteSparse_config.mk SuiteSparse_config.mk.back
#Copy SuiteSparse_config.mk file to SuiteSparse_config.mk.back
8. sudo nano SuiteSparse_config.mk
#Edit SuiteSparse_config.mk file
9. INSTALL_LIB = /home/deepman/SuiteSparse/lib
#Edit line INSTALL_LIB
#You wrote path for copy file to /SuiteSparse/lib floder
10. INSTALL_INCLUDE = /home/sam/local/include
#Edit line INSTALL_INCLUDE
#You wrote path for copy file to /SuiteSparse/include floder
11. CHOLMOD_CONFIG = -DNPARTITION
#Edit line CHOLMOD_CONFIG
#You wrote "-DNPARTITION" behind CHOLMOD_CONFIG =
12. sudo make
13. cd UMFPACK
14. sudo make library
15. sudo make install
16. cd ../AMD
17. sudo make install
18. cd ../SuiteSparse_config
ไม่มีความคิดเห็น:
แสดงความคิดเห็น