ubuntu-17.10 安装 FANN
因为想用C语言写神经网络,不用已有的库的话,又太难了,所以准备安装一个夸平台的FANN库,
源文件下载地址http://leenissen.dk/fann/wp/download/,我下载的是最新的2.20版本。
下载后,进入下载目录,解压(不会的就问度娘吧),进入解压目录。
执行命令:cmake .
再运行命令:sudo make install
OK,安装完成。
进入example目录,测试下:
执行命令:make runtest
Sometimes you want to install to a different location than the default /usr/local
.
You can do that by adding the CMAKE_INSTALL_PREFIX
to cmake, by for example installing to /usr
like this cmake -D CMAKE_INSTALL_PREFIX:PATH=/usr .