[R-sig-Debian] Getting confused with two versions of R‏‏

Michael Rutter mar36 at psu.edu
Thu Jul 21 20:57:37 CEST 2011



On 07/21/2011 02:49 PM, Alireza KhoshgoftarMonfared wrote:
>
> Hi there, I used to run R 2.10 on Ubunutu 10.04, and tried to install R 2.11 from the source at the same time.It seems that doing the second installation, I have messed up with some files or system paths, resulting in not being able to use either version of R on my system.
> I get the following message in terminal, whenever I try to run R now:
>
> /usr/local/bin/R: line 227: /usr/local/lib/R/etc/ldpaths: No such file or directory/usr/local/bin/R: line 250: /usr/local/lib/R/bin/exec/R: No such file or directory/usr/local/bin/R: line 250: exec: /usr/local/lib/R/bin/exec/R: cannot execute: No such file or directory
> I've tried to re-install R using apt-get doing:
>
> sudo apt-get updatesudo apt-get remove r-base sudo apt-get autoremove sudo apt-get install r-base
> Although the installation seems to be successful, I get the same error above trying to run R.Any suggestions how I can clean up all the leftovers from the previous two installations, and get back to the r-base available in repository? Thanks,Alireza 		 	   		

Alireza,

If you installed from source, go back to the source directory and run 
'sudo make uninstall'.  Then I would use a GUI interface Synaptic to 
make sure that all R related packages are removed.  Check to make sure 
typing 'R' returns nothing.

Then I would use these instructions to install the latest version of R:

http://cran.r-project.org/bin/linux/ubuntu/

Michael

-- 
Dr. Michael A. Rutter
School of Science
Penn State Erie, The Behrend College
Station Road
Erie, PA 16563
http://math.bd.psu.edu/faculty/rutter



More information about the R-SIG-Debian mailing list