Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: how to compile pygtk in python2.7?

18 views
Skip to first unread message

Benjamin Kaplan

unread,
Jul 8, 2012, 1:10:32 AM7/8/12
to pytho...@python.org
On Sat, Jul 7, 2012 at 9:47 PM, contro opinion <contro...@gmail.com> wrote:
> 1.download pygtk
>
> 2.cd /home/tiger/pygtk-2.24.0
>
> 3.PYTHON=/usr/bin/python2.7 ./configure --prefix=/usr
> 4. make
> 5. make install
>
> tiger@ocean:~$ python2.7
> Python 2.7.3 (default, Jul 1 2012, 14:13:18)
> [GCC 4.4.5] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import gtk
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named gtk
>>>>
>
> i can't compile pygtk in python2.7,how to compile it?
>
> --

What is the output of make and make install? Does it compile
successfully, or is there an error? Does the current user have
permission to write to /usr?

You haven't given us enough information to figure out what's going on?

Chris Angelico

unread,
Jul 8, 2012, 1:44:56 AM7/8/12
to pytho...@python.org
On Sun, Jul 8, 2012 at 2:47 PM, contro opinion <contro...@gmail.com> wrote:
> 3.PYTHON=/usr/bin/python2.7 ./configure --prefix=/usr
> 4. make
> 5. make install

What happened when you typed these commands? Were there failure
messages? As Benjamine suggested, do you need to become root to
install?

ChrisA

Chris Angelico

unread,
Jul 8, 2012, 4:28:58 AM7/8/12
to pytho...@python.org
On Sun, Jul 8, 2012 at 6:26 PM, contro opinion <contro...@gmail.com> wrote:
> it's so strange
> when i input
> hisroty
>
> 506 cd /home/tiger/pygtk-2.24.0
> 507 PYTHON=/usr/local/bin/python2.7 ./configure --prefix=/usr
> 508 echo $? #i get 0 ,it means success??
> 509 make
> 510 echo $? #i get 0 ,it means success??
> 511 make install
> 512 echo $? #i get 0 ,it means success??
>
> no wrong output can see .

Any output at all? Normally configure and make will produce long
screeds. If they didn't, that's wrong output.

ChrisA
0 new messages