LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-22-2013, 07:04 PM   #1
racerdog
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Rep: Reputation: Disabled
Trouble installing libxcb for Xorg


I'm working my way through installing Xorg-7.7 in LFS 7.3.
While installing libxcb-1.9.1 make fails with:

Code:
Making all in src
make[1]: Entering directory `/sources/libxcb-1.9.1/src'
/usr/bin/python ./c_client.py -p /usr/lib/python3.3/site-packages /usr/share/xcb/xproto.xml
Traceback (most recent call last):
  File "./c_client.py", line 2, in <module>
    from xml.etree.cElementTree import *
  File "/usr/lib/python2.7/xml/etree/cElementTree.py", line 3, in <module>
    from _elementtree import *
ImportError: No module named _elementtree
make[1]: *** [xproto.c] Error 1
make[1]: Leaving directory `/sources/libxcb-1.9.1/src'
make: *** [all-recursive] Error 1
Both Python 2.7 and Python 3.3 are installed. I had 3.3 but saw that libxcb requires xcb-proto-1.8 which in turn requires Python 2.7.

I'm not totally confident parsing this all out. Looking at the above I thought might try uninstalling one of the Python versions but 1) I don't know how to do that, and 2) I don't know which to remove.
 
Old 07-23-2013, 05:41 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by racerdog View Post
2) I don't know which to remove.
As mentioned on the Python-2.7.5 page:
Quote:
This version is for backward compatibility with other dependent packages.
Removing Python 3.3.2 would seem the logical choice.

Quote:
Originally Posted by racerdog View Post
1) I don't know how to do that
Assuming you used the Python-3.3.2 build instructions: Have a look at the Contents part at the bottom of the page, this mentions what is installed and where it is installed. Which seems like a good starting point to remove it.

Quote:
Originally Posted by racerdog View Post
2) I don't know which to remove.
But before you start removing things: Are you sure you followed the build instructions to the letter and installed/configured all the mentioned dependencies correctly?
 
Old 07-23-2013, 06:36 AM   #3
racerdog
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for the reply -
Quote:
Removing Python 3.3.2 would seem the logical choice.
Well, thing blow up in the 2.7.5 file /usr/lib/python2.7/xml/etree/cElementTree.py. There is, in fact, "no module named _elementtree." The correcponding part of 3.3.2 does not try to load _elmenttree but uses a differently-named module.

Quote:
But before you start removing things: Are you sure you followed the build instructions to the letter and installed/configured all the mentioned dependencies correctly?
This Xorg section of BLFS where I'm following does have a bit to to-ing and fro-ing to catch dependencies - it can't just be followed in order. So I'll probably roll back to a backup from before I started Xorg and try again (isn't backup grand?).

I tossed this question out there on the chance that someone had seen something similar.

I can do that today so I'll leave this thread open for a bit more.

Last edited by racerdog; 07-23-2013 at 06:37 AM.
 
Old 07-23-2013, 07:00 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Looking at the Required Dependencies, these need to be installed in the given order:

- pkg-config-0.28
- libffi-3.0.13
- Expat-2.1.0
- Python-2.7.5
- libxml2-2.9.1
- libxslt-1.1.28
- util-macros-1.17
- Xorg Protocol Headers
- libXau-1.0.8
- libXdmcp-1.1.1
- xcb-proto-1.8

And finally:

- libxcb-1.9.1

The xcb-proto-1.8 chapter mentions that either python 2.7.5 or python 3.3.2 can be installed, but the libxml2-2.9.1 chapter only mentions python 2.7.5.
 
Old 07-23-2013, 11:06 AM   #5
racerdog
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
I removed both python versions and retraced somem steps and it looks like broken bit of python was OK after I re-installed libxml2-2.9.1 & libxml2-2.9.1. Dunno what ever went wrong but things are looking better now.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Trouble running awesomewm libxcb-aux.so.0?! Gumboherpy Slackware 6 03-03-2013 11:31 AM
[SOLVED] problem with installing libxcb devilboy09 Linux From Scratch 6 12-02-2011 03:37 AM
having trouble installing xorg on freebsd 8.0 tconnors123 Linux - Software 3 05-03-2010 10:27 PM
Cinelerra on 12.1 - libXCB erickFis Slackware 0 06-09-2008 01:23 PM
xorg-x11-libxcb Java fix for BOINC etc.... Found Bug fixed but where do I get it rundarm Fedora 4 12-10-2007 04:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration