WebFaction
Community site: login faq

I'm trying to install mediagoblin by following the instructions found here. I try to install the first dependency, lxml:

easy_install-2.7 lxml

But I see the following output:

Searching for lxml
Reading https://pypi.python.org/simple/lxml/
Best match: lxml 3.5.0
Downloading https://pypi.python.org/packages/source/l/lxml/lxml-3.5.0.tar.gz#md5=9f0c5f1eb43ff44d5455dab4b4efbe73
Processing lxml-3.5.0.tar.gz
Writing /tmp/easy_install-AIzDIK/lxml-3.5.0/setup.cfg
Running lxml-3.5.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-AIzDIK/lxml-3.5.0/egg-dist-tmp-ZmRuiy
Building lxml version 3.5.0.
Building without Cython.
Using build configuration of libxslt 1.1.17
Minimum required version of libxslt is 1.1.17, found 1.1.23
Building against libxml2/libxslt in the following directory: /usr/lib
In file included from src/lxml/lxml.etree.c:323:
src/lxml/includes/etree_defs.h:19:4: error: #error minimum required version of libxml2 is 2.7.0
src/lxml/includes/etree_defs.h:28:4: error: #error minimum required version of libxslt is 1.1.23
src/lxml/lxml.etree.c: In function ‘__pyx_pf_4lxml_5etree_9XMLParser___init__’:
src/lxml/lxml.etree.c:120833: error: ‘XML_PARSE_HUGE’ undeclared (first use in this function)
src/lxml/lxml.etree.c:120833: error: (Each undeclared identifier is reported only once
src/lxml/lxml.etree.c:120833: error: for each function it appears in.)
src/lxml/lxml.etree.c: In function ‘__pyx_pf_4lxml_5etree_10Schematron_6__call__’:
src/lxml/lxml.etree.c:207074: error: ‘XML_SCHEMATRON_OUT_ERROR’ undeclared (first use in this function)
Compile failed: command 'gcc' failed with exit status 1
error: Setup script exited with error: command 'gcc' failed with exit status 1

The install for flup and virtualenv completed without error.

asked 25 Nov '15, 03:30

tmciver
2328
accept rate: 0%

Since you are on an older server, you will probably need to install an older version of lxml or build it from source (http://lxml.de/build.html). Or we can migrate you to one of our new servers (http://my.webfaction.com/migrate), on which those instructions should work.

(25 Nov '15, 07:43) NickR ♦♦

Try this:

mkdir ~/tmp
export TMPDIR=~/tmp
STATIC_DEPS=true easy_install-2.7 lxml

Setting TMPDIR will ensure that the build can run everything that it needs to run, and setting STATIC_DEPS will tell it to pull in its own libxml2 and libxslt2, instead of using the old versions installed on the server.

permanent link

answered 25 Nov '15, 13:17

seanf
12.2k41836
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×52
×16
×9

question asked: 25 Nov '15, 03:30

question was seen: 3,354 times

last updated: 25 Nov '15, 13:17

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM