Gem ubuntu 安装 ruby-ldap 报错

josh_sulin · 2014年12月29日 · 2379 次阅读

运行 gem install ruby-ldap -v '0.9.13'

Building native extensions. This could take a while... ERROR: Error installing ruby-ldap: ERROR: Failed to build gem native extension.

/home/sulin/.rvm/rubies/ruby-1.9.3-p551/bin/ruby -r ./siteconf20141229-12074-2n0cs9.rb extconf.rb --with-openldap2 checking for ldap.h... yes checking for lber.h... yes checking for ldap_ssl.h... no checking for openssl/ssl.h... yes checking for openssl/crypto.h... yes checking for main() in -lcrypto... yes checking for main() in -lssl... yes checking for main() in -lnsl... yes checking for main() in -lpthread... yes checking for main() in -lresolv... yes checking for main() in -llber... yes checking for main() in -lldap_r... yes checking for main() in -lldap... yes checking for ldap_init() in ldap.h... yes checking for ldap_set_option()... yes checking for ldap_get_option()... yes checking for ldap_start_tls_s()... yes checking for ldap_memfree()... yes checking for ldap_perror()... yes checking for ldap_sort_entries()... yes checking for ldapssl_init()... no checking for ldap_sslinit()... no checking for ldap_sasl_bind_s()... yes checking for ldap_compare_s()... yes checking for ldap_add_ext_s()... yes checking for ldap_compare_ext_s()... yes checking for ldap_delete_ext_s()... yes checking for ldap_modify_ext_s()... yes checking for ldap_search_ext_s()... yes checking for ldap_unbind_ext_s()... yes checking for ldap_sasl_interactive_bind_s()... yes creating Makefile

上述问题仅需安装三个包即可:

sudo apt-get install libsasl2-dev libldap2-dev ruby-ldap

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请 注册新账号