[XML-SIG] Problems Building PyXML
Daniel Graham
Daniel Graham <daniel.graham@duke.edu>
Wed, 10 May 2000 08:22:32 -0400 (EDT)
Hi,
I've run into a problem with both PyXML-0.5.3 and PyXML-0.5.4 on my
linux box (RedHat 6.1). The output from "python setup.py build" for
each follows. I'm a newcomer to python (but already love it) and not
much of a hand at c and would greatly appreciate any pointers you
might give me.
################ PyXML-0.5.3 ###################
rm -f *.o *~
rm -f `find . -name '*.pyc'`
rm -f `find . -name '*.o'`
rm -f `find . -name '*~'`
cd expat ; make clean
make[1]: Entering directory `/usr/local/PyXML-0.5.3/extensions/expat'
rm -f xmltok/xmltok.o xmltok/xmlrole.o xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlparse/xmlparse.o xmlparse/hashtable.o xmlwf/unixfilemap.o xmlwf/xmlwf
make[1]: Leaving directory `/usr/local/PyXML-0.5.3/extensions/expat'
rm -f *.a tags TAGS config.c Makefile.pre python sedscript
rm -f *.so *.sl so_locations
cd expat ; make clobber
make[1]: Entering directory `/usr/local/PyXML-0.5.3/extensions/expat'
rm -f xmltok/xmltok.o xmltok/xmlrole.o xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlparse/xmlparse.o xmlparse/hashtable.o xmlwf/unixfilemap.o xmlwf/xmlwf
rm -f libexpat.a
make[1]: Leaving directory `/usr/local/PyXML-0.5.3/extensions/expat'
VERSION=`python -c "import sys; print sys.version[:3]"`; \
installdir=`python -c "import sys; print sys.prefix"`; \
exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \
make -f ./Makefile.pre.in VPATH=. srcdir=. \
VERSION=$VERSION \
installdir=$installdir \
exec_installdir=$exec_installdir \
Makefile
make[1]: Entering directory `/usr/local/PyXML-0.5.3/extensions'
make[1]: *** No rule to make target `/usr/lib/python1.5/config/Makefile', needed by `sedscript'. Stop.
make[1]: Leaving directory `/usr/local/PyXML-0.5.3/extensions'
make: *** [boot] Error 2
make: *** No targets. Stop.
Executing 'build' action...
Running command: make -f Makefile.pre.in boot
Running command: make
Traceback (innermost last):
File "setup.py", line 173, in ?
func()
File "setup.py", line 143, in build_unix
shutil.copy('extensions/' + filename, 'build/xml/parsers/')
File "/usr/lib/python1.5/shutil.py", line 52, in copy
copyfile(src, dst)
File "/usr/lib/python1.5/shutil.py", line 17, in copyfile
fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory: 'extensions/pyexpat.so'
################ PyXML-0.5.4 ###################
rm -f *.o *~
rm -f `find . -name '*.pyc'`
rm -f `find . -name '*.o'`
rm -f `find . -name '*~'`
cd expat ; make clean
make[1]: Entering directory `/usr/local/PyXML-0.5.4/extensions/expat'
rm -f xmltok/xmltok.o xmltok/xmlrole.o xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlparse/xmlparse.o xmlparse/hashtable.o xmlwf/unixfilemap.o xmlwf/xmlwf
make[1]: Leaving directory `/usr/local/PyXML-0.5.4/extensions/expat'
rm -f *.a tags TAGS config.c Makefile.pre python sedscript
rm -f *.so *.sl so_locations
cd expat ; make clobber
make[1]: Entering directory `/usr/local/PyXML-0.5.4/extensions/expat'
rm -f xmltok/xmltok.o xmltok/xmlrole.o xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlparse/xmlparse.o xmlparse/hashtable.o xmlwf/unixfilemap.o xmlwf/xmlwf
rm -f libexpat.a
make[1]: Leaving directory `/usr/local/PyXML-0.5.4/extensions/expat'
VERSION=`python -c "import sys; print sys.version[:3]"`; \
installdir=`python -c "import sys; print sys.prefix"`; \
exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \
make -f ./Makefile.pre.in VPATH=. srcdir=. \
VERSION=$VERSION \
installdir=$installdir \
exec_installdir=$exec_installdir \
Makefile
make[1]: Entering directory `/usr/local/PyXML-0.5.4/extensions'
make[1]: *** No rule to make target `/usr/lib/python1.5/config/Makefile', needed by `sedscript'. Stop.
make[1]: Leaving directory `/usr/local/PyXML-0.5.4/extensions'
make: *** [boot] Error 2
make: *** No targets. Stop.
Executing 'build' action...
Running command: make -f Makefile.pre.in boot
Running command: make
Traceback (innermost last):
File "setup.py", line 185, in ?
func()
File "setup.py", line 155, in build_unix
shutil.copy('extensions/' + filename, 'build/xml/parsers/')
File "/usr/lib/python1.5/shutil.py", line 52, in copy
copyfile(src, dst)
File "/usr/lib/python1.5/shutil.py", line 17, in copyfile
fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory: 'extensions/pyexpat.so'
#####################################################
Thanks,
Dan
--
Daniel A. Graham Duke University
Professor and Director Durham NC 27708-0097
of Graduate Studies daniel.graham@duke.edu
Department of Economics (919) 660-1802