If I choose to install Python by typing:
apt-get install python3.1 python-dev
Are there any differences between compiling and installing from source?
Would the source code include everything in python-dev?
|
If I choose to install Python by typing:
Are there any differences between compiling and installing from source? Would the source code include everything in |
||||
|
|
Compiling the package with just the installation parameters you need can help tailor it to your exact needs, for example using experimental features disabled by default. However, if the package has many installation parameters, you will need to choose a good and viable parameters set. Normally, documentation is lacking about these parameters, so it is easy enough to end up with non-viable software. If the compiled software does not work, you will need to ask for help from the developers. However, they will not normally fix non-standard compilations. Conclusion: Compiling from source has its advantages, but if problems occur you are on your own. The apt-get package will, on the other hand, almost always work as well as it can. |
|||
|
|
|
The packages have been designed to play nice with the other packages and with the general behavior of the distro. Any compatibility issues with self-compiled software is your problem. |
|||||||||||||
|
|
The source should contain the python static library which, as I understand it, is what the python-dev package is. Make sure that the "include" directory is set up in your compiler options. In my experience it's best to use apt-get first. If problems arise (relatively unlikely, depends on how much you like tinkering with your system) start looking at compiling from source. |
|||
|
|
|
Installing via apt-get will give you the version supported by your distro. The benefits are ease of installation and you can easily get security updates via apt-get update/upgrade. Installing from source may give you more control over what options are enabled in Python and ensures you get the version you want (not all distros provide the "latest and greatest"). However, there is no simple mechanism for getting security updates for your install. |
|||
|
|
|
The difference between downloading a pre-configured package and compiling from source is this: Pre-Configurated Package: This package is intended for most users. It is designed to work well with most packages, and does not require any extra libraries for compiling. Compiled from Source: This package is meant for systems with very customized options. Most importantly, either a custom kernel or custom x-servers/system commands. It is for the more experienced user, but is much more likely to fit any setup, as it is compiled to your system's specs. |
|||
|
|