LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-30-2005, 01:42 PM   #1
datbenik
Member
 
Registered: Dec 2005
Location: Holland
Posts: 39

Rep: Reputation: 15
Tk for Python doesn't work


I'm trying to install Tk for Python. It doesn't work...
I don't understand it because i haven't got a error or something.
Code:
debian:~# cd /root/Desktop/Downloads/tk8.4.12/unix
debian:~/Desktop/Downloads/tk8.4.12/unix# ./configure
loading cache ./config.cache
checking for Tcl configuration... (cached) found /root/Desktop/Downloads/tcl8.4.12/unix/tclConfig.sh
checking for existence of /root/Desktop/Downloads/tcl8.4.12/unix/tclConfig.sh... loading
checking for tclsh... (cached) /usr/local/bin/tclsh8.4
checking for tclsh in Tcl build directory... /root/Desktop/Downloads/tcl8.4.12/unix/tclsh
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for limits.h... (cached) yes
checking for unistd.h... (cached) yes
checking stdlib.h... yes
checking if the compiler understands -pipe... yes
checking for building with threads... no (default)
checking for sin... (cached) no
checking for main in -lieee... (cached) yes
checking how to build libraries... shared
checking for ranlib... (cached) ranlib
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... Linux-2.6.8-2-686
checking for dlopen in -ldl... (cached) yes
checking for ar... (cached) ar
checking for build with symbols... no
checking for required early compiler flags... (cached) (cached) (cached)  _LARGEFILE64_SOURCE
checking for 64-bit integer type... (cached) long long
checking for struct dirent64... (cached) no
checking for struct stat64... (cached) yes
checking for open64... (cached) yes
checking for lseek64... (cached) yes
checking for off64_t... (cached) yes
checking whether byte ordering is bigendian... (cached) no
checking for fd_set in sys/types... (cached) yes
checking for sys/time.h... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for strtod... (cached) yes
checking for Solaris2.4/Tru64 strtod bugs... (cached) ok
checking for ANSI C header files... (cached) yes
checking for mode_t... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking for uid_t in sys/types.h... (cached) yes
checking pw_gecos in struct pwd... (cached) yes
checking for X... (cached) libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for main in -lXbsd... (cached) no
checking for connect... (cached) yes
checking for gethostbyname... (cached) yes
checking whether char is unsigned... (cached) no
creating ./config.status
creating Makefile
creating tkConfig.sh
debian:~/Desktop/Downloads/tk8.4.12/unix# make
gcc -pipe -c -O2  -Wall -Wno-implicit-int -fno-strict-aliasing -fPIC -I/root/Desktop/Downloads/tk8.4.12/unix -I/root/Desktop/Downloads/tk8.4.12/unix/../generic -I/root/Desktop/Downloads/tk8.4.12/unix/../bitmaps -I/root/Desktop/Downloads/tcl8.4.12/generic -I/usr/X11R6/include -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DPEEK_XCLOSEIM=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DSTDC_HEADERS=1 -DHAVE_PW_GECOS=1      -DTCL_NO_DEPRECATED  -DUSE_TCL_STUBS  -DTK_LIBRARY=\"/usr/local/lib/tk8.4\" \
    /root/Desktop/Downloads/tk8.4.12/unix/tkUnixInit.c
rm -f libtk8.4.so
gcc -pipe -shared -o libtk8.4.so tk3d.o tkArgv.o tkAtom.o tkBind.o tkBitmap.o tkClipboard.o tkCmds.o tkColor.o tkConfig.o tkConsole.o tkCursor.o tkError.o tkEvent.o tkFocus.o tkFont.o tkGet.o tkGC.o tkGeometry.o tkGrab.o tkGrid.o tkMain.o tkObj.o tkOldConfig.o tkOption.o tkPack.o tkPlace.o tkSelect.o tkStyle.o tkUndo.o tkUtil.o tkVisual.o tkWindow.o tkButton.o tkEntry.o tkFrame.o tkListbox.o tkMenu.o tkMenubutton.o tkMenuDraw.o tkMessage.o tkPanedWindow.o tkScale.o tkScrollbar.o tkCanvas.o tkCanvArc.o tkCanvBmap.o tkCanvImg.o tkCanvLine.o tkCanvPoly.o tkCanvPs.o tkCanvText.o tkCanvUtil.o tkCanvWind.o tkRectOval.o tkTrig.o tkImage.o tkImgBmap.o tkImgGIF.o tkImgPPM.o tkImgPhoto.o tkText.o tkTextBTree.o tkTextDisp.o tkTextImage.o tkTextIndex.o tkTextMark.o tkTextTag.o tkTextWind.o tkStubInit.o tkStubLib.o tkUnix.o tkUnix3d.o tkUnixButton.o tkUnixColor.o tkUnixConfig.o tkUnixCursor.o tkUnixDraw.o tkUnixEmbed.o tkUnixEvent.o tkUnixFocus.o tkUnixFont.o tkUnixInit.o tkUnixKey.o tkUnixMenu.o tkUnixMenubu.o tkUnixScale.o tkUnixScrlbr.o tkUnixSelect.o tkUnixSend.o tkUnixWm.o tkUnixXId.o  -L/usr/X11R6/lib -lX11 -ldl -lieee -lm -L/root/Desktop/Downloads/tcl8.4.12/unix -ltclstub8.4   -Wl,-rpath,/usr/local/lib:/usr/X11R6/lib
gcc -pipe -O2    -Wl,--export-dynamic tkAppInit.o -L/root/Desktop/Downloads/tk8.4.12/unix -ltk8.4 \
        -L/root/Desktop/Downloads/tcl8.4.12/unix -ltcl8.4  -L/usr/X11R6/lib -lX11 -ldl -lieee -lm  -Wl,-rpath,/usr/local/lib:/usr/X11R6/lib -o wish
debian:~/Desktop/Downloads/tk8.4.12/unix# make install
Creating package index /usr/local/lib/tk8.4/pkgIndex.tcl
Installing libtk8.4.so to /usr/local/lib/
Installing wish as /usr/local/bin/wish8.4
Installing tkConfig.sh to /usr/local/lib/
Installing libtkstub8.4.a to /usr/local/lib/
Installing header files
Installing library files to /usr/local/lib/tk8.4
Installing library images directory
Installing translation directory
Installing demos to /usr/local/lib/tk8.4/demos/
Installing demo images
Installing and cross-linking top-level (.1) docs
Installing and cross-linking C API (.3) docs
Installing and cross-linking command (.n) docs
debian:~/Desktop/Downloads/tk8.4.12/unix# whereis tk
tk: /usr/lib/tk8.4 /usr/local/lib/tk8.4 /usr/share/tk8.4
debian:~/Desktop/Downloads/tk8.4.12/unix# python
Python 2.4.2 (#1, Dec 30 2005, 17:09:31)
[GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tk
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named tk
>>>
 
  


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
Python doesn't work zirtik Programming 9 10-17-2005 05:28 AM
newbie, getting simple python script to work Monjawi Programming 6 10-03-2005 11:51 AM
getting wxPython to work with python servnov Linux - Newbie 0 01-09-2005 11:48 AM
python doesn´t work little_ball Linux - Newbie 4 12-04-2004 09:09 AM
Python XML won't work. Travis86 Programming 0 09-14-2004 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:54 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