本文介绍了slam软件包安装失败,并显示make错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装slam软件包,但它似乎在我的系统上失败.我正在运行ubuntu 12.04.我以为这是一个缺少的库或什么东西,所以我安装了一些与liblas匹配的库,但没有骰子.

I'm trying to install the slam package, but it seems to fail on my system. I'm running ubuntu 12.04. I thought it was a missing library or something so I installed a few that match liblas, but no dice.

* installing *source* package ‘slam’ ...
** package ‘slam’ successfully unpacked and MD5 sums checked
** libs
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -O3 -pipe  -g  -c grouped.c -o grouped.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -O3 -pipe  -g  -c sparse.c -o sparse.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -O3 -pipe  -g  -c util.c -o util.o
gcc -std=gnu99 -shared -o slam.so grouped.o sparse.o util.o -lblas -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
/usr/bin/ld: cannot find -lblas
collect2: ld returned 1 exit status
make: *** [slam.so] Error 1
ERROR: compilation failed for package ‘slam’
* removing ‘/home/brandon/.R/i686-pc-linux-gnu-library/2.15/slam’

我尝试过:

sudo apt-get install liblas1 liblas-bin liblas-dev

推荐答案

您的系统可能正在进行某些工作.尝试遵循/usr/lib/libblas.*在安装了OpenBLAS软件包的Ubuntu 12.04服务器上产生的结果:

You may have something fishy going on with your system. Try to follow /usr/lib/libblas.* which on my Ubuntu 12.04 server, with the OpenBLAS package installed, yields:

edd@max:~$ ls -log /usr/lib/libblas.* /etc/alternatives/libblas*
lrwxrwxrwx 1 36 Jun 15 09:41 /etc/alternatives/libblas.a -> /usr/lib/openblas-base/libopenblas.a
lrwxrwxrwx 1 37 Jun 15 09:41 /etc/alternatives/libblas.so -> /usr/lib/openblas-base/libopenblas.so
lrwxrwxrwx 1 39 Jun 15 09:41 /etc/alternatives/libblas.so.3gf -> /usr/lib/openblas-base/libopenblas.so.0
lrwxrwxrwx 1 27 May  9  2012 /usr/lib/libblas.a -> /etc/alternatives/libblas.a
lrwxrwxrwx 1 28 May  9  2012 /usr/lib/libblas.so -> /etc/alternatives/libblas.so
lrwxrwxrwx 1 32 May  9  2012 /usr/lib/libblas.so.3gf -> /etc/alternatives/libblas.so.3gf
edd@max:~$

您应该有类似的东西,尽管已安装了基本刀片.

You should have something similar, albeit with the base blas you have installed.

这篇关于slam软件包安装失败,并显示make错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 02:01