test


installation

Table of Contents

1 installation guide

saturne_installation.html

  1. Install the following packages before running install_saturne.py

  • C, C++, and Fortran compilers

    • on Ubuntu OS, type in:

      • sudo apt install gcc
      • sudo apt install gfortran
  • Python
    • python 3.6.7 is default installed on Ubuntu
  • MPI (optional)
  • Create a directory named saturne_build run install_saturne.py
    mkdir /home/kaiming/Documents/Code-saturne/saturne_build
    cd /home/kaiming/Documents/Code-saturne/code_saturne_5_build
    /home/kaiming/Documents/Code-saturne/code_saturne_5/install_saturne.py
  • setup environment path– lauch the package code_saturne from a terminal

two methods:

  • defining a permanent alias
  • add the installation path of code_saturne, i.e.
/home/kaiming/Code_Saturne/5.0.9/code_saturne-5.0.9/arch/Linux_x86_64/bin

method 1: defining a permanent alias

a. define a alias named code_saturne in a file, .bash_aliases

vi .bash_aliases

b. Then define a alias as below

cspath=/home/kaiming/Code_Saturne/5.0.9/code_saturne-5.0.9/arch/Linux_x86_64/bin
alias code_saturne="$cspath/code_saturne"

c. To load .bash_aliases , add the following commands in the ~/.bashrc

if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

d. source ~/.bashrc

>>  source  ~/.bashrc

https://askubuntu.com/questions/1414/how-to-create-a-permanent-alias

method 2: add path environment variable http://www.linfo.org/path_env_var.html

  1. now, you can lauch code_saturne in any terminal >> codesaturne

to launch the GUI of code saturne

>> code_saturne gui

The documentation should then be available through the commands:

>> code_saturne info -g refcard                         #reference card

>> code_saturne info -g user
  1. How to run a python script on Ubuntu

  2. PyQt installation
    1. log

      kaiming@127:~$ pip3 install pyqt5
      Collecting pyqt5
      Downloading https://files.pythonhosted.org/packages/d4/bf/d884da8e2f7096d201c891d515eb6813a8e85df5eb6f5e12e867bf1d831c/PyQt5-5.11.3-5.11.2-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl (117.8MB)
      100% |████████████████████████████████| 117.8MB 22kB/s
      Collecting PyQt5sip<4.20,>=4.19.11 (from pyqt5)
      Exception:
      Traceback (most recent call last):
      File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 377, in _makerequest
      httplibresponse = conn.getresponse(buffering=True)

      TypeError: getresponse() got an unexpected keyword argument 'buffering'

      During handling of the above exception, another exception occurred:

      solution: try it again

      which returns:
      Installing collected packages: PyQt5-sip, pyqt5
      Successfully installed PyQt5-sip-4.19.13 pyqt5-5.11.3

Author: kaiming

Created: 2019-05-10 五 10:23

Emacs 25.2.2 (Org mode 8.2.10)

Validate

最新文章

  1. jQuery 上传头像插件Jcrop的实例
  2. Servlet中的请求转发和重定向
  3. OC 将NSString写入本地文件
  4. json 包含字段及函数的写法
  5. 【转】JSON简介以及用法代码汇总
  6. flexPaper +swftools实现文档在线阅读
  7. Ext JS4百强应用: 用grid.plugin.CellEditing做高级查询 --第10强
  8. Python高手之路【九】python基础之迭代器与生成器
  9. php 关于经纬度距离计算方法 成功版
  10. Maven-05:插件目标
  11. OC语言编写:为视图添加丝滑的水波纹
  12. 使用SimHash进行海量文本去重[转载]
  13. WINDOWS内核版本
  14. RabbitMQ c#版实现(转)
  15. WEP自动破解工具wesside-ng
  16. 学习计划 mysql 主从复制
  17. Verilog基础知识0(`define、parameter、localparam三者的区别及举例)
  18. C++编译与链接(2)-浅谈内部链接与外部链接
  19. python测试函数的使用时间
  20. Educational Codeforces Round 10 D. Nested Segments 【树状数组区间更新 + 离散化 + stl】

热门文章

  1. windows下mongodb设置用户名密码&amp;用python连接
  2. 【FFmpeg】FFmpeg常用基本命令(转载)
  3. E20170603-hm
  4. unable to unroll loop 报错
  5. Ubuntu服务器WDCP可视化界面搭建注意
  6. CSS布局大全
  7. [Qt Creator 快速入门] 第3章 窗口部件
  8. Android 性能优化(17)UI优化:Keeping Your App Responsive 拒绝ANR
  9. error: no such device : 76de62ec-ac60-4c4d-bb Entering rescue mode .. grub resuce&gt;(系统硬盘驱动器MBR已损坏)问题解决办法(图文详解)
  10. protobuf的lua版