LinuxQuestions.org
Help answer threads with 0 replies.
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 12-02-2011, 01:41 AM   #1
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 351

Rep: Reputation: 7
problem with installing libxcb


well, another error.i'm installing libxcb-1.7, i installed the dependencied and when i'm going to install the package itself, i'm getting this error when i want to make it:
http://pastebin.com/AifN04MB

as you can see i installed the python 3.2.i also tried to execute c_client.py manually, i got the same error.i think there's something wrong with python, right?
 
Old 12-02-2011, 02:23 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Hi,

First google hit: Subject: Re: Python 3.2.2

Solution: Install Python-2.7.2.

Last edited by druuna; 12-02-2011 at 02:32 AM. Reason: removed double word
 
Old 12-02-2011, 02:33 AM   #3
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 351

Original Poster
Rep: Reputation: 7
how should i uninstall python 3.2 ?
 
Old 12-02-2011, 03:08 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Hi,

You don't have to uninstall python 3, you can run them side by side.

Do make sure that after you install python 2 that /usr/bin/python points to /usr/bin/python2.7 and not /usr/bin/python3
 
Old 12-02-2011, 03:29 AM   #5
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 351

Original Poster
Rep: Reputation: 7
i issued this command :
Code:
ln -s /usr/bin/python2.7 /usr/bin/python
and:
Code:
ls /usr/bin/python
0 lrwxrwxrwx 1 root root 18 Dec 2 12:54 /usr/bin/python -> /usr/bin/python2.7
and i issued the make command in libxcb directory :
Code:
Making all in src
make[1]:Entering directory '/sources/libxcb-1.7/src'
/bin/python ./c_client.py -p /usr/lib/python3.2/site-packages /usr/share/xcb/xproto.xml
    File "./c_client.py" line 1013
     except getopt.GetoptError, err:    
                              ^
syntaxError: invalid syntax
make[1]: *** [xproto.c] Error 1
make[1]: Leaving directory '/sources/libxcb-1.7/src'
make: *** [all-recursive] Error 1
it seems it's still refering to python 3
 
Old 12-02-2011, 03:36 AM   #6
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 351

Original Poster
Rep: Reputation: 7
there was a file named python in /bin directory.i deleted it, linked the /usr/bin/python to /bin/python and problem solved.
thank you for your help.

Last edited by devilboy09; 12-02-2011 at 03:42 AM.
 
Old 12-02-2011, 03:37 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Hi,

Am I right to assume you did _not_ remove the libxcb source directory and start fresh? Redo libxcb-1.7 from step 1 (unpacking the libxcb-1.7.tar.bz2 package).

PS: Removing your post after posting might lead to strange looking answers. Please leave the original text netx time and add to the bottom of the post.

Last edited by druuna; 12-02-2011 at 03:40 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installing Simplescalar: Problem installing simpleutils yy_current_buffer’ undeclared niteshg Linux - Software 1 07-03-2009 04:09 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
libxcb-xlib.so.0 and Beryl davidguygc Slackware 3 05-06-2007 10:49 AM
Xlib Libxcb Lenny Opera chas Debian 0 05-05-2007 01:46 PM


All times are GMT -5. The time now is 11:44 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration