From: Alexander B. <le...@st...> - 2005-11-22 16:57:33
|
Hi! When compiling bacula with python using --with-python=path, path has to be a base directory which contains both the include and lib directories. However, when installing python via RPM (e.g. python24-2.4.1-2_8.rhfc3.at and python24-devel-2.4.1-2_8.rhfc3.at from ATrpms), headers are installed in /usr/include/python2.X and libraries in /usr/lib/python2.4, so specifying a path to the --with-python option will fail. On the other hand, --with-python without path fails to detect the correct python libraries and includes suitable for the python binary if more than one python version is installed. Maybe specifying --with-python=python2.4 that sets PYTHON_INCDIR to "-I$prefix/include/$withval" and PYTHON_LIBS to "-L$prefix/lib/$withval/config -lpython" would be a solution... See http://docs.python.org/lib/module-sys.html (search for the description of the prefix attribute) I've attached a patch that should do this job. Btw: I think the "bacula.8.gz" man-page in scripts/Makefile should be installed in $(DESTDIR)$(mandir)/man8/bacula.8.gz instead of $(DESTDIR)$(mandir)/bacula.8.gz Cheers, --leo -- ----------------------------------------------------------------------- Ale...@wu... Fax: +43-1-31336-906050 Zentrum fuer Informatikdienste - Wirtschaftsuniversitaet Wien - Austria |