我正在尝试安装jekyll,但我遇到了一个错误.我正在运行Mac OS X 10.11.4(El Capitan).
$gem install jekyll
ERROR : While executing gem ... (Gem::Exception)
Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
$gem source -l
https://ruby.taobao.org
$which openssl
/usr/local/bin/openssl
Run Code Online (Sandbox Code Playgroud)
我欢迎您提出如何解决此错误的建议.
当我gem install bundler在MacOS 10.13.x中使用命令时,错误是You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.
$ gem install bundler
Fetching: bundler-1.16.2.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.
Run Code Online (Sandbox Code Playgroud) 我用Docker开发.
docker exec -it <My-Name> mongo
我想从JSON文件将数据导入MongoDB,但它失败了.
命令是
mongoimport -d <db-name> -c <c-name> --file xxx.json
我能做什么?
我想通过 cmake 构建 llvm,
我使用cmake -G Xcode ../llvm -DCMAKE_BUILD_TYPE:STRING=MinSizeRel.
但我有麻烦了。
错误日志是:
CMake Deprecation Warning at CMakeLists.txt:14 (cmake_policy):
The OLD behavior for policy CMP0051 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- The …Run Code Online (Sandbox Code Playgroud)