pygtk-kurulum

Başlatan msek, 18 Temmuz 2011 - 11:52:08

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

msek

 Herkese selamlar.

Daha önce yazılmış python kodlarını çalıştırmak için sanırım pygtk'ya ihtiyacım var. Nasıl kurulacağı ve bu konu hakkında bilgilendirmelerinizi bekliyorum.

sem

#1
sudo apt-get install python-gtk2-dev

bu komutu vermeniz gerekiyor diye düşünüyorum..
".NET çemberinden geçen lirisist etkisi bir 'Volcano', bir yüzüm Java bir yüzüm Badalamenti Don Tano"
----------------------------------------------------------------------------------------------------------------------
"Her yer ölüm yine, burası dünya
Derken ölüm bile bu nasıl dünya?
Benden ölüm dile, batıyor gün yine
Burası dünya?

msek

o komutu verdikten sonraki çıktısı şu :


Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-gtk2-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded


PyGTK'nın sitesinden (http://www.pygtk.org) baktığımda linux dağıtımları için http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.24/ adresinden indirilebilecek tar.gz ve tar.bz2 uzantılı iki dosya görüyorum. Bunların ikisinide indirdim. İçerikleri aynı. Sonrasında bu klasörlerin içindeki "README" dosyasına göre "./configure" ardından da "make" ve "make install" yapıyorum fakat şu kodu alıyorum o zaman da :


root@msek:/home/m/Desktop# cd pygtk-2.24.0
root@msek:/home/m/Desktop/pygtk-2.24.0# ls
aclocal.m4             config.sub    MANIFEST.in          pygtk-2.0.pc.in
atk.defs               configure     MAPPING              pygtk-codegen-2.0.in
atkmodule.c            configure.ac  missing              pygtk_postinstall.py
atk.override           COPYING       NEWS                 pygtk.spec
atkrectangle.override  depcomp       pangocairo.defs      pygtk.spec.in
atk-types.defs         docs          pangocairomodule.c   README
AUTHORS                examples      pangocairo.override  README.win32
ChangeLog              gtk           pango.defs           setup.py
ChangeLog.pre-2-0      INSTALL       pangomodule.c        tests
ChangeLog.pre-2-16     install-sh    pango.override       THREADS
ChangeLog.pre-2-6      ltmain.sh     pango-types.defs     TODO
config.guess           m4            PKG-INFO
config.h.in            Makefile.am   PKG-INFO.in
config.h.win32         Makefile.in   py-compile
root@m:/home/m/Desktop/pygtk-2.24.0# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for bind_textdomain_codeset... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for some Win32 platform... no
checking for native Win32... no
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.lt
config.lt: creating libtool
checking for a Python interpreter with version >= 2.3.5... python
checking for python... /usr/bin/python
checking for python version... 2.6
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.6/dist-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.6/dist-packages
checking for headers required to compile python extensions... found
checking for PySignal_SetWakeupFd in Python.h... yes
checking for python module thread... yes
checking whether to enable threading in pygtk... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for GLIB - version >= 2.8.0... yes (version 2.24.1)
checking for PYGOBJECT... no
configure: error: Package requirements (pygobject-2.0 >= 2.21.3) were not met:

Requested 'pygobject-2.0 >= 2.21.3' but version of PyGObject is 2.21.1

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables PYGOBJECT_CFLAGS
and PYGOBJECT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
root@m:/home/m/Desktop/pygtk-2.24.0# make
make: *** No targets specified and no makefile found.  Stop.
root@m:/home/m/Desktop/pygtk-2.24.0# make install
make: *** No rule to make target `install'.  Stop.
root@m:/home/m/Desktop/pygtk-2.24.0#


Aslında ./configure'dan sonra --prefix ile python'un yüklü olduğu yeri belirtmem gerekiyormuş. Onu'da yaptım fakat sanırım python'un yüklü olduğu yeri yanlış yazdım. Bu konuda yardımlarınızı bekliyorum.

sem

Keşke harici dosyaları hiç kurmasaymışsınız. Çünkü gerekli paket yüklü. Eğer ek olarak farklı paketler kurulmasına gerek yoksa şu an zaten Python ile GTK geliştirebilmeniz gerekiyor.

http://forum.ubuntu-tr.net/index.php?topic=18887.0

başlığındaki programı çalıştırdığınızda nasıl bir hata alıyorsunuz? Ya da hata alıyor musunuz?
".NET çemberinden geçen lirisist etkisi bir 'Volcano', bir yüzüm Java bir yüzüm Badalamenti Don Tano"
----------------------------------------------------------------------------------------------------------------------
"Her yer ölüm yine, burası dünya
Derken ölüm bile bu nasıl dünya?
Benden ölüm dile, batıyor gün yine
Burası dünya?

msek

Belirttiğiniz sayfadan Gtk Man.tar.gz dosyasını indirdim ve içindeki "Install" ile kurulumu tamamladım. Her hangi bir sorun almadım. Program düzgün şekilde çalışmakta. Bu durumun getirisi nedir acaba?

sem

Alıntı yapılan: msek - 18 Temmuz 2011 - 11:52:08
Daha önce yazılmış python kodlarını çalıştırmak için sanırım pygtk'ya ihtiyacım var. Nasıl kurulacağı ve bu konu hakkında bilgilendirmelerinizi bekliyorum.

Bu durumda ilgilendiğiniz paketler sizde kurulu demektir. İstediğiniz PyGTK kodlarını çalıştırabilir ve PyGTK geliştirebilirsiniz.
".NET çemberinden geçen lirisist etkisi bir 'Volcano', bir yüzüm Java bir yüzüm Badalamenti Don Tano"
----------------------------------------------------------------------------------------------------------------------
"Her yer ölüm yine, burası dünya
Derken ölüm bile bu nasıl dünya?
Benden ölüm dile, batıyor gün yine
Burası dünya?

msek

Alıntı yapılan: sem0900 - 19 Temmuz 2011 - 10:30:29
Bu durumda ilgilendiğiniz paketler sizde kurulu demektir. İstediğiniz PyGTK kodlarını çalıştırabilir ve PyGTK geliştirebilirsiniz.

Fakat daha önce --PyGTK kurulumunu zaten denedikten sonra-- başka kodları çalıştıramamıştım. Bunun nedeni ne olabilir onu anlamam gerekiyor sanırım. Daha doğrusu .py uzantısına sahip python ile yazılmış dosyaları sizin belirttiğiniz linkteki gibi kurulabilen hale getirmem gerekiyor sanırım.

İlginiz için teşekkür ederim.

sem

Rica ederim...

Çalışmayan dosyadaki hataları buraya aktarırsanız belki bir şeyler bulabiliriz.

Fakat her Python kodunu kurulabilen hale getirmeniz gerekmeyebilir. Tamamen yazılan uygulamanın tasarımına bağlı.

Kolay gelsin...
".NET çemberinden geçen lirisist etkisi bir 'Volcano', bir yüzüm Java bir yüzüm Badalamenti Don Tano"
----------------------------------------------------------------------------------------------------------------------
"Her yer ölüm yine, burası dünya
Derken ölüm bile bu nasıl dünya?
Benden ölüm dile, batıyor gün yine
Burası dünya?