Ruby 在Ubuntu上安装caldecott时出错

Ruby 在Ubuntu上安装caldecott时出错,ruby,ubuntu,rvm,Ruby,Ubuntu,Rvm,在Ubuntu 12.10中,当我运行以下命令时 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/b

在Ubuntu 12.10中,当我运行以下命令时

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

任何人都知道这可能是什么原因吗?

为了让下一个人更容易理解,这里是用户评论中的soln():


构建日志文件中是否有任何有趣的内容(从粘贴末尾的
结果记录到
行)?我想知道是早期的
mkdir
还是什么失败了。检查存在哪些路径元素;从
/home/luisramalho/.rvm/gems/ruby-2.0.0-p0/gems/json-1.6.8/ext/json/ext/json
开始,然后返回,您可能会发现一些特定的问题。可能是一个同名的现有文件阻止了其中一个目录的创建。谢谢@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时,我没有遇到这个问题。我与caldecott的工作人员关系密切。我不认为caldecott或caldecott客户端应该与Ruby 2.0、FWIW兼容。如果它真的成功了,那将是幸运的,因为没有任何开发人员专门针对Ruby 2.0兼容性。
$ rvm install ruby-1.9.3-p484
$ rvm use 1.9.3
$ gem install af
[...]
$ gem install caldecott
[... long list of dependencies being installed which didn't happen for Ruby 2.0]
$ af login
$ af tunnel