===
题目有点令人反胃,得写点内容才对,否则真就是对不起观众~
zenwalk默认没有g77,gcc又是4.12,费了老劲找个gcc3.4.6带g77版本,几经波折,终于搞定cblas,第一个编译完成的cblas_example1.c,看着输出的结果,真是高兴.赶明儿整理一下经过.
补档
1. download & install gcc-g773.4.6.
2. download gotoBlas. then run quickbuild.32bit(quickbuild.64bit in case). It will take some mins to build.
3. download cblas(http://www.netlib.org/blas/blast-forum/cblas.tgz). then:
cp Makefile.LINUX Makefile.in
use any editor to open Makefile.in and change:
BLLIB = ~/GotoBLAS/libgoto.a -lpthread CBDIR = $(HOME)/CBLAS
then turn to terminal and input:
make all
DONE!
4. if you want to compile files, you have to input such as:
gcc -O2 -DDAD_ -Isrc -o example1 cblas_example1.c lib/LINUX/cblas_LINUX.a ../GotoBLAS/libgoto.a -lpthread
or makefile by yourself.
ps. I didn't know anything at all before doing this. I learn a lot from my dear classmate John. Many thx!
补档: g77安装
1:
copy g77-gcc3.4.6/usr/bin g77&g77-gcc3.4.6 to ~/usr/bin
2;
copy the lib/libexec/man to the ~/usr/* respectively.
3;
run
doinst.sh
under terminal.
DONE
No comments :
Post a Comment