LinuxQuestions.org
Review your favorite Linux distribution.
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 07-30-2004, 04:34 PM   #1
lyar1031
Member
 
Registered: Jul 2004
Posts: 54

Rep: Reputation: 15
make install ?


Ok suppose that I do a make install to install my application.

Where or how can I figure out the path where the application resides. Does the Makefile tell me this! Usually, a README or some type of file tells me where the application is, but this application DID not come w/ anything

Thanks
 
Old 07-30-2004, 04:41 PM   #2
Corona4456
Member
 
Registered: Jul 2004
Distribution: SuSE 9.1
Posts: 66

Rep: Reputation: 15
The make file should tell you where all the files were installed to if you ran "make install". If you didn't the the files should be in the directory you ran make from.
 
Old 07-30-2004, 04:43 PM   #3
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Rep: Reputation: 30
Are u sure that you have to make something.
Many download are binaries. E.g.,

*bz2,*zip,*gzip,*tar,*Z,*rpm are all binaries
and don't need make.

What is the extension of your code? In fact, what is it?
So others can help.

Sheng-Chieh
 
Old 07-30-2004, 05:32 PM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
?bz.2?
 
Old 07-30-2004, 06:04 PM   #5
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by shengchieh
Are u sure that you have to make something.
Many download are binaries. E.g.,

*bz2,*zip,*gzip,*tar,*Z,*rpm are all binaries
and don't need make.

What is the extension of your code? In fact, what is it?
So others can help.

Sheng-Chieh
bz2, zip, gz, tar etc may all be binary files, but that's not the same as it being a binary executable. It just means they're made of binary numbers instead of ascii characters. If the compressed binary file contains source code (which most downloads will be) then you will still need to compile (i.e. 'make') the binary executable from that code.

And in this case the extension is irrelevant...he's already extracted the files and has made them, he just wants to know where they are.

And the easiest way to do that is to type:
Code:
whereis <filename>
most likely it's somewhere under /usr/local
 
Old 07-30-2004, 06:06 PM   #6
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by comprookie2000
?bz.2?
Yeah, a Bzip2 archive.
 
Old 07-31-2004, 01:42 PM   #7
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Rep: Reputation: 30
Probilibities (sp?) are high that you downloaded a

<application>.tar.bz2

file. Correct?

Then something like

bunzip <application>.tar <application>.tar.bz2 (uncompress)
tar -xvf <application> <application>.tar (unpack)

should get you started. In that dirctory or new subdirectory it created,
you should find a README.* file. Follow their directions. If tar
extracted it somewhere else, look at the file names that tar listed
(or find it using whereis or find). And then,

cd <new directory> (change directory)
ls (find the README.* file)

Sheng-Chieh

p.s. There is a way to bunzip and tar at the same time. Forgot
the command.
 
Old 07-31-2004, 03:05 PM   #8
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by shengchieh
p.s. There is a way to bunzip and tar at the same time. Forgot
the command.
That'll be:
Code:
tar jxvf myfile.tar.bz2
j is for bunzip, if it's a tgz or tar.gz file substitute a z for the j.
 
Old 07-31-2004, 03:37 PM   #9
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Or tar xvfj <filename> tar.bz2
 
Old 07-31-2004, 04:00 PM   #10
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
the command is tar -xvjf where -j stands for bzip2 compression or tar -xvzf with -z for gzip

to get something straightened out here:

tar stands (is short) for tape archive and is used to ...archive files (or whole trees of files)
gzip gz bz2 Z cpio zip arj ...are all different compression programs - or more exactly: these are the file-endings used to make it visible to _you_ with what kind of compression the so named files where created/compressed...

tar is used to put whole trees of files together into just one file - this is then compressed - to save space.

thus the names foo.tar.bz2 or foo.tar.gz or foo.tgz indicate compressed trees of files.

These are used to distribute installable binaries as well as to distribute source-code.

rpm and deb on the other hand contain mostly binaries - for use with different distributions of linux.

That is why you cannot tell whats in it just by the name a file has.

To the original question:

if you compile something - you first need to configure the source-code which is to be compiled.
For that you use the command ./configure from the top of the source-tree and that is the point where you tell make how to compile it and where exactly to install which file.
try the command: ./configure --help | less and you will see all the options you can give to configure as well as the defaults - if you just say ./configure
That will tell you, which file is to be installed where (really it is just copied there).
 
Old 07-31-2004, 04:48 PM   #11
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by comprookie2000
Or tar xvfj <filename> tar.bz2
You just switched the options around...it's the same command I gave.

Nothing like trying to confuse a newbie...
 
Old 07-31-2004, 04:51 PM   #12
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by jomen

For that you use the command ./configure from the top of the source-tree and that is the point where you tell make how to compile it and where exactly to install which file.
try the command: ./configure --help | less and you will see all the options you can give to configure as well as the defaults - if you just say ./configure
That will tell you, which file is to be installed where (really it is just copied there).
Not quite. configure is an entirely optional script omitted by some major projects (mplayer, I seem to remember, and something I installed yesterday but I've forgotten what). Not all developers use the autoconf system, therefore configure is not always present.
 
Old 07-31-2004, 05:15 PM   #13
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
...Komakino:

to your first one:

I'm not always online - I was reading the thread and the last I read was the entry of shengchieh...
then I got offline - wrote what you see here - and posted it without checking if somebody else had responded in the meantime - sorry. I was not trying to be wiser than someone who alredy answered correctly!

to your second one:

I know this! (running and having built LFS)
But there seemed to be a little confusion here and I tried to keep it simple - after all - the vast majority of programs are compiled with the help of a configure-script (MPlayer being among them)

Believe me - I was not about to put anybody off!
 
Old 07-31-2004, 05:30 PM   #14
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by jomen

I know this! (running and having built LFS)
But there seemed to be a little confusion here and I tried to keep it simple - after all - the vast majority of programs are compiled with the help of a configure-script (MPlayer being among them)

Believe me - I was not about to put anybody off!
Sorry, I'm not trying to be pedantic! I've just seen so many threads where people say "Error, help!! bash: configure: command not found!!!" because they're under the false assumption that configure is an integral part of installing linux software, or that it's akin to 'make' as a seperate utility rather than just a script.
 
Old 07-31-2004, 05:53 PM   #15
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
I see your point - I will eigther be precise or won't say anything at all from this day forth...
 
  


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
package compiling from source, make & make install concepts shujja Linux - Newbie 2 09-20-2005 12:18 AM
Chap 5 Binutils make LDFLAGS & make install errors shotokan Linux From Scratch 5 04-10-2005 03:01 AM
make; make install commands in SuSE Linux 9.1 Personal johnerskine Linux - Newbie 6 06-23-2004 10:18 AM
How to make rule for make install and make uninstall melinda_sayang Programming 1 06-14-2004 05:58 AM
'make' and 'make install' commands dont work on my system? ginda Linux - Newbie 9 04-18-2004 11:17 AM

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

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