我想在我的Linux Mint 18笔记本电脑上构建RStudio。我安装了openjdk-8-jdk和openjdk-9-jdk,并使用以下代码编译包:
git clone http://github.com/rstudio/rstudio.git
cd rstudio
mkdir build
cd dependencies/linux
./install-boost
./install-qt-sdk
./install-dependencies-debian
cd ../../build
cmake .. -DRSTUDIO_TARGET=Desktop -DCMAKE_BUILD_TYPE=Release
然后我尝试:
sudo make install
并收到错误:
[javac] error: Source option 1.5 is no longer supported. Use 1.6 or later.
[javac] error: Target option 1.5 is no longer supported. Use 1.6 or later.
是否可以修复它?
答案 0 :(得分:0)
感谢Logan Kulinski:标准发行版的openjdk版本太旧了,所以我不得不安装Oracle版本:
sudo add-apt-repository ppa:webup8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default