-
Notifications
You must be signed in to change notification settings - Fork 27
CompilerProblems
Traceback (most recent call last):
File "./setup.py", line 4, in ?
from distutils.core import setup, Extension
ImportError: No module named distutils.core
I've seen this on SuSE, where they split the distutils module into a separate python-devel package which is not installed by default. Personally I think that's a really bad idea, but c'est la vie. To compile Gnofract 4D successfully on SuSE linux, you must have these packages installed beyond the defaults:
- python-devel
- gtk2-devel
- gconf2-devel
- libpng-devel
- libjpeg-devel
- gcc
- gcc-c++
Install those using YaST then try compiling again.
Can't set up. Error running 'pkg-config gconf-2.0 --cflags'.
Package gconf-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gconf-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gconf-2.0' found
Possibly you don't have one of these installed: 'gconf-2.0'.
You need to install the libgconf2-dev package, which is required to build programs which use gconf. Newer versions will still compile if you don't have gconf2-devel, but they will be unable to pick up your browser settings from gconf.
cc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1
You need to install the g++ (sometimes called gcc-c++) package, which is required to build C++ programs.
Gnofract4D contains some optional functionality - the compiled version always contains it, but if you compile it yourself, Gnofract4D will try to detect the things it needs to build that optional functionality. If it can't find it, Gnofract4D will still compile and work (though some unit tests will fail) but won't contain that ability. To fix this, you need to install the right libraries and headers.
The relevant pieces are: 1) PNG headers. The package containing these is usually 'libpng-devel', or 'libpng12-dev'. If you don't have this you can't save to PNG files.
- JPEG headers. The package containing these is usually 'libjpeg-devel' or 'libjpeg62-dev'. If you don't have this you can't sane to JPEG files.
fract4d/c/fract4dmodule.cpp:14:20: error: Python.h: No such file or directory
They are usually in a package called 'python-dev' or similar.
You are missing the package 'pkg-config'. If you are missing this then you may also be missing 'build-essential' which is Canonical's recommended way to install the basic development tools for Ubuntu.