On Tue, 18 May 2010 15:20:57 +0200 Stefan Behnel wrote:
xyz, 18.05.2010 15:07:
On Tue, 18 May 2010 14:48:47 +0200 Stefan Behnel wrote:
xyz wrote:
$ python setup.py install --with-xml2-config=/home/mit/bin/libxml2/bin/xml2-config --with-xslt-config=/home/mit/bin/libxslt/bin/xslt-config
Try passing the --auto-rpath option. Or, even better, use --static-deps=true.
How can I use --static-deps=true. Could give me an example please?
$ python setup.py install --static-deps
Unfortunately it did not work for me with the following commands: $python setup.py install --static-deps Building lxml version 2.2.6. Traceback (most recent call last): File "setup.py", line 119, in <module> STATIC_CFLAGS, STATIC_BINARIES), File "/home/mit/temp/lxml-2.2.6/setupinfo.py", line 50, in ext_modules libxslt_version=OPTION_LIBXSLT_VERSION) File "/home/mit/temp/lxml-2.2.6/buildlibxml.py", line 170, in build_libxml2xslt libxml2_dir = unpack_tarball(download_libxml2(download_dir, libxml2_version), build_dir) File "/home/mit/temp/lxml-2.2.6/buildlibxml.py", line 36, in download_libxml2 version_re, filename, version=version) File "/home/mit/temp/lxml-2.2.6/buildlibxml.py", line 49, in download_library fns = ftp_listdir(location) File "/home/mit/temp/lxml-2.2.6/buildlibxml.py", line 20, in ftp_listdir server = ftplib.FTP(netloc) File "/home/mit/programs/python/lib/python2.6/ftplib.py", line 116, in __init__ self.connect(host) File "/home/mit/programs/python/lib/python2.6/ftplib.py", line 134, in connect self.welcome = self.getresp() File "/home/mit/programs/python/lib/python2.6/ftplib.py", line 209, in getresp resp = self.getmultiline() File "/home/mit/programs/python/lib/python2.6/ftplib.py", line 195, in getmultiline line = self.getline() File "/home/mit/programs/python/lib/python2.6/ftplib.py", line 182, in getline line = self.file.readline() File "/home/mit/programs/python/lib/python2.6/socket.py", line 406, in readline data = self._sock.recv(self._rbufsize) ----------------------------- $ python setup.py install --static-deps=true Building lxml version 2.2.6. NOTE: Trying to build without Cython, pre-generated 'src/lxml/lxml.etree.c' needs to be available. Using build configuration of libxslt 1.1.17 Building against libxml2/libxslt in the following directory: /usr/lib64 usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: option --static-deps not recognized ----------------------------- $python setup.py install --static-deps --with-xml2-config=/home/mit/bin/libxml2/bin/xml2-config --with-xslt-config=/home/mit/bin/libxslt/bin/xslt-config Building lxml version 2.2.6. Traceback (most recent call last): File "setup.py", line 119, in <module> STATIC_CFLAGS, STATIC_BINARIES), File "/home/mit/temp/lxml-2.2.6/setupinfo.py", line 50, in ext_modules libxslt_version=OPTION_LIBXSLT_VERSION) File "/home/mit/temp/lxml-2.2.6/buildlibxml.py", line 170, in build_libxml2xslt libxml2_dir = unpack_tarball(download_libxml2(download_dir, libxml2_version), build_dir) File "/home/mit/temp/lxml-2.2.6/buildlibxml.py", line 36, in download_libxml2 version_re, filename, version=version) File "/home/mit/temp/lxml-2.2.6/buildlibxml.py", line 49, in download_library fns = ftp_listdir(location) File "/home/mit/temp/lxml-2.2.6/buildlibxml.py", line 20, in ftp_listdir server = ftplib.FTP(netloc) File "/home/mit/programs/python/lib/python2.6/ftplib.py", line 116, in __init__ self.connect(host) File "/home/mit/programs/python/lib/python2.6/ftplib.py", line 134, in connect self.welcome = self.getresp() File "/home/mit/programs/python/lib/python2.6/ftplib.py", line 209, in getresp resp = self.getmultiline() File "/home/mit/programs/python/lib/python2.6/ftplib.py", line 195, in getmultiline line = self.getline() File "/home/mit/programs/python/lib/python2.6/ftplib.py", line 182, in getline line = self.file.readline() File "/home/mit/programs/python/lib/python2.6/socket.py", line 406, in readline data = self._sock.recv(self._rbufsize) socket.error: [Errno 104] Connection reset by peer What did I wrong?