Bii代码似乎损坏了我的cmake

时间:2014-12-06 14:07:06

标签: c++ ubuntu cmake biicode

我在我的Ubuntu 14.10(64位)上安装了bii(v1.11),而bii setup:cpp下载并安装了CMake 3.0.2。现在,当我想从控制台使用CMake时,我遇到了分段错误:

$ cmake --version
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/home/lars/.biicode_env/cmake-3.0.2-Linux-64/bin
[1]    2993 segmentation fault (core dumped)  cmake --version

我需要sudo命令才能使其正常运行:

$ sudo cmake --version
cmake version 3.0.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).

有任何建议如何修复?

1 个答案:

答案 0 :(得分:4)

sudo chown -R YOUR_USER:YOUR_USER /home/YOUR_USER/.biicode_env解决问题