编译和安装
操作步骤
- 使用PuTTY工具,以root用户登录服务器。
- 执行以下命令,解压安装包。
tar xvf cistem-1.0.0-beta-source-code.tar.gz
- 执行以下命令,进入解压后的目录。
cd cistem-1.0.0-beta
- 执行以下命令,更改源码。
- 执行以下命令,更改源码。
- 打开源码。
vi src/gui/AssetPickerComboPanel.h
- 按“i”进入编辑模式,修改如下内容。
bool FillComboBox(long wanted_refinement_package, bool always_select_latest = false) {AssetComboBox->FillWithRefinements(wanted_refinement_package, always_select_latest);}
更改为:
bool FillComboBox(long wanted_refinement_package, bool always_select_latest = false) {return AssetComboBox->FillWithRefinements(wanted_refinement_package, always_select_latest);}
第65行的代码:
bool FillComboBox(bool include_all_images_group) {AssetComboBox->FillWithImageGroups(include_all_images_group);}
更改为:
bool FillComboBox(bool include_all_images_group) {return AssetComboBox->FillWithImageGroups(include_all_images_group);}
第73行的代码:
bool FillComboBox(bool include_all_movies_group) {AssetComboBox->FillWithMovieGroups(include_all_movies_group);}
更改为:
bool FillComboBox(bool include_all_movies_group) {return AssetComboBox->FillWithMovieGroups(include_all_movies_group);}
- 按“Esc”键,输入:wq!,按“Enter”保存并退出编辑。
- 打开源码。
- 执行以下命令,更改源码。
- 执行以下命令,更改源码。
sed -i 's/\-03/\-00/' configure
- 执行以下命令,进行编译安装。
yum install libtiff xorg-x11-* ./configure --prefix=/path/to/CISTEM --with-fftw-dir=/path/to/FFTW make -j make install