Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to install R on centos linux to an upgraded version.

Currently we have 2.10 which I compiled from source but the server admin is asking me to move the install to /programs instead of /home/me which is fine with me....

Should I uninstall R (and How) and then install to /programs?

share|improve this question

migrated from stackoverflow.com Mar 21 '12 at 20:29

This question came from our site for professional and enthusiast programmers.

    
sounds like a windows-only administrator man. there is no '/programs' by default in linux. maybe he would say '/usr/bin' if he knew linux. –  conspiritech Mar 21 '12 at 20:44

1 Answer 1

If you have the compiled binary, you can ask the admin to move it to /programs for you, but then it will be static and require a new compile/install each time etc.

This is what package management tools were invented for, so.....

I would recommend instead asking the admin to install using yum (rpm) and have that manage the versions for you. There are R packages available for CentOS, so this should be trivial for the sysadmin in question (sudo yum install R). If it should then be linked from the default install location to /programs, then that is what symbolic links are for :)

Edit: since you can't install via RPM, then to save yourself having to download, compile from source and re-install to /programs every time, you could download the rpm package (google for centos R rpm packages) and then follow the instructions here:

http://www.linuxquestions.org/questions/programming-9/how-to-extract-binary-or-what-ever-files-from-rpm-package-659712/

That will allow you to extract the binary and copy it to /programs - hopefully save you some time.

share|improve this answer
    
Hey thanks. We can't use rpm or yum (through godaddy or someone i never heard of). They don't like symbolic links and I'm cool with that... What do you mean it will be static and require a compile / install each time.... Sorry : ( I'm a noob. –  user1284181 Mar 21 '12 at 18:44
    
I updated the answer to reflect your situation. Essentially what you have to do is either compile from source each time you want to upgrade (as you have done in your home folder), or you can follow my other suggestions above. Once you have a working binary via either method, you just need to add it to /programs and set the appropriate permissions (note: you have to have permissions sufficient to write to /programs to do this). The server admin will be able to tell you how to get binaries into /programs if not (or there may be docs explaining it for your provider) –  Adam C Mar 21 '12 at 19:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.