RStudio does not start when using a R version built from source

Because I do not have root privileges on some of the machines I use, I build part of my software from source and install it into my own homedirectory. Doing that requires one to download R from CRAN, e.g. R 2.14.1. Compiling R now is a matter of running:

I recently had to upgrade R, thus forcing me to repeat this process. I had been using RStudio already for a while, therefore I was very surprised to see that it failed to start. RStudio could not find R, and thus failed to start. Before re-compiling R all was fine. It turned out that the problem was related to the shared library of R. By default, the R shared library is not built. RStudio needs it, and thus my RStudio was crashing. To solve this, you need to adapt building R a little bit:

Adding the extra configuration flag causes the R shared library to be built, fixing the problem with RStudio.

Tagged with: , ,
Posted in R stuff
1 Comment » for RStudio does not start when using a R version built from source
  1. Rick says:

    No luck with this on Lion:I got thisgcc-4.2 -dynamic -arch_only /usr/bin/arch -install_name /usr/local/lib/libreadline.6.1.dylib -current_version 6.1 -compatibility_version 6 -v -o idarebillne.6.1.dylib -lncursesUsing built-in specs.Target: i686-apple-darwin11Configured with: /private/var/tmp/gcc/gcc-5666.3~278/src/configure disable-checking enable-werror prefix=/usr mandir=/share/man enable-languages=c,objc,c++,obj-c++ program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ with-slibdir=/usr/lib build=i686-apple-darwin11 program-prefix=i686-apple-darwin11- host=x86_64-apple-darwin11 target=i686-apple-darwin11 with-gxx-include-dir=/include/c++/4.2.1Thread model: posixgcc version 4.2.1 (Apple Inc. build 5666) (dot 3)i686-apple-darwin11-gcc-4.2.1: -compatibility_version only allowed with -dynamiclibmake[1]: *** [libreadline.6.1.dylib] Error 1make: [shared] Error 2 (ignored)

Leave a Reply

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    Markdown is turned off in code blocks:
     [This is not a link](

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see