0

我试图在我的 Rails 应用程序中包含一个日期时间选择器,环顾四周我发现了这个: http: //www.malot.fr/bootstrap-datetimepicker/index.php

但是当我尝试编译它时,出现以下错误:

$lessc build/build_standalone.less datetimepicker.css
/usr/local/rvm/gems/ruby-2.0.0-head/gems/less-2.3.2/bin/lessc:100:in `read': No such file or directory - datetimepicker.css (Errno::ENOENT)
    from /usr/local/rvm/gems/ruby-2.0.0-head/gems/less-2.3.2/bin/lessc:100:in `<top (required)>'
    from /usr/local/rvm/gems/ruby-2.0.0-head/bin/lessc:23:in `load'
    from /usr/local/rvm/gems/ruby-2.0.0-head/bin/lessc:23:in `<main>'

我不太新鲜,less你能帮我解决这个问题吗?

操作系统是mac os 10.8.4

谢谢,

4

1 回答 1

0

解决了:

第二个参数没有正确指向 css 文件。

正确的命令行是:

$lessc build/build_standalone.less css/datetimepicker.css

谢谢 :)

于 2013-09-14T13:24:34.927 回答