[lxml-dev] [Fwd: [Ian Bicking: a blog] Comment: "lxml: an underappreciated web scraping library"]

Ian Bicking ianb at colorstudy.com
Fri Dec 12 18:18:18 CET 2008


Any ideas on this guy's installation issues?

-------- Original Message -------

New comment on your post #85 "lxml: an underappreciated web scraping 
library"
Author : john aman

Thanks to all.

@Ian, @Tres:  The first real problem? My stupidity. python2.5-dev not 
installed.  I should have landed here much sooner but for Ubuntu makes 
installing packages so damn easy.  2nd problem - running at 64 bit is a 
bit like warp speed to this MSDOS 2.0 old timer.  Years of DOS and 
windoze development may also have corrupted my neural network.  Now I 
get to this:


	(env)john at ibex:~$ STATIC_DEPS=true easy_install 'lxml>=2.2alpha1'
	...
	Downloading libxslt into libs/libxslt-1.1.24.tar.gz
	Unpacking libxslt-1.1.24.tar.gz into build/tmp
	Running "./configure --without-python --disable-dependency-tracking 
--disable-shared 
--prefix=/tmp/easy_install-Am4yKQ/lxml-2.2alpha1/build/tmp/libxml2" in 
build/tmp/libxml2-2.7.2
	checking build system type... x86_64-unknown-linux-gnu
	checking host system type... x86_64-unknown-linux-gnu
	...

	lxml-2.2alpha1/build/tmp/libxml2/lib/pkgconfig"
	 /usr/bin/install -c -m 644 'libxslt.pc' 
'/tmp/easy_install-6H0Ks9/lxml-2.2alpha1/build/tmp/libxml2/lib/pkgconfig/libxslt.pc'
	 /usr/bin/install -c -m 644 'libexslt.pc' 
'/tmp/easy_install-6H0Ks9/lxml-2.2alpha1/build/tmp/libxml2/lib/pkgconfig/libexslt.pc'
	make[2]: Leaving directory 
`/tmp/easy_install-6H0Ks9/lxml-2.2alpha1/build/tmp/libxslt-1.1.24'
	make[1]: Leaving directory 
`/tmp/easy_install-6H0Ks9/lxml-2.2alpha1/build/tmp/libxslt-1.1.24'
	NOTE: Trying to build without Cython, pre-generated 
'src/lxml/lxml.etree.c' needs to be available.
	Using build configuration of libxml2 2.7.2 and libxslt 1.1.24
	Building against libxml2/libxslt in the following directory: 
/tmp/easy_install-6H0Ks9/lxml-2.2alpha1/build/tmp/libxml2/lib
	************************
	/usr/bin/ld: 
/tmp/easy_install-6H0Ks9/lxml-2.2alpha1/build/tmp/libxml2/lib/libexslt.a(exslt.o): 
relocation R_X86_64_32 against `a local symbol' can not be used when 
making a shared object; recompile with -fPIC
	************************
	/tmp/easy_install-6H0Ks9/lxml-2.2alpha1/build/tmp/libxml2/lib/libexslt.a: 
could not read symbols: Bad value
	collect2: ld returned 1 exit status
	error: Setup script exited with error: command 'gcc' failed with exit 
status 1

where error is marked ***********

It seems the linker is failing to link exslt.o into libexslt.a:
(exslt.o): relocation R_X86_64_32 against `a local symbol' can not be 
used when making a shared object; recompile with -fPIC

Oh, did I mention I'm new to 64 bit OS?  Perhaps someone can point out 
how to do all the steps the wget/tar/.configure/make way.  Too old to 
try to figure out something so easy_install._  Not knocking easy_install 
- this is a first time failure for me with that program.



More information about the lxml-dev mailing list