麻烦为Nimrod安装Babel

时间:2014-03-21 02:44:02

标签: ubuntu nimrod nim nimrod-babel

我在安装babel时遇到了问题。

首先我从github下载了所有内容,

connor@vader:~$ git clone https://github.com/nimrod-code/babel.git

然后我尝试使用

进行安装
connor@vader:~$ nimrod c -r babel/src/babel install

然后我得到了这个,

config/nimrod.cfg(36, 11) Hint: added path: '/home/connor/.babel/libs/' [Path]
Hint: used config file '/opt/nimrod/config/nimrod.cfg' [Conf]
Hint: used config file 'babel/src/babel.nimrod.cfg' [Conf]
Hint: system [Processing]
Hint: babel [Processing]
Hint: httpclient [Processing]
Hint: sockets [Processing]
Hint: os [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: times [Processing]
Hint: posix [Processing]
Hint: openssl [Processing]
Hint: parseurl [Processing]
Hint: strtabs [Processing]
Hint: hashes [Processing]
Hint: parseopt [Processing]
Hint: osproc [Processing]
Hint: streams [Processing]
Hint: pegs [Processing]
Hint: unicode [Processing]
Hint: tables [Processing]
Hint: math [Processing]
Hint: json [Processing]
Hint: lexbase [Processing]
Hint: algorithm [Processing]
Hint: packageinfo [Processing]
Hint: parsecfg [Processing]
/home/connor/babel/src/babelpkg/packageinfo.nim(4, 14) Error: cannot open 'version'

我正在运行Ubuntu 12.04 LTS,并且/opt/nimrod/安装了Nimrod 0.9.2。我的第一直觉是做sudo chmod a+rwx /opt/nimrod,但这并没有解决任何问题。你们有什么想法吗?

1 个答案:

答案 0 :(得分:2)

babel的git版本取决于nimrod的git版本。稳定的0.9.2版本不会查看相同的路径和子目录,也无法找到version子目录中找到的babelpkg模块。您可以明确提及此目录以包含命令行开关:

cd babel
nimrod --path:src/babelpkg c -r src/babel  install

但是,由于依赖版本,它将失败:

Installing babel-0.2.0
Unsatisfied dependency: nimrod (>= 0.9.3)
Error: execution of an external program failed

不幸的是,babel存储库不使用0.2以外的标签,因此无法知道哪个过去的版本可以检出并与nimrod 0.9.2兼容。你唯一的机会似乎是升级到nimrod的git版本。