I'm trying to install RStudio Server on Fedora 18 (64bit) but keep getting an error about libcrypto.so.6
and libssl.so.6
. (I didn't enable EPEL as I am not on RedHat/CentOS).
Following the installation instructions, I:
wget http://download2.rstudio.org/rstudio-server-0.97.336-x86_64.rpm
sudo yum install --nogpgcheck rstudio-server-0.97.336-x86_64.rpm
But I get the error:
Error: Package: rstudio-server-0.97.336-1.x86_64 (/rstudio-server-0.97.336-x86_64)
Requires: libcrypto.so.6()(64bit)
Error: Package: rstudio-server-0.97.336-1.x86_64 (/rstudio-server-0.97.336-x86_64)
Requires: libssl.so.6()(64bit)
If I look in /usr/lib64
I have (both from the openssl-libs
package: yum provides /usr/lib64/libssl.so.10
):
/usr/lib64/libcrypto.so.10
/usr/lib64/libssl.so.10
So it appears my package versions are too new for RStudio Server (!).
I decided to try the hacky solution of making some links from the old version to the new (hoping that they are backwards-compatible):
sudo ln -s /usr/lib64/libcrypto.so.10 /usr/lib64/libcrypto.so.6
sudo ln -s /usr/lib64/libssl.so.10 /usr/lib64/libssl.so.6
Now I attempt to install again, and use rpm --nodeps
instead of yum
to force installation:
sudo rpm -ivh --nodeps rstudio-server-0.97.336-x86_64.rpm
It works!
Preparing... ################################# [100%]
Updating / installing...
1:rstudio-server-0.97.336-1 ################################# [100%]
rsession: no process found
Stopping rstudio-server (via systemctl): [ OK ]
Starting rstudio-server (via systemctl): [ OK ]
(Note - if it's still complaining to you about not finding libraries, try
sudo ldd /usr/lib/rstudio-server/bin/rserver | grep 'not found'
You might get something like:
libssl.so.6 => not found
libcrypto.so.6 => not found
This will tell you which libraries you need to make links for.)
I can test whether it worked OK by opening a browser and pointing it to http://127.0.0.1:8787
:
Huzzah! RStudio Server! |
To enable external access I had to open port 8787 for my firewall (you could use the firewall applet for this instead of command-line)
iptables -A INPUT -p tcp --dport 8787 -j ACCEPT
Now I can continue with the rest of the instructions! Yay!
I tried this on a 64-bit server running Fedora 18 and a 64-bit VM running Fedora 18. It worked on the server (after I used the same trick with a third dependency libgfortran.so.1) but not on the VM. The VM starts the server OK, but core dumps at rstudio/src/cpp/core/system/PosixSystem.cpp:1027 after I log in.
ReplyDeleteThis worked well for me, thanks!
ReplyDeleteHad some iptables issues as well, so thanks for the advice on opening the port.