Rserve does not start (not found)

Bug #1325325 reported by Igor Drozdov on 2014-06-01
This bug affects 6 people
Affects Status Importance Assigned to Milestone
rserve (Ubuntu)

Bug Description

Expected way to run Rserve package

    $ R CMD Rserve

produces error message.

   /usr/lib/R/bin/Rcmd: 62: exec: Rserve: not found

This may be due to invalid symbolic links in `/usr/lib/R/bin`

  lrwxrwxrwx 1 root root 29 Feb 1 23:22 Rserve -> ../site-library/Rserve/Rserve
  lrwxrwxrwx 1 root root 33 Feb 1 23:22 Rserve.dbg -> ../site-library/Rserve/Rserve.dbg

which need to be changed to


ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: r-cran-rserve 1.7-3-2
ProcVersionSignature: Ubuntu 3.13.0-24.47-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
CurrentDesktop: Unity
Date: Sun Jun 1 09:03:34 2014
InstallationDate: Installed on 2014-04-29 (33 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Beta amd64 (20140326)
SourcePackage: rserve
UpgradeStatus: No upgrade log present (probably fresh install)

Igor Drozdov (idrozdov) wrote :
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in rserve (Ubuntu):
status: New → Confirmed
pavlos (pavlos-psychology) wrote :

Indeed, fixing the broken symlinks did the job.

agent 8131 (agent-8131) wrote :

Commands to fix:

cd /usr/lib/R/bin/

ln -sf ../site-library/Rserve/libs/Rserv

ln -sf ../site-library/Rserve/libs/Rserve.db

Daniel Neel (dneelyep) wrote :

Here's the modified commands I had to run, based on the comment from @agent-8131, on Ubuntu 14.04:

cd /usr/lib/R/bin/
sudo ln -sf ../site-library/Rserve/libs/Rserve
sudo ln -sf ../site-library/Rserve/libs/Rserve.dbg

After running these, Rserve worked for me.

Daniel Neel (dneelyep) wrote :

Also, if anyone's using Ansible by chance, here are some playbook entries I'm using to install Rserve and work around this problem:

  - name: Install Rserve
    apt: pkg=r-cran-rserve state=latest

    # === Fix Ubuntu's broken Rserve package ===
    # Ubuntu's rserve package doesn't set symlinks properly.
    # See here for more info:
    - file: src=/usr/lib/R/site-library/Rserve/libs/Rserve dest=/usr/lib/R/bin/Rserve owner=root state=link force=yes
    - file: src=/usr/lib/R/site-library/Rserve/libs/Rserve.dbg dest=/usr/lib/R/bin/Rserve.dbg owner=root state=link force=yes

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers