[lxml-dev] Ubuntu Installation Woes
Hi, I've been trying to install lxml 2.1 for days and it seems nothing I've tried works. gcc keeps giving me a enormous amount of errors and I've installed libxml2, libxml2-dev, libxslt1.1, and libxslt1-dev (all form the Ubuntu repository) and it seems nothing works. http://ubuntuforums.org/showthread.php?p=5452334 has more info about all I've done. Any help would be greatly appreciated, I'm working on a project which heavily relies on lxml.
Hi, Richard Alex Hofer wrote:
I've been trying to install lxml 2.1 for days and it seems nothing I've tried works. gcc keeps giving me a enormous amount of errors and I've installed libxml2, libxml2-dev, libxslt1.1, and libxslt1-dev (all form the Ubuntu repository) and it seems nothing works. http://ubuntuforums.org/showthread.php?p=5452334 has more info about all I've done. Any help would be greatly appreciated, I'm working on a project which heavily relies on lxml.
I'm developing lxml on Ubuntu (Gutsy), so I'm pretty sure this works in general. Your error log wasn't complete and didn't show the beginning of the output. Could you append a complete log to the forum page? Try easy_install lxml 2>&1 | tee install.log that will leave the complete output in a file install.log. Stefan
Thanks a bunch for the advice. I had assumed the problem had to do with gcc and that there where so many errors that you only needed the end of the log. Once I got the full log I realized I was missing the python-dev package *smacks head*, once I installed it everything worked. Thanks a bunch :D On Fri, 2008-07-25 at 09:48 +0200, Stefan Behnel wrote:
Hi,
Richard Alex Hofer wrote:
I've been trying to install lxml 2.1 for days and it seems nothing I've tried works. gcc keeps giving me a enormous amount of errors and I've installed libxml2, libxml2-dev, libxslt1.1, and libxslt1-dev (all form the Ubuntu repository) and it seems nothing works. http://ubuntuforums.org/showthread.php?p=5452334 has more info about all I've done. Any help would be greatly appreciated, I'm working on a project which heavily relies on lxml.
I'm developing lxml on Ubuntu (Gutsy), so I'm pretty sure this works in general.
Your error log wasn't complete and didn't show the beginning of the output. Could you append a complete log to the forum page? Try
easy_install lxml 2>&1 | tee install.log
that will leave the complete output in a file install.log.
Stefan
On Fri, Jul 25, 2008 at 06:43:45AM -0400, Richard Alex Hofer wrote:
Thanks a bunch for the advice. I had assumed the problem had to do with gcc and that there where so many errors that you only needed the end of the log.
With gcc errors usually you need the start of the log. A trick for getting all the build dependencies of some package that has a (older, presumably) version in Ubuntu is to run sudo apt-get build-dep python-lxml before you start your own build. Marius Gedminas -- This is, or so I'm told, a classic book. I can see why. It is long and it requires a great effort to finish it. If you go through a great effort to suffer for a long time, you are allowed to sneer at people who can't be bothered. That's the surest sign of classic art. -- Lars Wirzenius
That's what puzzles me, I installed python-lxml, then removed it (but did nothing to remove the dependencies), and it still wouldn't let me build it. I'm guessing it's because the current version in the Ubuntu repository is very old. On Fri, 2008-07-25 at 13:53 +0300, Marius Gedminas wrote:
On Fri, Jul 25, 2008 at 06:43:45AM -0400, Richard Alex Hofer wrote:
Thanks a bunch for the advice. I had assumed the problem had to do with gcc and that there where so many errors that you only needed the end of the log.
With gcc errors usually you need the start of the log.
A trick for getting all the build dependencies of some package that has a (older, presumably) version in Ubuntu is to run
sudo apt-get build-dep python-lxml
before you start your own build.
Marius Gedminas _______________________________________________ lxml-dev mailing list lxml-dev@codespeak.net http://codespeak.net/mailman/listinfo/lxml-dev
Hi, Richard Alex Hofer wrote:
On Fri, 2008-07-25 at 13:53 +0300, Marius Gedminas wrote:
A trick for getting all the build dependencies of some package that has a (older, presumably) version in Ubuntu is to run
sudo apt-get build-dep python-lxml
before you start your own build.
That's what puzzles me, I installed python-lxml, then removed it (but did nothing to remove the dependencies), and it still wouldn't let me build it. I'm guessing it's because the current version in the Ubuntu repository is very old.
not having python-dev as a dependency is pretty unlikely, though. Stefan
I have source packages enabled too, so I was not sure which one I was using. I guess it must have been using a binary package. On Fri, 2008-07-25 at 13:06 +0200, Stefan Behnel wrote:
Hi,
reading your post again...
Richard Alex Hofer wrote:
That's what puzzles me, I installed python-lxml, then removed it (but did nothing to remove the dependencies)
The -dev packages are obviously not a dependency of the binary package.
Stefan
On Fri, Jul 25, 2008 at 06:56:16AM -0400, Richard Alex Hofer wrote:
That's what puzzles me, I installed python-lxml, then removed it (but did nothing to remove the dependencies), and it still wouldn't let me build it. I'm guessing it's because the current version in the Ubuntu repository is very old.
There's a difference between dependencies and build-dependencies. mg@platonas:~ $ apt-cache show python-lxml|grep Depends Depends: libc6 (>= 2.7-1), libxml2 (>= 2.6.27), libxslt1.1 (>= 1.1.20), python (>= 2.4), python (<< 2.6), python-central (>= 0.5.8), zlib1g (>= 1:1.2.3.3.dfsg-1) mg@platonas:~ $ apt-cache showsrc python-lxml|grep Depends Build-Depends: debhelper (>= 5.0.37.1), libxml2-dev, libxslt1-dev, python-all-dbg, python-all-dev (>= 2.3.5-9), python-central (>= 0.4.17), python-pyrex (>= 0.9.4.1-1), python-setuptools (>= 0.6b3), zlib1g-dev Marius Gedminas -- Programs that write programs are the happiest programs in the world. -- Andrew Hume
participants (3)
-
Marius Gedminas -
Richard Alex Hofer -
Stefan Behnel