歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Linux環境下CGAL配置

Linux環境下CGAL配置

日期:2017/2/28 14:45:34   编辑:Linux教程

1, 首先安裝Boost,下載最新的boost ,解壓到某個目錄

首先要編譯生成boost安裝工具bjam

進入boost目錄執行:

./bootstrap.sh

然後執行剛生成的

./bjam

編譯開始,大約半小時,全部編譯結束。

./bjam install 將當前目錄下編譯好的頭文件拷貝到相應位置:在/usr/local/include下有頭文件夾boost,在/usr/local/lib下有boost的庫

具體可參考:http://www.linuxidc.com/Linux/2013-07/87573.htm 這個配置不會出錯。

2, 安裝m4、GMP、mfpr、

m4可以直接從軟件中心進行下載,或者apt-get install也可以;gmp和mfpr可以直接下載源碼再進行編譯,gmp可以使用./configure ,make , make check, make install設置,mfpr在安裝時需要依賴於mfpr,推薦使用”./configure --with-gmp-include=/usr/local/include --with-gmp-lib=/usr/local/lib“ ”make 、make check、 make install” 進行建立,但本人在“make check”時卻出現了問題:"error while loading shared libraries : libgmp.so.3 : can't open shared object file",最終也沒能解決,但是也可以install。希望有知道的朋友可以支會聲。

3,安裝cgal 可參考http://www.cgal.org/Manual/latest/doc_html/installation_manual/contents.html

cmake-gui .

make

sudo make install

默認頭文件裝在 usr/local/include/, 庫文件裝在 usr/local/lib/.

Copyright © Linux教程網 All Rights Reserved