Menu

Package problems under Gutsy

Help
LeCzar
2008-04-01
2013-01-15
  • LeCzar

    LeCzar - 2008-04-01

    Whenever I try to install new packages, I end up with an error. I am using the Settings>Configure Packages>Install path, end I am trying to install to /usr/lib/R/library. I am being asked for my root password and log in as such.
    I am getting several error messages like this (in this case, it is the "Hmisc" package)

    * Installing *source* package 'maps' ...
    ** libs
    ** arch -
    gcc-4.2 -std=gnu99 -g -O2    Gmake.c   -o Gmake
    /bin/bash: gcc-4.2: command not found
    make: *** [Gmake] Error 127
    ERROR: compilation failed for package 'maps'
    ** Removing '/usr/lib/R/library/maps'

    and in the end

    The downloaded packages are in
        /tmp/Rtmp0PhefW/downloaded_packages
    There were 17 warnings (use warnings() to see them)
    >
    system ("chown username /home/username/.rkward/package_archive/*")
    chown: cannot access `/home/username/.rkward/package_archive/*': No such file or directory
    > q ()

    Any idea what I do wrong?

     
    • Johannes Ranke

      Johannes Ranke - 2008-04-01

      You need to install the r-base-dev package. This pulls gcc as a dependency, which you need to compile packages.

       
    • LeCzar

      LeCzar - 2008-04-01

      Thanks a lot, that did the trick!! :)

       
MongoDB Logo MongoDB