Rstudio: Difference between revisions

From 太極
Jump to navigation Jump to search
(Created page with "See https://github.com/rstudio/rstudio/blob/master/INSTALL for installation instruction. To build Rstudio from source in Ubuntu: # Install R. # Download a release version tar...")
 
No edit summary
Line 2: Line 2:


To build Rstudio from source in Ubuntu:
To build Rstudio from source in Ubuntu:
# Install R.
* Install R.
# Download a release version tarball of source code. Do not grab from github master branch. Sometimes the [http://www.rstudio.com/ide/download/preview preview version] works but the release version cannot be compiled. For example, the release version would give a build error from /opt/QRstudio-QtSDK/Desktop/4.8.0/gcc/include/QtCore/gstring.h, but the preview version 0.98.836 (May 11th, 2014) works fine.
* Download a release version tarball of source code. Do not grab from github master branch. Sometimes the [http://www.rstudio.com/ide/download/preview preview version] works but the release version cannot be compiled. For example, the release version would give a build error from /opt/QRstudio-QtSDK/Desktop/4.8.0/gcc/include/QtCore/gstring.h, but the preview version 0.98.836 (May 11th, 2014) works fine.
# Make sure git is installed/available.
* Make sure git is installed/available.
# Install dependencies
* Install dependencies
<pre>
<pre>
cd rstudio-rstudio-dbf531d  # the number differs
cd rstudio-rstudio-dbf531d  # the number differs
dependencies/linux/install-dependencies-debian
dependencies/linux/install-dependencies-debian
</pre>
</pre>
# Create build directory
* Create build directory
<pre>
<pre>
mkdir build
mkdir build
cd build
cd build
</pre>
</pre>
# Configure by running cmake
* Configure by running cmake
<pre>
<pre>
cmake .. -DRSTUDIO_TARGET=Desktop -DCMAKE_BUILD_TYPE=Release
cmake .. -DRSTUDIO_TARGET=Desktop -DCMAKE_BUILD_TYPE=Release
</pre>
</pre>
# Build and Install
* Build and Install
<pre>
<pre>
sudo make install
sudo make install

Revision as of 14:11, 12 May 2014

See https://github.com/rstudio/rstudio/blob/master/INSTALL for installation instruction.

To build Rstudio from source in Ubuntu:

  • Install R.
  • Download a release version tarball of source code. Do not grab from github master branch. Sometimes the preview version works but the release version cannot be compiled. For example, the release version would give a build error from /opt/QRstudio-QtSDK/Desktop/4.8.0/gcc/include/QtCore/gstring.h, but the preview version 0.98.836 (May 11th, 2014) works fine.
  • Make sure git is installed/available.
  • Install dependencies
cd rstudio-rstudio-dbf531d  # the number differs
dependencies/linux/install-dependencies-debian
  • Create build directory
mkdir build
cd build
  • Configure by running cmake
cmake .. -DRSTUDIO_TARGET=Desktop -DCMAKE_BUILD_TYPE=Release
  • Build and Install
sudo make install

For RStudio Desktop on Linux, make install automatically creates an entry in the Applications -> Programming menu for RStudio.