今天看蚂蚁算法的源代码,在windows上搞了半天还是因为gsl库的原因没弄好,就放弃了,开始在linux下安装GSL(GNU ),运行程序。
1,下载gsl
http://ftp.club.cc.cmu.edu/pub/gnu/gsl/
2,安装
tar -zxvf gsl-1.9.tar.gz
cd gsl-1.9
sudo ./configure
sudo make
sudo make install
OK简单吧
然后运行C++程序时出现 libgsl.so.0: cannot open sharedobject file: No such file or directory 错误,解决方法是
$ sudo ldconfig/usr/local/lib。