Update error update script cannot find Python

HageHosting

Verified User
Joined
Sep 25, 2006
Messages
84
Server is FreeBSD

Trying to make libxml2...
make all-recursive
Making all in include
Making all in libxml
Making all in .
Making all in doc
Making all in devhelp
Making all in examples
Making all in example
Making all in xstc
Making all in python
Making all in .
/usr/local/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -module -avoid-version -o libxml2mod.la -rpath /usr/local/lib/python2.5/site-packages libxml.lo types.lo libxml2-py.lo ../libxml2.la -lutil -lm -lpython2.5
libtool: link: gcc -shared .libs/libxml.o .libs/types.o .libs/libxml2-py.o -Wl,-rpath -Wl,/usr/local/directadmin/custombuild/libxml2-2.7.6/.libs -Wl,-rpath -Wl,/usr/local/lib ../.libs/libxml2.so -lpthread -lz -lutil -lm -lpython2.5 -Wl,-soname -Wl,libxml2mod.so -o .libs/libxml2mod.so
/usr/bin/ld: cannot find -lpython2.5
*** Error code 1

Stop in /usr/local/directadmin/custombuild/libxml2-2.7.6/python.
*** Error code 1

Stop in /usr/local/directadmin/custombuild/libxml2-2.7.6/python.
*** Error code 1

Stop in /usr/local/directadmin/custombuild/libxml2-2.7.6.
*** Error code 1

Stop in /usr/local/directadmin/custombuild/libxml2-2.7.6.

*** The make has failed, do you want to try to make again? (y,n):
 
Is python installed?

cd /usr/ports/lang/python2.5
make install clean
 
I also use FreeBSD 7.2 64. When will we see an upgrade from DirectAdmin so we can update our software?
 
Hello,

Thanks to IT_Architect for reporting this issue to me.
I've added --without-python to the libxml2 configure line which bypasses the error. The reasons it didn't show up on our build system is because python is not installed at all, so libxml2 decided not to include it at all. If the python binaries are avaiable, then I'm guessing it assumes the headers and libraries are also there, which isn't true, hence the error.

I've updated both custombuild 1.1 and 1.2 with the --without-pyton option, so doing a "./build update" will get you the new code.

John
 
Back
Top