On Sat, Jul 21, 2012 at 12:25 AM, Rodrigo Rivas <rodrigorivascosta@gmail.com
wrote:
On Fri, Jul 20, 2012 at 8:32 PM, Christian Hesse <list@eworm.de> wrote:
Hello everybody,
I am creating live media and want to reduce size. After removing /usr/include/ wicd fails to start because of a missing header file.
Do you know which one is trying to read? If not, you could try running it with `strace` to see what it is looking for:
Replying to myself, the file it reads is `/usr/include/python2.7/pyconfig.h` (for python2). You can see the relevant code in the deeps of the initialization routines of the python library, sysconfig.py: # load the installed pyconfig.h: config_h = get_config_h_filename() try: with open(config_h) as f: parse_config_h(f, vars) except IOError, e: msg = "invalid Python installation: unable to open %s" % config_h if hasattr(e, "strerror"): msg = msg + " (%s)" % e.strerror raise IOError(msg) It seems to be used to discover the configuration of the current python installation. Just copying this file to your live media should be enough to make it happy. Or alternatively, you might modify the sysconfig.py to read the file from other place (`/usr/lib/python2.7` for example). -- Rodrigo