首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在Snow Leo上安装ruby-ldap

无法在Snow Leo上安装ruby-ldap
EN

Stack Overflow用户
提问于 2010-11-04 02:39:28
回答 1查看 828关注 0票数 2

我尝试在Snow Leo上安装ruby-ldap,但失败了:

代码语言:javascript
复制
~/WorkingFolder/temp/test$ sudo gem install ruby-ldap
Password:
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-ldap:
    ERROR: Failed to build gem native extension.

/opt/local/bin/ruby extconf.rb
--with-openldap2
checking for ldap.h... no
checking for lber.h... no
checking for ldap_ssl.h... no
*** 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
    --without-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=/opt/local/bin/ruby
    --with-netscape
    --without-netscape
    --without-netscape
    --with-openldap1
    --without-openldap1
    --without-openldap1
    --with-openldap2
    --without-openldap2
    --without-openldap2
    --with-wldap32
    --without-wldap32
    --without-wldap32
    --with-ldap-dir
    --without-ldap-dir
    --with-ldap-include
    --without-ldap-include=${ldap-dir}/include
    --with-ldap-lib
    --without-ldap-lib=${ldap-dir}/lib
    --with-ldap-dir
    --without-ldap-dir
    --without-ldap-dir
    --with-ldap
    --without-ldap
    --without-ldap
    --with-libresolv
    --without-libresolv
    --without-libresolv
    --with-libcrypto
    --without-libcrypto
    --without-libcrypto
    --with-libssl
    --without-libssl
    --without-libssl
    --with-libpthread
    --without-libpthread
    --without-libpthread
    --with-libnsl
    --without-libnsl
    --without-libnsl
    --with-liblber
    --without-liblber
    --without-liblber
    --with-libldap_r
    --without-libldap_r
    --without-libldap_r
    --with-libldap
    --without-libldap
    --without-libldap
can't find ldap.h and lber.h
use the option '--with-ldap-dir'!


Gem files will remain installed in /opt/local/lib/ruby/gems/1.8/gems/ruby-ldap-0.9.11 for inspection.
Results logged to /opt/local/lib/ruby/gems/1.8/gems/ruby-ldap-0.9.11/gem_make.out

谁知道怎么解决这个问题,请帮帮忙!!

谢谢

EN

回答 1

Stack Overflow用户

发布于 2011-03-30 23:33:36

LDAP开发头在您的系统上不可用,ruby-ldap需要这些头。安装苹果的开发工具(XCode)也应该安装这些开发头文件。您可以安装开发人员工具并重新尝试安装ruby-ldap吗?

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/4090438

复制
相关文章

相似问题

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