LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-16-2008, 12:51 PM   #1
V4Nelle
LQ Newbie
 
Registered: Feb 2008
Location: Greece
Posts: 12

Rep: Reputation: 1
install from source vs .tgz?


hi slackers

yesterday i read a [how to] which help me to configure apache ang php on my computer....i see that the person who write the tutorial didn't use the apache and php from slackware but download the sources of apps and ./configure these alone.i understand why he did it that

BUT i want to ask whats other application its better to install from source with your own configuration?

i see it here
 
Old 04-16-2008, 01:20 PM   #2
rocket357
Member
 
Registered: Mar 2007
Location: 127.0.0.1
Distribution: OpenBSD-CURRENT
Posts: 485
Blog Entries: 187

Rep: Reputation: 74
Personally, I'd say *all* of them...but I'm a Gentoo/FreeBSD fanatic, so I'm biased heh.

Realistically, there are probably only a handful of projects that it makes a major difference if you compile yourself or use a pre-built package (depending on how the package was built, of course). The real bonus to compiling software is that you can configure the software tailored specifically to your system. For "monolithic" distros (Ubuntu, etc...), compiling from source is mostly a waste of time. For the more "hands-on" distros (LFS, Gentoo, etc...), it's pretty much a given that you'll compile it yourself.

Correct me if I'm wrong (I don't claim to know Slackware inside and out), but Slack strikes me as a very versatile "hybrid" distro that balances availability of pre-built packages and the ability to tailor the system to very specific needs (Linux is Linux, but some distros make it easier or more difficult to do certain things...Slackware seems to be a good balance).

Last edited by rocket357; 04-16-2008 at 01:22 PM.
 
Old 04-16-2008, 01:41 PM   #3
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Usually, pre-built packages will be OK, depending on where you get them. In Slackware, if you want to rebuild a package that is included by default, you don't necessarily have to start from scratch. The packages (.tgz packages) included in Slackware were built using SlackBuilds, which are just small scripts that you can run to compile the program and create a nice .tgz package that you can install, upgrade and uninstall with ease using installpkg/upgradepkg/removepkg/pkgtool. If you want to change build options from stock Slackware packages, you can simply change the options in the SlackBuild script. There's a good SlackBuild writing guide here: http://slackwiki.org/Writing_A_SlackBuild_Script

The Slackware sources are located on the installation disc(s) (4, 5 and 6 for the CDs, or just on disc 1, obviously, for the DVD) or from your favourite Slackware mirror (in the source directory). For third-party packages not included in Slackware, my favourite resource is slackbuilds.org, which maintains a database of SlackBuild scripts that have been fairly thoroughly tested and known to work. You can, of course, modify build options there too. Pre-built packages can be found at slacky.eu (which also includes the SlackBuild scripts used to make them) and at linuxpackages.net (which does not always include build scripts. linuxpackages.net has some questionable packages that may not have been created on clean systems and may mess things up; however, generally they're OK, and there are some reputable packagers there that create good packages. You just have to find out which contributors are reputable...).

Compiling programs using the standard `./configure; make; make install` is not the best way to do things, because uninstallation or upgrading the package is tricky or impossible without much effort. Uninstallation would depend on the developer(s) of the program creating a good uninstall script (so you can run `make uninstall` in the source directory). However, this is not always the case, and although it is possible to find out which files were installed and remove them, either manually or with some automation, it is more effort than simply creating a .tgz package in the first place, which allows you to use standard Slackware package management tools.

The advantage to using SlackBuilds is that you always maintain a guide as to how you built the program (what options you enabled, any tricks you had to add to get it to compile, etc.) so that if you ever have to rebuild it or build a newer version, it should be much easier.

Note that there is also src2pkg, which is a nice program that attempts to compile the program automatically with little user intervention (although you can pass options to it) and can create a nice package that you can install/uninstall with ease (it also produces a script that shows how the package was built, although it's not technically a SlackBuild script).
 
Old 04-16-2008, 01:43 PM   #4
Spinlock
Member
 
Registered: Jan 2006
Location: Missouri
Distribution: Slackware -current, Slackware64 -current, Slackware 12.2
Posts: 191

Rep: Reputation: 49
I don't think it's necessarily "better" to compile from source, just "different." If you compile from source, you can often do things that you find non-Slackware-specific howtos for. On the other hand, Pat V. is a smart guy, and I trust him to build all the software that he provides.

I'd say that anytime you want a newer version of software than is available from Pat, or if you want software that isn't available from Pat, then you're probably better off compiling yourself (or using a Slackbuild).
 
Old 04-16-2008, 02:08 PM   #5
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
The only application that I firmly believe cannot be packaged is MPlayer because of the massive number of compile-time options that determine the dependencies of a particular build of MPlayer. TiMidity is a close second for the same reason, but nearly all the libraries that TiMidity could possibly need are already in the stock install, so it's not so bad.
 
Old 04-16-2008, 04:37 PM   #6
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
In general, you should probably build your own package if the available ones don't have the features you want. For instance, if you are building WINE, you may want to have OpenGL support enabled, so you might want to build this yourself. For a media program, you may want to use alsa for sound output and not libao. You may want to build a fluxbox package with imlib2 support (so you can have icons in the root menu) as well. All of these are examples of why you would want to build your own package. And yes, you can build for your processor, but that is probably the least useful thing compared to the other examples I mentioned.

In general, when you build your own package, you know that it will only need the libraries that you have on your machine (otherwise it probably won't build). Somebody else's may not work on your current setup.
 
Old 04-16-2008, 09:26 PM   #7
V4Nelle
LQ Newbie
 
Registered: Feb 2008
Location: Greece
Posts: 12

Original Poster
Rep: Reputation: 1
guys thanks all of you for your reply.....i understand what did you mean......i think .....

my guestion started from these 3 apps....apache,php and mysql......but in finnaly slackware apps and slackbuilds work perfectly

and sorry abou my english
 
  


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
Prefer tgz or source file? Swift&Smart Slackware 30 12-09-2005 08:11 PM
tgz vs. rpm vs. source? Joey.Dale Linux - Distributions 3 01-08-2004 09:02 PM
Installing source and RPM DEB or TGZ nny0000 Linux - General 2 11-20-2003 07:53 PM
tgz files and source nny0000 Slackware 2 11-18-2003 04:18 AM
X Sever crash after xset.tgz & vg16.tgz install lachlan Slackware 0 08-13-2003 02:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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