title: Rstudio server cannot find correct location of R installation (ubuntu)
body: <p>I have R 3.4.0 installed to /home/ubuntu/software/R/R-3.4.0/bin, which is a 'non-standard' install location. I then installed rstudio server, and edited the rserver.conf file to include: <code>rsession-which-r=/home/ubuntu/software/R/R-3.4.0/bin</code></p>
  
  <p>I thought this would be sufficient. At ip:8787 the rstudio server login box appears, and I can login, but then get an error that no session was found.</p>
  
  <p>I also tried adding to the rserver.conf file: </p>
  
  <pre><code>rsession-ld-library-path=/home/ubuntu/software/R/R-3.4.0/bin
  </code></pre>
  
  <p>but this failed to even load the rstudio login page at ip:8787. After removing this line I now cannot even get back to the login page.</p>
  
  <ol>
  <li><p>What is going wrong here? Linux has been a nightmare for me, it's been missing file after missing file error, EVEN after I blatantly set LD env variables to the correct paths (via LD_config, make.config files AND configuration files). I feel like I'm missing something fundamental here. </p></li>
  <li><p>What is the correct command to install R to Rstudio's expected path, if there's no sane way to tell rstudio-server it's in a non-standard path? I used: </p></li>
  </ol>
  
  <pre><code>./configure --prefix=/home/ubuntu/software/R/R-3.4.0 --with-x=yes --enable-R-shlib=yes --with-cairo=yes
  make
  </code></pre>
  
  <p>to install.</p>
  
  <p>Additional info:</p>
  
  <pre><code>cat /var/log/user.log | grep rstudio
   - nothing
  cat /var/log/syslog | grep rstudio
   - many errors, first:  ERROR R did not return any output when queried for directory location information
  sudo rstudio-server verify-installation
   - ERROR R script path (/home/ubuntu/software/R/R-3.4.0/bin) is a directory rather than a file
  </code></pre>