一、下载
首先要用sudo权限下载git编辑器。
git clone --recursive https://github.com/soedinglab/CCMpred.git
这个过程有报错,可以参考我的文章:
https://www.jianshu.com/p/dafa92597846
二、编译
1.cmake
cmake .
报错:
我输入命令:
sudo apt install nvidia-cuda-toolkit
再执行
许多警告,但没有报错,我就先进行下一步make。
2.make
make
报错:
三、解决报错
因为make这一步我一直不会解决,我尝试把cmake这一步警告的信息都解决。
1.LibUUID
Could NOT find LibUUID (missing: UUID_LIBRARY UUID_INCLUDE_DIR)
下载libuuid。
官网地址:https://sourceforge.net/projects/libuuid/files/
命令如下:
wget http://nchc.dl.sourceforge.net/project/libuuid/libuuid-1.0.3.tar.gz
tar xzvf libuuid-1.0.3.tar.gz
cd libuuid-1.0.3
pwd
./configure --prefix=/home/ylx/libuuid-1.0.3
make
make install
sudo apt-get install uuid-dev
2.Curses
-- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
下载curses库。
官网地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/#curses
命令如下:
sudo apt-get install libncurses5-dev
3.LibJansson
-- Could NOT find LibJansson (missing: JANSSON_LIBRARY JANSSON_INCLUDE_DIR)
参考文章:https://blog.csdn.net/u014029448/article/details/90118535
错误方法:
git clone https://ghproxy.com/https://github.com/akheron/jansson
sudo apt-get install autoconf
##libtool安装
wget https://ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.gz
tar zxvf libtool-2.4.6.tar.gz
cd libtool-2.4.6
pwd
./configure --prefix=/home/ylx/libtool-2.4.6
make
make install
##
cd jansson
autoreconf -i
报错如下:
解决方法:
sudo apt install gcc make m4 autoconf automake libtool
再继续先前工作:
##在生产的configure文件中做如下修改:
cross_compiling=yes #(修改)
CC=arm-hisiv300-linux-gcc #(增加)
./configure --prefix=/home/ylx/jansson
又报错:
这个错误我不会解决,于是换了一个方法。
下载jansson https://github.com/akheron/jansson/releases
wget https://github.com/akheron/jansson/releases/download/v2.14/jansson-2.14.tar.gz
tar -zxvf jansson-2.14.tar.gz
cd jansson-2.14
pwd
./configure --prefix=/home/ylx/jansson-2.14
make
make install
参考文章:https://blog.csdn.net/whatday/article/details/95358427
sudo apt-get install libjansson-dev
4.PkgConfig
下载地址:https://pkg-config.freedesktop.org/releases/
wget https://pkg-config.freedesktop.org/releases/pkg-config-0.29.2.tar.gz
tar -zxvf pkg-config-0.29.2.tar.gz
cd pkg-config-0.29.2
pwd
./configure --prefix=/home/ylx/pkg-config-0.29.2
报错:
输入:
./configure --prefix=/home/ylx/pkg-config-0.29.2 --with-internal-glib
make
make install
./pkg-config --version ##检查是否安装成功
cd
vim .bashrc
##最末端添加下面一段
export PATH=/home/ylx/pkg-config-0.29.2:$PATH
##激活环境变量
source .bashrc
pkg-config --version ##检查环境变量是否添加成功
参考文章:https://blog.csdn.net/sinat_23084397/article/details/84321046
5.MsgPack
-- MsgPack was not found. Make sure MSGPACK_LIBRARY and MSGPACK_INCLUDE_DIR are set.
sudo apt update
sudo apt install libmsgpack-dev