安装好FLUKA以后,需要安装FLAIR
以下来自fluka的flair的安装指南,网址为
https://flair.web.cern.ch/flair/download.html
Installation Instructions
Requirements
Requirements
Flair is dependent on the following programs:
- Python interpreter version V3.6 or greater. Python usually comes pre-installed in most linux distributions, otherwise it can be downloaded from http://www.python.org
- tkinter toolkit, this is the default graphical toolkit for python and usually it is shipped together with the interpreter. In Fedora distributions (Version>3) it has to be installed separately. In this case install it with the command (as superuser):
$ dnf -y install tkinter
- Tcl/Tk version V8.5 or greater.
Optionally but strongly recommended
- flair-geoviewer a plugin to flair for interactive geometry editing, debugging and 3D visualization
- PIL (python imaging library) and the tk interface for image exporting from geoviewer. Typically on various distributions they appear with the name python-imaging and python-imaging-tk
- gnuplot version V4.0 or greater
- pydicom The python dicom library optionally if you want to convert DICOM files to FLUKA voxel
- numpy The python numeric library for dicom processing
Source code compile requirements
For compiling the source code you need the following development packages for your system
- C++ compiler preferably gnu g++ or clang++
- GNU make
- python3-devel
- tk-devel and all its dependencies
这里进行更细致的介绍
Requirements
Flair is dependent on the following programs:
- Python interpreter version V3.6 or greater. Python usually comes pre-installed in most linux distributions, otherwise it can be downloaded from http://www.python.org
安装python
安装命令为 sudo pacman –S python ,manjaro应该会自带
- tkinter toolkit, this is the default graphical toolkit for python and usually it is shipped together with the interpreter. In Fedora distributions (Version>3) it has to be installed separately. In this case install it with the command (as superuser):
$ dnf -y install tkinter
这是自带的,不用装,命令输进去也没用
- Tcl/Tk version V8.5 or greater.
sudo pacman –S tk
Optionally but strongly recommended,不强制但十分推荐
- flair-geoviewer a plugin to flair for interactive geometry editing, debugging and 3D visualization
这个后面装
- PIL (python imaging library) and the tk interface for image exporting from geoviewer. Typically on various distributions they appear with the name python-imaging and python-imaging-tk
sudo pacman –S python-imaging
- gnuplot version V4.0 or greater
sudo pacman –S gnuplot
在终端输入 gnuplot,打开后输入plot sin(x)
能够画出曲线说明安装成功
- pydicom The python dicom library optionally if you want to convert DICOM files to FLUKA voxel
sudo pacman –S python-pip 应该系统提前装好了
pip install pydicom
- numpy The python numeric library for dicom processing
pip install numpy
依赖python的安装包检查是否成功安装,
终端输入python打开界面,输入import xxx若不报错即安装成功
Source code compile requirements
For compiling the source code you need the following development packages for your system
- C++ compiler preferably gnu g++ or clang++
自带,不用装
- GNU make
sudo pacman –S make 这个其实应该是自带的,没有的话可以这么装
- python3-devel
- tk-devel and all its dependencies
这两个不用装,我也不知道为啥
新建一个文件夹,解压flair和flair-geoviewer的安装包,先对进入flair解压出来的文件夹
sudo make install
再进入flair-geoviewer解压出来的文件夹,进行
sudo make install
安装完成
注意复制文件一定要复制完整,如果操作太快可能复制粘贴没有完成