System Admin: Where best to install an app?

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

System Admin: Where best to install an app?

Postby Proponent » Tue May 31, 2005 1:51 pm

As a newbie who's excited as can be about having just installed Mandriva 2005 LE from the cover disc, I'd like to take advantage of some of the great open-source applications written for Linux. For starters, I want to install the R statistical package. It comes as a tar file, R-2.1.0.tar.gz (there does not seem to be an rpm file available). Where is the most sensible place in the directory structure to unpack it?

I don't know whether this matters, but I'd like the package to be available for all users, not just for myself. The tar file contains numerous subdirectors, e.g., R-2.1.0/debian and R-2.1.0.src.

Any help much appreciated.... Thanks!
Posts: 3
Joined: Tue May 31, 2005 1:40 pm

RE: System Admin: Where best to install an app?

Postby davecs » Tue May 31, 2005 1:57 pm

In Mandriva, your rpms get installed in /usr (ie programs in /usr/bin) but any tar.gz files you build yourself tend to go to /usr/local (ie programs to /usr/local/bin) to keep them separate. You could also put it in its own private folder by declaring the prefix as /opt/R/

At the ./configure stage, do "./configure --prefix=/opt/R/"

Then you'll keep it separate from your other files.
Asus Asus M2N32 WS Pro+Athlon AM2/4200+ — GeForce 7600GT — 2Gb Cosair VS RAM — 500Gb WD5000AAKS SATA Drive — PCLinuxOS
User avatar
LXF regular
Posts: 530
Joined: Sat Apr 09, 2005 11:13 pm
Location: Dagenham, Essex

RE: System Admin: Where best to install an app?

Postby nelz » Tue May 31, 2005 3:22 pm

The tar file contains the source code, not the program itself. Unpack the tar file anywhere convenient, somewhere in your home directory is fine, and read any README and INSTALL files present. these should tell you how to compile and install it. The first step of installing from source is usually to run ./configure. If you run "./configure --help" instead, it will show you the options and defaults. As davecs says, programs compiled from source usually go in /usr/local, to keep them separate from programs handled by your distro's package management system.

Incidentally, you can get a Mandrake RPM of R 2.0 from ... k.i586.rpm
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
Site admin
Posts: 8467
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

RE: System Admin: Where best to install an app?

Postby Proponent » Wed Jun 01, 2005 1:38 pm

Thanks, that gets me a step further.

Now, though, I can't make R from the source files, because I don't have g77 (the Fortran 77 compiler part of gcc). I've looked into installing g77, but I can't quite figure it out. It seems I might need to re-install gcc, with source code. For the time being this seems like too big a project, given my limited knowledge.

So, I tried to install the RPM for version 2.0 instead. This produced an error message that the package couldn't be installed "due to unsatisfied". I can't find libreadline using the Mandrake control center, although I have found that /usr/lib/ does exist. Any ideas?
Posts: 3
Joined: Tue May 31, 2005 1:40 pm

RE: System Admin: Where best to install an app?

Postby Rhakios » Wed Jun 01, 2005 6:59 pm

Assuming you have the DVD from Linux format, both the packages you require are present.
rhakios@pythia:/media/LXFDVD67/media/main> ls -l gcc*
-r--r--r-- 1 rhakios users 158315 2005-04-06 14:08 gcc2.96-cpp-2.96-0.83mdk.i586.rpm
-r--r--r-- 1 rhakios users 2930366 2005-04-06 14:08 gcc-3.4.3-7mdk.i586.rpm
-r--r--r-- 1 rhakios users 2488626 2005-04-06 14:08 gcc-c++-3.4.3-7mdk.i586.rpm
-r--r--r-- 1 rhakios users 1596509 2005-04-06 14:08 gcc-cpp-3.4.3-7mdk.i586.rpm
-r--r--r-- 1 rhakios users 1889903 2005-04-06 14:08 gcc-g77-3.4.3-7mdk.i586.rpm

rhakios@pythia:/media/LXFDVD67/media/main> ls -l libread*
-r--r--r-- 1 rhakios users 103070 2005-04-06 14:17 libreadline5-5.0-2mdk.i586.rpm
-r--r--r-- 1 rhakios users 1841117 2005-04-06 14:17 libreadline5-devel-5.0-2mdk.i586.rpm

you will need the devel rpm installed if you want to compile anything against it.

Edit: and I've just had a go building it on SuSE 9.3 Pro 64-bit, it all went surprisingly smoothly except configure gave:
configure: WARNING: you cannot build DVI versions of all the help pages
configure: WARNING: you cannot build info or html versions of the R manuals
configure: WARNING: you cannot build PDF versions of all the help pages

so it looks like I'll have to do without the documentation for something I'm not going to use, ho hum.
Bye, Rhakios
User avatar
Posts: 7634
Joined: Wed Apr 06, 2005 11:18 pm
Location: Midlands, UK

RE: System Admin: Where best to install an app?

Postby Guest » Thu Jun 02, 2005 3:50 pm

Thanks, this time I was able to install g77 and make R. Previously when I searched for g77 in the Control Center, I searched by category, specifically, Development, and found nothing. This time, I searched by name.

Return to Help!

Who is online

Users browsing this forum: No registered users and 1 guest