因为项目需要,安装一个非常古老的软件 silix,想要安装的版本1.2.9已经是14年的产物了。
网址:http://lbbe.univ-lyon1.fr/-SiLiX-?lang=en
1.依赖程序:
1.1. boost (https://www.boost.org/users/download/)
源码安装(失败):
cd /home/nieshuai/bin
wget -c https://dl.bintray.com/boostorg/release/1.75.0/source/boost_1_75_0.tar.gz
tar zxvf boost_1_75_0.tar.gz
cd boost_1_75_0
pwd=`pwd`
./bootstrap.sh --prefix=${pwd}
./b2 install
export PATH=$PATH:/home/nieshuai/bin/boost_1_75_0
sudo ln -s /home/nieshuai/bin/boost_1_75_0/include/boost/ /usr/local/include
#ld -lboost_program_options --verbose
鼓捣了几个小时,就是搞不定,直接root,好在提前查了不会影响其它程序,真香:
sudo yum install boost-devel
1.2. cppunit (http://sourceforge.net/apps/mediawiki/cppunit/)
用了两种办法,首先是懒虫策略:
conda install cppunit
不出意外,各种路径添加,变量设置,没用
还是源码安装靠谱:
cd /home/nieshuai/bin
wget -c https://sourceforge.net/projects/cppunit/files/cppunit/1.12.1/cppunit-1.12.1.tar.gz
tar -xzvf cppunit-1.12.1.tar.gz
cd cppunit-1.12.1
pwd=`pwd`
./configure --prefix=$pwd
make
sudo make install
export LD_LIBRARY_PATH=/home/nieshuai/bin/cppunit-1.12.1/lib:$LD_LIBRARY_PATH
export PATH=$PATH:/home/nieshuai/bin/cppunit-1.12.1
一个钟头搞定之后发现,还是用到了 root权限,为啥不直接root安装呢?(simile)
sudo yum install cppunit-devel
2.silix安装:
cd /home/nieshuai/bin
wget -c ftp://pbil.univ-lyon1.fr/pub/logiciel/silix/silix-1.2.9.tar.gz
tar -zxvf silix-1.2.9.tar.gz
cd silix-1.2.9
pwd=`pwd`
./configure --prefix=$pwd
make
make check
make install
顺顺利利,特此铭记!
网友评论