2

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

我正在对我的 ruby​​ 项目进行捆绑安装,它将开始下载并安装所有必要的 ruby​​gem。

gem 'eventmachine' gem 'serialport' gem 'memcached' gem 'json' gem '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 失败。

怎么解决?谢谢。

4

0 回答 0