我已经通过Brew在Mac上安装了libxml2和libxslt,但是
gem安装libxslt ruby--with-xml2-dir=/usr/local/opt/libxml2--with-xml2-lib=/usr/local/opt/libxml2/lib--with-xml2-include=/usr/local/opt/libxslt/include--with-xslt include=/usr/local/libxml2/libxml2/include--。1.
或者
gem安装libxslt-ruby----with-xml2-dir=/usr/loce/Cellar/libxml2/2.9.1--with-xml2-lib=/usr/loce/Cellar/libxml2/2.9.1/lib--with-xml2-包括=/usr/loce/Cellar/libxml2/2.9.1/包括/libxml2--version=1.1.1
投掷
Building native extensions. This could take a while...
/Users/gawlim/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/rubygems/ext/builder.rb:48: warning: Insecure world writable dir /usr/local/Cellar in PATH, mode 040777
ERROR: Error installing libxslt-ruby:
ERROR: Failed to build gem native extension.
/Users/gawlim/.rbenv/versions/1.9.3-p484/bin/ruby extconf.rb --with-xml2-dir=/usr/local/opt/libxml2 --with-xml2-lib=/usr/local/opt/libxml2/lib --with-xml2-include=/usr/local/opt/libxml2/include --with-xslt-include=/usr/local/opt/libxslt/include -v 1.0.8
checking for ruby/io.h... yes
checking for inflate() in -lz... yes
checking for iconv_open() in -liconv... yes
checking for xmlXPtrNewRange() in -lxml2... yes
checking for libxml/xmlversion.h... no
checking for libxml/xmlversion.h in /opt/include/libxml2,/usr/local/include/libxml2,/usr/include/libxml2... 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=/Users/gawlim/.rbenv/versions/1.9.3-p484/bin/ruby
--with-iconv-dir
--without-iconv-dir
--with-iconv-include
--without-iconv-include=${iconv-dir}/include
--with-iconv-lib
--without-iconv-lib=${iconv-dir}/lib
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
--with-xml2-dir
--with-xml2-include=${xml2-dir}/include
--with-xml2-lib=${xml2-dir}/lib
--with-xslt-dir
--without-xslt-dir
--with-xslt-include=${xslt-dir}/include
--with-xslt-lib
--without-xslt-lib=${xslt-dir}/lib
--with-exslt-dir
--without-exslt-dir
--with-exslt-include
--without-exslt-include=${exslt-dir}/include
--with-exslt-lib
--without-exslt-lib=${exslt-dir}/lib
--with-zlib
--without-zlib
--with-iconvlib
--without-iconvlib
--with-xml2lib
--without-xml2lib
extconf failure: %s
need libxml2.
Install the library or try one of the following options to extconf.rb:
--with-xml2-dir=/path/to/libxml2
--with-xml2-lib=/path/to/libxml2/lib
--with-xml2-include=/path/to/libxml2/include
虽然是一个老问题,但我想我会分享我找到的解决方案。在安装libxslt-ruby gem之前,运行以下操作:
gem update --system
以下是该命令的文档:
http://guides.rubygems.org/command-reference/#gem-更新
因此,我试图为javafx运行一个简单的helloworld应用程序,但无法找到它的包。好的,所以一定是某种路径问题,对吧? 我已经从这里下载了共同捆绑的版本: http://www.oracle.com/technetwork/java/javafx/downloads/index.html 您会期望一个共同绑定的软件包会像安装SE软件包一样安装。我在网上搜索过,人们用windows路径给出了一
设备的数据不再存在于/users/[用户名]/library/developer/coresimulator/devices/d651bcc7-29fd-4b91-82f6-e255e856ea2f/data中。 我卸载了xcode 9并安装了xcode 9.1,但当运行项目时,显示了以下消息: 我找到了“Developer”文件夹,但找不到“CoreSimulator”文件夹。
我试图通过克隆repo在mac os 10.13上安装Multicorn。在我的机器上,但得到错误,我还安装了mac os 10.13的xcode。 我得到的错误: Python的版本是2.7 clang-wall-Wwiness-原型-Wpoint er-arith-Wdisonation-post-语句-Wfalse=vla-Wendif-标签-Wwiness-forment-属性-Wform
问题内容: 我在这里看到了这个问题:用MacOSX加载rgl软件包时出错,但是没有提到安装错误,这是我的情况。我无法使用以下命令安装软件包: 显示以下错误: 配置:错误:找不到X11,但必需,配置中止。错误:软件包“ rgl”的配置失败*删除了“ /Library/Frameworks/R.framework/Versions/3.2/Resources/library/rgl” 我检查了这个地址
我刚从一个朋友那里用dmg文件安装了jre 1.8。我需要从中运行一个项目。 智能ide找不到它,我也找不到。 我检查可能的结果,user/username/java/javavirtual机/jdk/...但是我在任何地方都找不到这个文件夹。我看了以前安装的java版本被隐藏,但我仍然无法找到它。 如果可能的话,请帮助我。
问题内容: 这是我的错误信息: 所以2.7找不到pygame。这是在新安装的python上,而且我可以进入其他模块(pyo,wx,numpy)。我已经重新安装了pygame并在相应的库文件夹中查看,但在任何地方都找不到pygame模块。重新安装不能解决此问题。有什么建议吗? 编辑:在回答问题时,我怎么安装pygame的,我从这里位于的.dmg安装http://www.pygame.org/down