2
安装郝德杰在Ubuntu中,12.10,当我运行下面的命令错误在Ubuntu
gem install caldecott
我收到以下错误消息
Building native extensions. This could take a while...
ERROR: Error installing caldecott:
ERROR: Failed to build gem native extension.
/home/luisramalho/.rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb
creating Makefile
make
compiling generator.c
generator.c: In function ‘cState_aref’:
generator.c:632:5: warning: variable ‘state’ set but not used [-Wunused-but-set-variable]
generator.c: In function ‘isArrayOrObject’:
generator.c:867:5: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
linking shared-object json/ext/generator.so
make install
/usr/bin/install -c -m 0755 generator.so /home/luisramalho/.rvm/gems/ruby-2.0.0-p0/gems/json-1.6.8/ext/json/ext/json/ext
/usr/bin/install: cannot create regular file `/home/luisramalho/.rvm/gems/ruby-2.0.0-p0/gems/json-1.6.8/ext/json/ext/json/ext': No such file or directory
make: *** [install-so] Error 1
Gem files will remain installed in /home/luisramalho/.rvm/gems/ruby-2.0.0-p0/gems/json-1.6.8 for inspection.
Results logged to /home/luisramalho/.rvm/gems/ruby-2.0.0-p0/gems/json-1.6.8/ext/json/ext/generator/gem_make.out
任何人有任何想法可能是造成这个?
有什么有趣的生成日志文件(从'结果记录to'线在粘贴结束)?我想知道如果更早的'mkdir'或者什么东西失败了。检查哪些路径元素存在;从'/ home/luisramalho/.rvm/gems/ruby-2.0.0-p0/gems/json-1.6.8/ext/json/ext/json'开始,然后回到原来的位置,您可能会发现一些具体问题。也许现有的具有相同名称的文件阻止了其中一个目录的创建。 – 2013-04-26 13:07:40
谢谢@JimStewart,日志文件基本上显示了与我在我的问题中发布的控制台相同的内容。我觉得奇怪的是,路径是'json-1.6.8/ext/json/ext/json/ext',在我的机器上我只有'json-1.6.8/ext/json/ext'。而且,当我使用'ruby-1.9.3-p392 [x86_64]'时,我没有任何问题的地方安装caldecott时没有这个问题。 – 2013-04-26 13:18:12
我接近在caldecott工作的人。我不认为caldecott或caldecott-client曾经打算与Ruby 2.0,FWIW兼容。如果它确实有效,那倒好运,而不是因为任何专门针对Ruby 2.0兼容性的开发人员。 – 2013-04-26 14:22:27