作为chef-client的一个要求,我正在尝试在OpenSUSE 12.1上安装yajl-ruby。到目前为止,它返回了以下消息:
linux:~ # gem install yajl-ruby
Building native extensions. This could take a while...
ERROR: Error installing yajl-ruby:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
creating Makefile
make
gc
我经常收到这样的警告:
warning: no rule to process file '$(PROJECT_DIR)/Vendor/YAJL/NSBundle+YAJL.m' of type sourcecode.c.objc for architecture armv6
warning: no rule to process file '$(PROJECT_DIR)/Vendor/YAJL/NSObject+YAJL.m' of type sourcecode.c.objc for architecture armv6
warning: no rule
我的美食评论家宝石安装失败了,以下错误
Following gems were not installed:
foodcritic (3.0.3): Error installing foodcritic
ERROR: Failed to build gem native extension. current directory
/Users/dmanna/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/yajl-ruby-1.1.0/ext/yajl
/Users/dmanna/.rbenv/versions/2.5.1/bin/ruby -r
你好,我正在尝试在windows中安装ruby,我安装了所有的gem,但当我运行以下命令时,我无法安装yajl-ruby:gem install yajl-ruby。它给出了这个错误:Temporarily enhancing PATH for MSYS/MINGW... Building native extensions. This could take a while... ERROR: Error installing yajl-ruby: ERROR: Failed to build gem native extension.
current directory: C:/Ruby
我试过安装jekyll的几个版本,但奇怪的是它们都失败了。jekyll 1.5.1需要第一个gem。以下是它的错误:
$ gem install fast-stemmer
Building native extensions. This could take a while...
ERROR: Error installing fast-stemmer:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
creating Makefile
make
com
在rails 3.2.1中工作时,我正在编写一个应用程序,该应用程序执行大量JSON请求并使用Yajl解析返回的数据。我的难题是,每次请求JSON数据时,是否初始化Yajl解析器对象:
json = StringIO.new( some_jason_object)
#hmm I need something to parse this json data
parser = Yajl::Parser.new
hash = parser.parse(json)
或者在config/initializers/yajl_parser.rb中初始化解析器的全局常量PARSER = Yajl::Parse
我正在试着安装红宝石"yajl ruby“。我运行的是MacOS10.7.4和Ruby 1.8.7 (2011-12-28补丁级别357) universal-darwin11.0。当我运行时:
sudo gem install yajl-ruby
我得到以下输出:
Building native extensions. This could take a while...
ERROR: Error installing yajl-ruby:
ERROR: Failed to build gem native extension.
/System/Libr
YAJL抛出validator.nu弃用警告,偶尔会完全失败,原因是HTTPStream有问题。有没有稳定的ruby gem可以验证HTML5文档?
例如:
req1.9.2p320 :001 > require 'validator.nu'
DEPRECATION WARNING: Yajl::HttpStream is going to be removed in 2.0
DEPRECATION WARNING: Yajl's Gzip support is going to be removed in 2.0
DEPRECATION WARNING: Yaj
当我跑步时:
sudo gem install yajl-ruby
我看到错误:
Building native extensions. This could take a while...
ERROR: Error installing yajl-ruby:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h
Gem files will re
我正在尝试让MGTwitterEngine为iPhone软件开发工具包工作。但是得到以下错误
Undefined symbols for architecture i386:
"_yajl_alloc", referenced from:
-[MGTwitterYAJLParser initWithJSON:delegate:connectionIdentifier:requestType:responseType:URL:deliveryOptions:] in MGTwitterYAJLParser.o
"_yajl_parse", re
我正在尝试在我的Mac上安装yajl-py ()。但是,它会显示以下错误:
Yajl shared object cannot be found. Please install Yajl and confirm it is on your shared lib path.
我通过ports安装了yajl,所以我知道它在那里,问题是如何将/opt/local/lib中的共享库放入库路径中。
做一点阅读,似乎不是一个使用LD_LIBRARY_PATH的坏主意,但我没有看到任何替代方案。有没有其他方法可以做到这一点?
如何使mkmf在Solaris 10上使用gcc而不是/opt/SUNWspro/bin/cc?
我试图安装厨师使用宝石安装厨师。它失败的原因是:
Building native extensions. This could take a while...
ERROR: Error installing chef:
ERROR: Failed to build gem native extension.
/opt/csw/bin/ruby18 extconf.rb
creating Makefile
make
/opt/SUNWspro/bin/cc -I. -I/op
基于一些,我选择了作为解析器的。我用一个任意的自定义类(一个NSNumber和两个NSString属性)测试它。如果我创建了一个具有与类属性匹配的键值对的NSDictionary,则可以用[dictionary yajl_JSON]对字典进行编码。当我尝试用[custom yajl_JSON]直接编码自定义类的实例时,我得到了以下编译器错误:
Terminating app due to uncaught exception 'YAJLParsingUnsupportedException', reason: 'Object of type (Custom) must
我已经用Ruby1.8.7在一个新的Ubuntu映像(通过Vagrant运行)上安装了sys可处理的创业板。
vagrant@precise64:~$ gem list
*** LOCAL GEMS ***
bunny (0.7.9)
chef (10.14.2)
...many, many gems more
sys-proctable (0.9.3 universal-linux)
systemu (2.5.2)
treetop (1.4.10)
uuidtools (2.1.3)
yajl-ruby (1.1.0)
现在我想将它加载到irb中。
vagrant@precise64:~