首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装sciruby

无法安装sciruby
EN

Stack Overflow用户
提问于 2016-03-13 01:50:47
回答 1查看 155关注 0票数 0

我正在尝试在我的Ubuntu14.04机器上安装SciRuby,但是安装失败了。我还有一个开放的github问题出现问题,但在安装过程中没有成功。通过查看错误,我确信存在一些C/C++编译问题。任何帮助都将不胜感激

代码语言:javascript
复制
➜  ~ gem install sciruby-full
Building native extensions.  This could take a while...
ERROR:  Error installing sciruby-full:
    ERROR: Failed to build gem native extension.

    /home/gemser/.rvm/rubies/ruby-2.2.3/bin/ruby -r ./siteconf20160312-28957-1w6fjq3.rb extconf.rb
using C++ standard... c++11
g++ reports version... 4.8.4-2ubuntu1~14.04.1)
checking for main() in -lclapack... no
checking for main() in -llapack... no
checking for main() in -lcblas... no
checking for main() in -latlas... no
checking for atlas/cblas.h... no
checking for cblas.h... yes
checking for clapack.h... no
checking for clapack_dgetrf() in atlas/clapack.h... no
checking for clapack_dgetri() in atlas/clapack.h... no
checking for dgesvd_() in clapack.h... no
checking for cblas_dgemm() in cblas.h... no
creating nmatrix_config.h
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling nmatrix.cpp
In file included from nmatrix.cpp:297:0:
ruby_nmatrix.c: In function ‘VALUE nm_reshape_bang(VALUE, VALUE)’:
ruby_nmatrix.c:1069:11: warning: unused variable ‘elem’ [-Wunused-variable]
     void* elem = s->elements;
           ^
ruby_nmatrix.c: In function ‘VALUE nm_complex_conjugate(VALUE)’:
ruby_nmatrix.c:1047:59: warning: ‘copy’ is used uninitialized in this function [-Wuninitialized]
   return nm_complex_conjugate_bang(nm_init_copy(copy,self));
                                                           ^
ruby_nmatrix.c: In function ‘VALUE nm_init_new_version(int, VALUE*, VALUE)’:
ruby_nmatrix.c:1266:60: warning: ‘init’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     nm_unregister_values(reinterpret_cast(init), 1);
                                                            ^
compiling ruby_constants.cpp
compiling data/data.cpp
compiling util/io.cpp
compiling math.cpp
In file included from math.cpp:141:0:
math/rot.h: In function ‘void nm::math::rot(int, DType*, int, DType*, int, CSDType, CSDType) [with DType = nm::Complex; CSDType = float]’:
math/rot.h:123:40: error: ‘cblas_csrot’ was not declared in this scope
   cblas_csrot(N, X, incX, Y, incY, c, s);
                                        ^
math/rot.h: In function ‘void nm::math::rot(int, DType*, int, DType*, int, CSDType, CSDType) [with DType = nm::Complex; CSDType = double]’:
math/rot.h:128:40: error: ‘cblas_zdrot’ was not declared in this scope
   cblas_zdrot(N, X, incX, Y, incY, c, s);
                                        ^
In file included from math.cpp:142:0:
math/rotg.h: In function ‘void nm::math::rotg(DType*, DType*, DType*, DType*) [with DType = nm::Complex]’:
math/rotg.h:99:125: error: ‘cblas_crotg’ was not declared in this scope
   cblas_crotg(reinterpret_cast(a), reinterpret_cast(b), reinterpret_cast(c), reinterpret_cast(s));
                                                                                                                             ^
math/rotg.h: In function ‘void nm::math::rotg(DType*, DType*, DType*, DType*) [with DType = nm::Complex]’:
math/rotg.h:104:125: error: ‘cblas_zrotg’ was not declared in this scope
   cblas_zrotg(reinterpret_cast(a), reinterpret_cast(b), reinterpret_cast(c), reinterpret_cast(s));
                                                                                                                             ^
make: *** [math.o] Error 1

make failed, exit code 2

Gem files will remain installed in /home/abhimanyuaryan/.rvm/gems/ruby-2.2.3/gems/nmatrix-0.1.0 for inspection.
Results logged to /home/gemser/.rvm/gems/ruby-2.2.3/extensions/x86_64-linux/2.2.0/nmatrix-0.1.0/gem_make.out
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-03-13 02:14:57

看起来sciruby-full需要大量的本地库。运行这些步骤..

代码语言:javascript
复制
RUN apt-get update   
RUN apt-get install -y build-essential python3 python3-dev python3-pip ruby ruby-dev libzmq3 libzmq3-dev gnuplot-nox libgsl0-dev libtool autoconf automake zlib1g-dev libsqlite3-dev libmagick++-dev imagemagick libatlas-base-dev    
RUN apt-get clean &&      
ln -s /usr/bin/libtoolize /usr/bin/libtool
RUN pip3 install "ipython[notebook]"
RUN gem install --no-rdoc --no-ri sciruby-full && iruby register
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35961227

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档