User Tools

Site Tools


数値計算ライブラリ:triqs:インストール

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision Both sides next revision
数値計算ライブラリ:triqs:インストール [2020/07/17 21:21]
koudai 作成
数値計算ライブラリ:triqs:インストール [2020/07/17 21:32]
koudai [準備]
Line 18: Line 18:
 </code> </code>
  
 +====== TRIQSのインストール ======
  
 +TRIQSのソースコードをダウンロードしてきます
 +<code>
 +$ git clone https://github.com/TRIQS/triqs triqs.src
 +</code>
  
 +作業ディレクトリを作成して、その中に入ります
 +<code>
 +$ mkdir triqs.build
 +$ cd triqs.build
 +</code>
 +
 +インストールの設定をします
 +<code>
 +$ cmake ../triqs.src -DCMAKE_INSTALL_PREFIX="~/triqs/"
 +</code>
 +  * PREFIXにインストールされるので、適宜変更してください
 +
 +インストールを完了させます
 +<code>
 +$ make
 +$ make test      # エラーが出ないか確認
 +$ make install
 +</code>
 +
 +.bashrcに次の一文を付け加えます
 +<file>
 +source ~/triqs/share/triqsvars.sh
 +</file>
 +
 +.bashrcを読み込むか再起動します
 +<code>
 +$ source ~/.bashrc
 +</code>
数値計算ライブラリ/triqs/インストール.txt · Last modified: 2021/06/27 22:04 (external edit)