Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-17-2010, 07:44 PM   #1
LQ Newbie
Registered: May 2010
Location: Chicago
Distribution: UbuntuStudio 10.10, Arch
Posts: 10

Rep: Reputation: 0
How do I compile dev packages? (specifically python-dev)

I just compiled python 2.6.5 from source. I also need the python C header files, which would normally be easy to get but I'm on day one of my migration to Slackware so I don't know how to go about getting them. I'd like to compile them myself if possible.

Last edited by Axelman0; 05-17-2010 at 11:34 PM.
Old 05-17-2010, 10:15 PM   #2
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 111Reputation: 111
You don't. the -dev packages are designed to go with the other packages of the same version. That is, if you install python and want to compile something that uses python's libs, you must install the same version python-dev from the repository.

If you are upgrading to an unsupported and conflicting version of python, you must uninstall any python currently on your system and compile your new version from source.

A -dev package are the header files removed from the main packaged to save a few mega bytes of data. Honestly, this system that popular distros insist on doing only cause confusion and irritation from those that want to compile their own software. In Slackware, the header files are included in the main package and there are no -dev pacakges because they are not needed.

But because of your distro, if you want to compile python from source, you will now have to install the -dev pacakges of everything python depends on. Good luck with that.

BTW, how much storage space are these distros saving you at the cost of your sanity? only about 300M. Yes. on your 80gig+ hard drive, they save you 300M at the cost of your sanity when trying to compile your own software.

Also, Python is one of those things you probably shouldn't update from source without good cause. It's really best to use the packages in your official repository.
Other things you should never think of updating are gnome, gnome libs, kde, kde libs, gtk, qt, tool chain (compiler and other tools), and the kernel because the major players (tool chain) and ancillary modules are based off that kernel supported by your distro

Last edited by lumak; 05-17-2010 at 10:20 PM.
Old 05-17-2010, 11:09 PM   #3
Senior Member
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
and the kernel because the major players (tool chain) and ancillary modules are based off that kernel supported by your distro
This again is because distros are doing exactly what kernel devs tell them not to. Using unsanitized headers from the kernel......

I manually update my kernel via compile all the time and it never breaks any of my tool chain (because its not supposed to when done correctly).
Old 05-17-2010, 11:33 PM   #4
LQ Newbie
Registered: May 2010
Location: Chicago
Distribution: UbuntuStudio 10.10, Arch
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you for the explanation lumak. I've just moved to Slackware from Ubuntu so alot of this stuff is new to me. I compiled the production version of python (2.6.5) mostly for fun, since I hadn't compiled anything in my new setup yet and I knew I'd be using Python (Slackware 13 had came with a slightly older version). Not having to worry about dev packages anymore will make things much simpler.


compile, dev, python, source

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
pseudo terminals: /dev/ptmx <-> /dev/pts/ vs. /dev/ptyp <-> /dev/ttyp rtspitz Linux - Software 2 12-02-2011 03:07 PM
OpenSUSE x86_64 does not mount /dev/tape (or /dev/st0 or /dev/nst0) yankeeinga Linux - Newbie 6 08-21-2008 01:51 PM
using flash drive changes device /dev/sr0 to /dev/sr1 for mapping to /dev/pktcdvd/0? lugoteehalt Linux - Software 3 10-24-2007 11:27 AM
/dev/audio, /dev/dsp and /dev/mixer missing in Debian Etch 1337_penguin Debian 2 04-11-2007 12:33 PM
I cannot access EITHER CD drive! And there's no /dev/hdc or /dev/hdd or /dev/cdrom! Dmalic Linux - Hardware 13 11-18-2005 08:11 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration