LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-17-2010, 06:44 PM   #1
Axelman0
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 10:34 PM.
 
Old 05-17-2010, 09:15 PM   #2
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 109Reputation: 109
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.

EDIT:
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 09:20 PM.
 
Old 05-17-2010, 10:09 PM   #3
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,485

Rep: Reputation: 66
Quote:
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, 10:33 PM   #4
Axelman0
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.
 
  


Reply

Tags
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 02:07 PM
OpenSUSE x86_64 does not mount /dev/tape (or /dev/st0 or /dev/nst0) yankeeinga Linux - Newbie 6 08-21-2008 12: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 10:27 AM
/dev/audio, /dev/dsp and /dev/mixer missing in Debian Etch 1337_penguin Debian 2 04-11-2007 11:33 AM
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 07:11 PM


All times are GMT -5. The time now is 01:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration