FLAIR在manjaro下的安装

安装好FLUKA以后,需要安装FLAIR

以下来自flukaflair的安装指南,网址为

https://flair.web.cern.ch/flair/download.html

Installation Instructions

Requirements

Requirements

Flair is dependent on the following programs:

  1. 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
  2. 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

  1. Tcl/Tk version V8.5 or greater.

Optionally but strongly recommended

  1. flair-geoviewer a plugin to flair for interactive geometry editing, debugging and 3D visualization
  2. 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
  3. gnuplot version V4.0 or greater
  4. pydicom The python dicom library optionally if you want to convert DICOM files to FLUKA voxel
  5. 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

  1. C++ compiler preferably gnu g++ or clang++
  2. GNU make
  3. python3-devel
  4. tk-devel and all its dependencies

这里进行更细致的介绍

Requirements

Flair is dependent on the following programs:

  1. 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应该会自带

  1. 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

这是自带的,不用装,命令输进去也没用

  1. Tcl/Tk version V8.5 or greater.

sudo pacman –S tk

Optionally but strongly recommended,不强制但十分推荐

  1. flair-geoviewer a plugin to flair for interactive geometry editing, debugging and 3D visualization

这个后面装

  1. 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

  1. gnuplot version V4.0 or greater

sudo pacman –S gnuplot

在终端输入 gnuplot,打开后输入plot sin(x)

能够画出曲线说明安装成功

  1. pydicom The python dicom library optionally if you want to convert DICOM files to FLUKA voxel

sudo pacman –S python-pip 应该系统提前装好了

pip install pydicom

  1. 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

  1. C++ compiler preferably gnu g++ or clang++

自带,不用装

  1. GNU make

sudo pacman –S make 这个其实应该是自带的,没有的话可以这么装

  1. python3-devel
  2. tk-devel and all its dependencies

这两个不用装,我也不知道为啥

新建一个文件夹,解压flair和flair-geoviewer的安装包,先对进入flair解压出来的文件夹

sudo make install

再进入flair-geoviewer解压出来的文件夹,进行

sudo make install

安装完成

注意复制文件一定要复制完整,如果操作太快可能复制粘贴没有完成

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值