3 Step Solution to Missing rs-ruby error

Today we were trying to move one project of rails from one pc to the other. We took the source code along with the db (since the db had data in it and it was required) and configured it. But when we started the server using ruby script/server we got a strange error missing rsruby

searched for it and tried few things. Finally got it solved in 3 steps

>export R_HOME=/usr/lib/R
> sudo ln -s /usr/lib/R/lib/libR.so /usr/lib/libR.so
> gem install rsruby — –with-R-dir=$R_HOME –with-R-include=/usr/share/R/include/

Thats all… rsruby will be installed on your system and the project will be running without any issue.

Hope this works for you


Be Sociable, Share!