LinuxQuestions.org
Review your favorite Linux distribution.
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, 06: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, 06:06 PM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
You have to run make install (as root), after make.
 
Old 04-13-2010, 06: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, 06:30 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,095

Rep: Reputation: 2241Reputation: 2241Reputation: 2241Reputation: 2241Reputation: 2241Reputation: 2241Reputation: 2241Reputation: 2241Reputation: 2241Reputation: 2241Reputation: 2241
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 06:32 PM.
 
Old 04-13-2010, 06:32 PM   #5
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

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, 06:37 PM   #6
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
Beaten to it by a faster typer and thinker again.
 
Old 04-13-2010, 06: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, 06: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, 08:27 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,986

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
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


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


All times are GMT -5. The time now is 07:45 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