LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-13-2010, 05:01 PM   #1
go_kimi
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Rep: Reputation: 0
Installing from source *.gz


Hi,
I'm a real newbie, but have tried to find the answer to this without any luck.

When I'm installing from a source file *.gz and I've extracted all the files to a directory, once I've run 'configure' and 'make' in the directory where the files are extracted to, will the application be 'located' in that directory.

For example, I'm trying to install Expect and Tcl on my Red Hat Fedora 10 box. I've downloaded the tcl*.gz file as there's no *.rpms available, and extracted all the files to /tmp/.

I executed 'configure' as the documentation on http://www.tcl.tk/doc/howto/compile.html indicated everything would get loaded to /usr/local by default.

Everything worked out okay, but then I started 'make', everything started to install in the /tmp directory, which is not what I wanted, I want it to be able to run out of /usr/, so I killed the make.

My question is this: when I want to install new software (not just tcl) and there's no *.rpm available, where should the *.gz be located in order for the software to install correctly, and not end up in /tmp or my home directory?

I've read through this beginner's post:

http://www.linuxquestions.org/questi...rograms-45094/

but it doesn't seem to answer my question.

None of the information in the "Red Hat Linux Bible" or on the Tcl site, or Google searches seem to answer this question.

I've downloaded and extracted a few other *.gz for different applications and have gone through the README and INSTALL files and they always seem to not indicate where to extract the files to and then run configure and make. I don't want my applications to run from my /tmp directory.

Yes, I'm a newbie!!!!

go_kimi
 
Old 04-13-2010, 05:06 PM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
You have to run make install (as root), after make.
 
Old 04-13-2010, 05:11 PM   #3
go_kimi
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks brianL.

So don't worry about what files are located where in the 'configure' and 'make' steps?
 
Old 04-13-2010, 05:30 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
Welcome to LQ

I'm a bit surprised that no package be available for Expect and Tcl on Fedora 10.

That said, if you compile yourself an application three steps are generally needed:
"./configure" (check that all needed libraries are available and write the Makefile according to your configuration)
"make" use the Makefile to build the executable file(s), also called binaries
"make install" put the binaries where they should go.

So after make the binaries are not yet in their definitive location.

Thus you can put the *.gz (the source tarball) anywhere, that doesn't matter -- provided you don't mess up your system but centralize all your source programs somewhere.

The definitive location of the program is often /usr/local by default and can generally be changed in setting-up the "--prefix" option of the ./configure command. For instance write "./configure --prefix=/usr"

Always issue "./configure --help" before "./configure": that will tell you the default locations and available options.

Last edited by Didier Spaier; 04-13-2010 at 05:32 PM.
 
Old 04-13-2010, 05:32 PM   #5
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
As you mentioned, when you compile stuff yourself, it usually ends up in /usr/local. But you can change that by running:
Code:
 ./configure --prefix=/usr
With /usr/local, you might have to edit the PATH variable in /etc/profile. With /usr, no editing required.
 
Old 04-13-2010, 05:37 PM   #6
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Beaten to it by a faster typer and thinker again.
 
Old 04-13-2010, 05:58 PM   #7
go_kimi
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the replies, now it makes sense.

RH 10/Fedora did come with the tcl RPM but it's missing some header files, so I need to install it from the source. It does not come with an Expect *.rpm. I figured they'd both be on there, but that's outside of this thread.
 
Old 04-13-2010, 05:58 PM   #8
go_kimi
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the replies, now it makes sense.

RH 10/Fedora did come with the tcl RPM but it's missing some header files, so I need to install it from the source. It does not come with an Expect *.rpm. I figured they'd both be on there, but that's outside of this thread.
 
Old 04-13-2010, 07:27 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
go_kimi ---
you DO know that fedora 10 is, and has been, past it's END OF LIFE
there will never be any updates to it .

if you want to use fedora then PLEASE do fresh installes EVERY 6 months when a new version is released

or use a different distro , one that has a long life
like REHL or Debain or SUSE
 
  


Reply



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
help: installing from source Jiraiya Linux - Software 3 04-15-2006 06:13 PM
Installing php package after installing from source shubb Slackware 4 03-14-2006 10:19 AM
Installing from source, installing from CVS and the E-17 window manager... Buffbannana049 Ubuntu 10 02-14-2006 11:27 PM
Installing from source adrian_mx Linux - Software 2 12-21-2005 09:46 PM
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:47 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
Open Source Consulting | Domain Registration