LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-10-2004, 03:17 PM   #1
xianzai
Member
 
Registered: Oct 2003
Location: UK
Distribution: RHEL4
Posts: 54

Rep: Reputation: 15
Non-RPM Installation Question


Hi all!

I need to install a package, and have downloaded it in tar.gz form.

How the hell do I install it?

Having unzipped the tarball, tar -xvzf and got a directory named mm-1.3.0

The directory listing is as follows:
Code:
[root@localhost mm-1.3.0]# ls -a
.             config.h.in   libtool.m4   mm_alloc.c     mm_global.c  mm_vers.c
..            config.sub    LICENSE      mm-config.1    mm.h         PORTING
aclocal.m4    configure     ltmain.sh    mm-config.in   mm_lib.c     README
ChangeLog     configure.ac  Makefile.in  mm-config.pod  mm.pod       shtool
config.guess  INSTALL       mm.3         mm_core.c      mm_test.c    THANKS
I know that I should install this in /usr/local/

The INSTALL file tells me to do the following:
Code:
  To install the MM library into /path/to/mm/{bin,lib,include,man}/ perform
  the following steps in your shell:

    $ ./configure --prefix=/path/to/mm
    $ make
    $ make test
    $ make install
How can I install it such that the files in:
- mm-1.3.0/bin are put into /usr/local/bin
- mm-1.3.0/lib are put into /usr/local/lib
- mm-1.3.0/src are put into /usr/local/src

Is this what the configure script is for?

Thanks for any help!!

xianzai
 
Old 02-10-2004, 03:25 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Yes, the configure script will let you change the installl path - try with:
./configure --prefix=/usr/local/mm
 
Old 02-10-2004, 04:13 PM   #3
xianzai
Member
 
Registered: Oct 2003
Location: UK
Distribution: RHEL4
Posts: 54

Original Poster
Rep: Reputation: 15
Thanks for the reply.

You mean that I need to move the folder mm to /usr/local/
then cd to /usr/local/mm/
and do ./configure --prefix=/usr/local/mm

is that correct?

Thanks
 
Old 02-10-2004, 04:21 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
No - just run ./configure in the source directory.

Take a look at Jeremy's LinuxAnswer:
http://www.linuxquestions.org/questi...ticle&artid=15
 
Old 02-10-2004, 05:16 PM   #5
xianzai
Member
 
Registered: Oct 2003
Location: UK
Distribution: RHEL4
Posts: 54

Original Poster
Rep: Reputation: 15
Hi again :-)

I followed Jeremy's intructions, and the install seemed to go OK. I then tried to install another program in the same way, but I had previously installed this program. Is there any way to 'un-install' a program, other than deleting it?

Jeremy's article said:
Quote:
If you ever need to recompile a program you should do a make clean (or make distclean) before doing so. This will delete files created during the previous compile and give you a clean tree.
Would this just be done by doing:
Code:
make clean
?

Thanks
 
Old 02-11-2004, 03:43 AM   #6
lone_nut
Member
 
Registered: Dec 2003
Location: Denmark
Distribution: Mandrake
Posts: 179

Rep: Reputation: 30
It will, get done that way, but you should use
make distclean
as it makes the package, that way it was before configure.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rpm installation paulr1984 Linux - Newbie 1 04-28-2005 06:25 AM
installation of rpm shashank Linux - Software 1 04-14-2005 09:15 PM
Help rpm installation !!! my-unix-dream Linux - Newbie 3 07-01-2004 02:37 AM
RPM Installation Question zenaphex Linux - Software 2 06-06-2004 09:18 PM
RPM installation rheza Slackware 8 04-04-2003 10:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration