LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-07-2002, 11:08 PM   #1
natesch
Member
 
Registered: May 2002
Posts: 36

Rep: Reputation: 15
How do I compile(install) Mplayer


I, as is obvious, am a n00b! I would like to install mplayer to play my DVD's! I have SuSe 8.0 installed. what do I need to do to install mplayer? I DL'd it and it is saved as a bz2 file. Please lemme know what to do! Thanx
 
Old 05-07-2002, 11:39 PM   #2
Shrike
LQ Newbie
 
Registered: May 2002
Location: oregon
Distribution: Slackware (normally)
Posts: 21

Rep: Reputation: 15
uncompress it (bunzip2)

bzip2

Compress and decompress files
Syntax:

Compress and decompress files:

bzip2 [options] [files...]

Decompress files:

bunzip2 [options] [files...]

Decompress files to standard output:

bz2cat [options] [files...]

Options:

-1 ... -9
Set the blocksize to 100k ... 900k. -c
Send output to standard output. -d
Force decompression. -f
Force the utility to overwrite existing output files. -h
Display a help message. -k
Keep (i.e. don't delete) input files. --repetitive-best
Compress repetitive blocks better. --repetitive-fast
Compress repetitive blocks faster. -s
(Small) use less memory (at most 2500K). -t
Test the integrity of the compressed file. -v
Verbose output; a second v makes the utility more verbose. -z
Force compression.
Description:

This utility compresses and decompresses files:

* If invoked as bzip2, the default action is to compress.
* As bunzip2, the default action is to decompress.
* As bz2cat, the default action is to decompress to stdout.

If no file names are given, bzip2 compresses or decompresses from standard input to standard output.
See also:

also open a terminal and type: "man bunzip2" to read the man page

it should generate a readme that will explaine the rest of the installation.
Ive never installed it so im not sure if it includes one or not.

Also if you are useing RH or Drake you can probly get the RPM rather than useing a bzip file.

Last edited by Shrike; 05-07-2002 at 11:45 PM.
 
Old 05-07-2002, 11:45 PM   #3
natesch
Member
 
Registered: May 2002
Posts: 36

Original Poster
Rep: Reputation: 15
Heh~Hate to sound like a moron but I have no clue what that all means! Grr this is so much tougher to learn than I had thought it would be! When I click on the bz2 file it opens up ARK and shows me all the files zipped inside. I just dont know what to do with it! Sry and Thanx all!
 
Old 05-07-2002, 11:53 PM   #4
Shrike
LQ Newbie
 
Registered: May 2002
Location: oregon
Distribution: Slackware (normally)
Posts: 21

Rep: Reputation: 15
the command for unzipping your file would be "bunzip2 (your bzip file)" you should not need any other modifiers.
 
Old 05-08-2002, 12:02 AM   #5
Shrike
LQ Newbie
 
Registered: May 2002
Location: oregon
Distribution: Slackware (normally)
Posts: 21

Rep: Reputation: 15
unless of course it is a .tar.bzip2.
after you unzip it you then must untar it (tar tvf (your file))

please include the entire file name so folks can give you compleate help.
 
Old 05-08-2002, 12:09 AM   #6
natesch
Member
 
Registered: May 2002
Posts: 36

Original Poster
Rep: Reputation: 15
OK~So I unzipped it and it is a folder on my desktop! Now I have to build it right? how is that done?
 
Old 05-08-2002, 12:10 AM   #7
natesch
Member
 
Registered: May 2002
Posts: 36

Original Poster
Rep: Reputation: 15
ahh yes~it is a tar.bz2 file! heh Sorry didn't know that meant anything!
 
Old 05-08-2002, 12:19 AM   #8
Shrike
LQ Newbie
 
Registered: May 2002
Location: oregon
Distribution: Slackware (normally)
Posts: 21

Rep: Reputation: 15
you ought to have a readme file to guide you thrugh the compile.
If you do not the info is here.



When you are downloading from an FTP server, you'll probably also come across "tar.gz" files. These files contain the source codes for the same programs RPM files contain. To unpack, compile and install tar.gz's (Tarballs) do the following:

# cp /home/user/downloads/newsoftware.tar.gz /usr/src/ [ENTER]
# cd /usr/src/ [ENTER]
# tar -zxvf newsoftware.tar.gz [ENTER]
# cd newsoftware [ENTER]
# less README [ENTER]
...
# less INSTALL [ENTER]

These readme and install files contain clues on how to install and compile,
but usually this does it:

# ./configure [ENTER]
# make [ENTER]
# make install [ENTER]
 
Old 05-08-2002, 12:28 AM   #9
natesch
Member
 
Registered: May 2002
Posts: 36

Original Poster
Rep: Reputation: 15
OK~I am starting to understand except one thing! I have a bz2 file not a gz file. when I try to tar like U said I get the error

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors


I sorry I so dumb at this! Thanx man for all the help!
 
Old 05-08-2002, 12:44 AM   #10
Shrike
LQ Newbie
 
Registered: May 2002
Location: oregon
Distribution: Slackware (normally)
Posts: 21

Rep: Reputation: 15
you ought to have a new file with a .tar extension.
that is the one you need to untar.

Sorry I forgot to say it earlyer.

at this time you ought to have " MPlayer-0.90pre3.tar"

so your command would be "tar tvf MPlayer-0.90pre3.tar"
 
Old 05-08-2002, 01:01 AM   #11
natesch
Member
 
Registered: May 2002
Posts: 36

Original Poster
Rep: Reputation: 15
OK man~I thank U for all the help but I still am lost I guess! So I have this file downloaded: /home/natesch/documents//MPlayer-0.90pre3.tar.bz2

SO what do I do with that file! If I click on it ARK opens and it shows all the files zipped in! I am so confused but thank U again for all the help!
 
Old 05-08-2002, 01:14 AM   #12
Shrike
LQ Newbie
 
Registered: May 2002
Location: oregon
Distribution: Slackware (normally)
Posts: 21

Rep: Reputation: 15
step 1

"bunzip2 MPlayer-0.90pre3.tar.bz2"

this will give you: MPlayer-0.90pre3.tar

step 2

"tar tvf MPlayer-0.90pre3.tar"

this will untar the program

step 3
read the readme files.

step 4
if the readme doesnt include a install read me.

usually this does it:

# ./configure [ENTER]
# make [ENTER]
# make install [ENTER]

I just did all this on the same file you are useing and it worked out fine for me.
 
Old 05-08-2002, 02:35 AM   #13
Shrike
LQ Newbie
 
Registered: May 2002
Location: oregon
Distribution: Slackware (normally)
Posts: 21

Rep: Reputation: 15
Im sorry I forgot to tell you to extract the freeking files

this is the command (i was typeing this in my terminal and installing the file without thinking about it and telling you the wrong thing to type here) sorry about that. You can credit it to old age


"tar xvf MPlayer-0.90pre3.tar"

Then you CD to the new directory and compile the program

damn i feel stupid now. this is a good example of useing a command for to long and posting off the top of your head. If i had looked in my books we could have had this done an hour ago. Sorry again for waisting your time.

Last edited by Shrike; 05-08-2002 at 02:39 AM.
 
Old 05-08-2002, 02:49 AM   #14
Shrike
LQ Newbie
 
Registered: May 2002
Location: oregon
Distribution: Slackware (normally)
Posts: 21

Rep: Reputation: 15
so to fix my error:

step 1

"bunzip2 MPlayer-0.90pre3.tar.bz2"

this will give you: MPlayer-0.90pre3.tar

step 2

"tar xvf MPlayer-0.90pre3.tar"

this will untar the program

step 3
cd to the new file/directory
read the readme files.

step 4
if the readme doesnt include a install read me.

usually this does it:

# ./configure [ENTER]
# make [ENTER]
# make install [ENTER]

I just did all this on the same file you are useing and it worked out fine for me.
 
Old 05-08-2002, 02:53 AM   #15
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
mplayer is a cunky bit of software with lots of options, its a very very very very (add some more verys) good idea to:

(a) Read the manual before compiling
(b) Examing the output of ./configure very carefully

The manual can be found in the ./DOCS/ subdirectory.
 
  


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
[SuSE] Mplayer won't compile Harkov Linux - Software 14 01-16-2005 06:23 AM
Mplayer Compile Error oxleyk Slackware 9 12-13-2004 10:42 AM
mplayer compile problem hkl8324 Fedora 7 08-11-2004 03:42 PM
compile mplayer from source shanenin Linux - Software 2 09-21-2003 02:38 PM
MPlayer-0.90pre8 compile pixelV Linux - Software 1 12-28-2002 02:50 PM


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