Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

System Admin: Where best to install an app?

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
Proponent



Joined: Tue May 31, 2005 2:40 pm
Posts: 3

PostPosted: Tue May 31, 2005 2:51 pm    Post subject: System Admin: Where best to install an app? Reply with quote

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!
Back to top
View user's profile Send private message
davecs
LXF regular


Joined: Sun Apr 10, 2005 12:13 am
Posts: 530
Location: Dagenham, Essex

PostPosted: Tue May 31, 2005 2:57 pm    Post subject: RE: System Admin: Where best to install an app? Reply with quote

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
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8457
Location: Warrington, UK

PostPosted: Tue May 31, 2005 4:22 pm    Post subject: RE: System Admin: Where best to install an app? Reply with quote

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
http://www.stats.bris.ac.uk/R/bin/linux/mandrake/10.0/R-2.0.0-1mdk.i586.rpm
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
Proponent



Joined: Tue May 31, 2005 2:40 pm
Posts: 3

PostPosted: Wed Jun 01, 2005 2:38 pm    Post subject: RE: System Admin: Where best to install an app? Reply with quote

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 libreadline.so.4.3". I can't find libreadline using the Mandrake control center, although I have found that /usr/lib/libreadline.so does exist. Any ideas?
Back to top
View user's profile Send private message
Rhakios
Moderator


Joined: Thu Apr 07, 2005 12:18 am
Posts: 7628
Location: Midlands, UK

PostPosted: Wed Jun 01, 2005 7:59 pm    Post subject: RE: System Admin: Where best to install an app? Reply with quote

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

and
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
Back to top
View user's profile Send private message
Guest






PostPosted: Thu Jun 02, 2005 4:50 pm    Post subject: RE: System Admin: Where best to install an app? Reply with quote

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.
Back to top
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast