错误:lessc 1.3.0太旧了。安装Rethink DB时至少需要1.3c

时间:2014-04-17 22:03:51

标签: macos less rethinkdb

我关注的是tutorial关于在OSX上安装RethinkDB但在我运行时卡住了

./configure --fetch protobuf --fetch v8

* Detecting system configuration
Bash:                           3.2.51(1)-release
Use ccache:                     no
C++ Compiler:                   CLANG 5.1 (/usr/bin/c++)
Host System:                    x86_64-apple-darwin13.1.0
Build System:                   Darwin 13.1.0 x86_64
Cross-compiling:                no
Host Operating System:          Darwin
Without tcmalloc:               yes
Build client drivers:           no
Build Architecture:             x86_64
stdlib:                         -lc++
Precompiled web assets:         no
Protobuf compiler:              external/protobuf_2.5.0
Node.js package manager:        /usr/local/bin/npm
LESS css:                       no
* Error: lessc 1.3.0 is too old. At least lessc 1.3.1 is required

* Aborting configure

我确实跑了

npm install less 

确保没问题。在寻找线索时我发现了这个

enter image description here

表示lessc是编译器。但我搜索了各种相关的短语,无法找到如何更新或进一步排除故障。

1 个答案:

答案 0 :(得分:2)

RethinkDB构建系统知道如何获取大多数依赖项。

您可以在配置时添加--fetch less

./configure --fetch protobuf --fetch v8 --fetch lessc

或者只使用--allow-fetch,它指示make获取所有缺少的依赖项:

./configure --allow-fetch

另一种方法是使用源代码分发:http://download.rethinkdb.com/dist/rethinkdb-1.12.3.tgz

该tarball包含预先构建的网络资源,减少了对lessc的需求。