简体   繁体   English

在debian9上从源Rstudio Desktop安装,错误cmake

[英]install from source Rstudio Desktop on debian9, error cmake

I try to install rstudio 1.1.456 on debian9 : 我尝试在debian9上安装rstudio 1.1.456:

Linux pc1 4.9.0-8-686-pae #1 SMP Debian 4.9.110-3+deb9u4 (2018-08-21) i686 GNU/Linux

I download and extract the tarball, create a build repertory in it, cd in it and launch this command (as it was showed in the INSTALL file) 我下载并解压缩tarball,在其中创建构建库,在其中cd并启动此命令(如INSTALL文件中所示)

sudo cmake .. -DRSTUDIO_TARGET=Desktop -DCMAKE_BUILD_TYPE=Release
[sudo]
CMake Error: The source directory "/home/zorg/rstudio-1.1.456" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

I looked for a CMakeLists.txt from the root path but not much results : 我从根路径中查找CMakeLists.txt,但结果不多:

sudo find -name "CMakeLists.txt"
./usr/share/cmake-3.7/Modules/FortranCInterface/CMakeLists.txt
./usr/share/cmake-3.7/Modules/FortranCInterface/Verify/CMakeLists.txt
./usr/share/cmake-3.7/Modules/IntelVSImplicitPath/CMakeLists.txt

Thx 谢谢

You do not appear to be in the directory you think you are in. The files that your find is finding are not in the source download I retrieved. 您似乎不在您认为所在的目录中。找到的文件不在我检索到的源下载中。 I also suspect your unzipped source is a level down from where you are trying to run the cmake. 我还怀疑您解压缩的源比您尝试运行cmake的位置低了一点。

In a shell window run the following commands 在外壳程序窗口中运行以下命令

cd /home/zorg/rstudio-1.1.456
ls -l

If you do not see CMakeLists.txt in the directory, but do have a subdirectory named rstudio-master, then run 如果您在目录中没有看到CMakeLists.txt,但是有一个名为rstudio-master的子目录,请运行

cd rstudio-master
mkdir build
cd build
cmake .. -DRSTUDIO_TARGET=Desktop -DCMAKE_BUILD_TYPE=Release

Note you do not need to use sudo for the cmake command only for the make install. 请注意,仅对于make install,不需要对cmake命令使用sudo。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM