[100688] in RedHat Linux List

home help back first fref pref prev next nref lref last post

netcfg problems - more info

daemon@ATHENA.MIT.EDU (Jeremy Clifton)
Sun Nov 22 22:39:01 1998

Date: Sun, 22 Nov 1998 22:41:25 -0500
From: Jeremy Clifton <fireproof@geocities.com>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Jeremy Clifton wrote:
> 
> I'm trying to set up a NE2000 ethernet card in my computer, but I can't
> get netcfg to run. When I try, I get this error message in my terminal
> window:
> 
> File "/usr/lib/rhs/netcfg/netcfg.py", line 23, in ?
>         from Tkinter import *
> File "/usr/local/lib/python1.5/lib-tk/Tkinter.py", line 5 in ?
>         import _tkinter # If this fails your Python is not configured for Tk
> ImportError: No module name _tkinter

OK, I found some info on how to config Python for Tk, and now I've
edited my Setup file in the /usr/local/lib/python1.5/config dir to
reflect the following in the tkinter section:

# The _tkinter module.
#
# The TKPATH variable is always enabled, to save you the effort.
TKPATH=:/usr/local/lib/python1.5/lib-tk

# The command for _tkinter is long and site specific.  Please
# uncomment and/or edit those parts as indicated.  If you don't have a
# specific extension (e.g. Tix or BLT), leave the corresponding line
# commented out.  (Leave the trailing backslashes in!  If you
# experience strange errors, you may want to join all uncommented
# lines and remove the backslashes -- the backslash interpretation is
# done by the shell's "read" command and it may not be implemented on
# every system.

# *** Always uncomment this (leave the leading underscore in!):
 _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
# *** Uncomment and edit to reflect where your X11 header files are:
	-I/usr/X11R6/include \
# *** Or uncomment this for Solaris:
#	-I/usr/openwin/include \
# *** Uncomment and edit to reflect where your Tcl/Tk headers are:
	-I/usr/include \
# *** Uncomment and edit for Tix extension only:
#	-DWITH_TIX -ltix4.1.8.0 \
# *** Uncomment and edit for BLT extension only:
#	-DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \
# *** Uncomment and edit for PIL (TkImaging) extension only:
#	-DWITH_PIL -I../Extensions/Imaging/libImaging  tkImaging.c \
# *** Uncomment and edit for TOGL extension only:
#	-DWITH_TOGL togl.c \
# *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
	-L/usr/local/lib/python1.5/lib-tk \
# *** Uncomment and edit to reflect your Tcl/Tk versions:
	-ltk8.0 -ltcl8.0 \
# *** Uncomment and edit to reflect where your X11 libraries are:
	-L/usr/X11R6/lib \
# *** Or uncomment this for Solaris:
#	-L/usr/openwin/lib \
# *** Uncomment these for TOGL extension only:
#	-lGL -lGLU -lXext -lXmu \
# *** Uncomment for AIX:
#	-lld \
# *** Always uncomment this; X11 libraries to link with:
	-lX11

I've run find to check to locations of all the files, and as far as I
know, this reflects my system's setup. Yet, I still get the same error
message when running netcfg. Is there some kind of script I need to run
to activate this setup, or some other file I'm supposed to edit? 

Again, thanks in advance . . .

Jeremy [fireproof@geocities.com]

-- 
Linux 2.2 is near! Windows users, REPENT!


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post