Hi!
When installing RStudio Desktop on Ubuntu Linux 18.04 from the GitHub source tree, I end up with the following error about a missing gwt module when running sudo make install:
Buildfile: /usr/local/src/rstudio/src/gwt/build.xml
ext:
[jscomp] None of the files changed. Compilation skipped.
javac:
[javac] Compiling 1 source file to /usr/local/src/rstudio/src/gwt/bin
gwtc:
[java] Compiling module org.rstudio.studio.RStudio
[java] [ERROR] Hint: Check that your module inherits 'com.google.gwt.core.Core' either directly or indirectly (most often by inheriting module 'com.google.gwt.user.User')
BUILD FAILED
/usr/local/src/rstudio/src/gwt/build.xml:110: Java returned: 1
Total time: 2 seconds
src/gwt/CMakeFiles/gwt_build.dir/build.make:57: recipe for target 'gwt_build' failed
make[2]: *** [gwt_build] Error 1
CMakeFiles/Makefile2:106: recipe for target 'src/gwt/CMakeFiles/gwt_build.dir/all' failed
make[1]: *** [src/gwt/CMakeFiles/gwt_build.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
I followed the instructions in INSTALL and dependencies/linux/README. The javac version is 10.0.1.
Here's exactly what I did:
git clone [email protected]:rstudio/rstudio.git
cd rstudio/dependencies/linux
./install-dependencies-debian
cd ../common
./install-common
cd ../../
mkdir build && cd build
cmake .. -DRSTUDIO_TARGET=Desktop -DCMAKE_BUILD_TYPE=Release
sudo make install
Output of cmake (success)
bash
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- LSB release: ubuntu
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Boost version: 1.63.0
-- Using RStudio-provided Boost 1.63.0
-- Performing Test HAVE_SCANDIR_POSIX
-- Performing Test HAVE_SCANDIR_POSIX - Success
-- Looking for SA_NOCLDWAIT
-- Looking for SA_NOCLDWAIT - found
-- Looking for SO_PEERCRED
-- Looking for SO_PEERCRED - found
-- Looking for inotify_init1
-- Looking for inotify_init1 - found
-- Looking for getpeereid
-- Looking for getpeereid - not found
-- Looking for setresuid
-- Looking for setresuid - found
-- Configured to build DESKTOP
-- Found LibR: /usr/local/lib/R
-- Found R: /usr/local/lib/R
-- Found Qt: /home/kapper/Qt5.11.1/5.11.1/gcc_64/bin/qmake
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/src/rstudio/build
RStudio Edition : Desktop
RStudio Version : GitHub source as of 2018-07-16
OS Version : Ubuntu Linux 18.04 LTS
R Version : 3.5.0
We have some known issues with the INSTALL file instructions, see #3061. At the moment, only supported way to get a working install is via make-package. We also have dockerfiles that can take care of all the dependencies and produce an installation package for you. See the docker-compile.sh script in the docker folder. Run it with no arguments to see usage instructions
Your issue may be due to having javac version 10.0.1 installed; per our wiki instructions https://github.com/rstudio/rstudio/wiki/Installing-RStudio-Dependencies we don't support Java 9 or 10. Sorry that the README is out of date in that regard. We currently have some redundant and out-of-date instructions between the README's and the wiki. I'll leave this issue open to track getting all of that back in sync.
Thank you. Simply running ./docker-compile.sh xenial-amd64 desktop to create a .deb file worked like a charm, even though Xenial is Ubuntu 16.04 and I'm using the new beaver, 18.04. So a little update of the installation instructions would be lovely.
Also, using an older java JDK version openjdk-8-jdk also solves the installation issues, but I have other programs that needs version 10, and I'm not an expert when it comes to having multiple versions of software installed at once.
Most helpful comment
Thank you. Simply running
./docker-compile.sh xenial-amd64 desktopto create a.debfile worked like a charm, even though Xenial is Ubuntu 16.04 and I'm using the new beaver, 18.04. So a little update of the installation instructions would be lovely.Also, using an older java JDK version
openjdk-8-jdkalso solves the installation issues, but I have other programs that needs version 10, and I'm not an expert when it comes to having multiple versions of software installed at once.