LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 11-18-2004, 08:05 AM   #1
ungua
Member
 
Registered: Oct 2004
Location: bergen, norway
Distribution: OpenSuSe (SuSe 10.1), Win XP Pro
Posts: 539

Rep: Reputation: 30
compiling files from .tar.gz


i have struggeled even since i switched to linux with these files. i have no idea how to install their content. actually, i want to find a network-game, either strategy or 3d shooter, to play against my roommate over the internet. he uses windows, i don't have windows at all since i lack a code to install it.

when i find those files, i read things like this:
Quote:
(You will need the SDL (Simple DirectMedia Layer) runtime and SDL_mixer library installed (http://www.libsdl.org/)
unfortunately, i don't understand a word of the tutorials about this issue. is there anyone who knows a place where it is explained easily? maybe in here already?

best regards
ungua; and if you know a game i might be able to run after download or install it through yast or something, please tell me, too...
 
Old 11-18-2004, 08:23 AM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
yep. You probably need SDL.
You may download it in tar.gz format from there ?

It's really easy. Open a console, go to the folder where
the tar.gz file is and then do

tar -xvzf <filename>.tar.gz
to uncompress this.
read the instalation notes, its probably in a file called INSTALL or README:
less INSTALL
or
less README.
(navigate with the arrows, UP,DOWN, and press q to quit)
In most cases all you need to do is:
Code:
./configure
make
su
make install
exit
su is for getting a root console, for installing
exit is for leaving root console.

That's all.
 
Old 11-18-2004, 08:30 AM   #3
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
...and since you are using SuSE, you might want to install the SDL rpm packages instead of compiling the sources (the SDL_mixer is there, I am not sure about the runtime libraries, but I guess the SDL and SDL-devel packages will be fine)
 
Old 11-18-2004, 04:17 PM   #4
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
But it's always better to compile the programs by your self.
In the tutorials section of LQ forums you will see how to compile programs,
(actually it's more or less what i wrote you before),
AND WHY it is better to compile the programs by yourself.
 
Old 11-19-2004, 02:06 AM   #5
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Quote:
But it's always better to compile the programs by your self.
Hmm, I am not sure if I could sign that for SuSE. My experience is that self-compiled packages cause often trouble. I don't know the reason, but maybe this is because SuSE has slightly different organization. For newbies I would recommend the rpm's anyway.
 
Old 11-19-2004, 06:28 AM   #6
ungua
Member
 
Registered: Oct 2004
Location: bergen, norway
Distribution: OpenSuSe (SuSe 10.1), Win XP Pro
Posts: 539

Original Poster
Rep: Reputation: 30
yes, and i am still very . but i saved your text and have a try as soon as i have som spare time! thank you!

regards
ungua
 
Old 12-04-2004, 01:34 PM   #7
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Quote:
Originally posted by perfect_circle
But it's always better to compile the programs by your self.
In the tutorials section of LQ forums you will see how to compile programs,
(actually it's more or less what i wrote you before),
AND WHY it is better to compile the programs by yourself.
While I appreciate what the tutorial you reference is trying to point out, it's wrong.

When using a "everything but the kitchen sink" distro like redhat, fedora, suse, drake et all, you should use the binary package *first* and compile from source only as a last resort. Here's why ...

You're wanting to play a game. You go grab source for SDL, the game, and all other supporting libraries (libpng is a good example). You carefully go through all the source and install everything and it works. You are happy.

Now move forward a month. You're wanting to update your system, and try out your distro's version of <insert cool software here>. You run the package tool, which connects to the update server and pulls down the software you want to try. It installs it and it segfaults everytime you try to start it up. Why?

Well, if you remember what you had to install for that game a month ago to work (which is unlikely), you recall that you had to install libSDL and libpng from source. The problem is that the package system has no way to know you did that, so when it was installing your latest addition, it installed a different version of libpng. Now neither the new app, nor the game will do anything but crash...

I very much dislike packages, which is why I build *everything* from source on my BSD machines (the ports system rocks). The linux machines though, they all use either yum, or apt-get or whatever to install software. It's a PITA, but nothing compared to the PITA that can happen if you have a mix and match of libraries on your system and don't know how to to strace/ldd your way through the problem.

If the package will work, use it. If it won't get the SRPM (or whatever) and build it the way you want it. If that's not an option, then install from the tarball, but make a note of it for when something blows up (because something likely will). Being able to install from a tarball does not make you a developer, and all this doesn't even bring up the issue of *updating* the software built frmo source ...


ungua -- Your best bet to find the software like that that you need is to use one of the RPM finders available on the net.
 
  


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
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 11:02 AM
how to install .tar.bz and src.rpms and tar.gz files gadekishore Linux - Software 1 10-12-2005 08:09 PM
Compiling tar files xennetwork Linux - Newbie 2 01-26-2005 03:45 AM
How do you install tar/gz files, and rpm files? Fear58 Linux - Software 6 02-14-2004 04:35 PM
cant install .bin files, tar.gz files or anyother format!!! madskillz Linux - Newbie 4 10-05-2003 10:28 AM

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

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