1

我在安装时遇到问题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,并且 Nimrod 0.9.2 安装在/opt/nimrod/. 我的第一直觉是做sudo chmod a+rwx /opt/nimrod,但这并没有解决任何问题。你们有什么想法吗?

4

1 回答 1

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 兼容。您唯一的机会似乎是升级到 git 版本的 nimrod。

于 2014-03-21T10:13:16.577 回答