在Angstrom上Memcached ruby​​ gem error lib sasl

时间:2013-11-05 22:25:56

标签: ruby rubygems memcached angstrom-linux

我正在尝试在linux angstrom上的项目中使用memcached gem。

我正在我的ruby项目上进行捆绑安装,它将开始下载并安装所有必需的rubygem。

宝石'eventmachine' 宝石'serialport' 宝石'memcached' 宝石'json' 宝石'activerecord' gem'sqlite3'

但是当memcached加载时我看到了这个错误:

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /usr/local/bin/ruby extconf.rb
checking for sasl/sasl.h... no
Please install SASL to continue. The package is called libsasl2-dev on Ubuntu and cyrus-sasl on Gentoo.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
        --with-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/local/bin/ruby


Gem files will remain installed in /usr/local/lib/ruby/gems/2.0.0/gems/memcached-1.7.0 for inspection.
Results logged to /usr/local/lib/ruby/gems/2.0.0/gems/memcached-1.7.0/ext/gem_make.out

在ubuntu我解决了使用:apt-get install libsasl2但是在angstrom上我没有opkg上的libsasl2,实际上opkg install libsasl2失败了。

如何解决?感谢。

0 个答案:

没有答案