Guest via RT <bug-Tk@rt.cpan.org> writes:
Show quoted text>This message about Tk was sent to you by guest <> via rt.cpan.org
>
>Full context and any attached attachments can be found at:
><URL:
https://rt.cpan.org/Ticket/Display.html?id=5692 >
>
>Hiya,
>
>I'm a relative novice at installing perl modules, so I apologise if I'm doing something stupid...
>
>I'm attempting to install Tk on OSX 10.3.3
>The version of perl I'm using is v5.8.1-RC3
Steve uses OSX so I know it "works" on some version or other.
Show quoted text>
>Initially I tried installing Tk-804.025_beta16 using:
>
>sudo perl -MCPAN -e "install Tk"
>
>This seems to go fine until it starts the "make test" when it starts to fail tests left right and centre. (see below for error messages).
>
>Failed 43/46 test scripts, 6.52% okay. 2082/2504 subtests failed, 16.85% okay.
>
>Am I doing something wrong?
>
Show quoted textx>
Show quoted text>Here are the multitudinous error messages from the 804.025_beta16 installation using MCPAN
>
>PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/JP.t t/KR.t t/Require.t t/Trace.t t/X.t t/after.t t/autoload.t t/balloon.t t/browseentry-grabtest.t t/browseentry-subclassing.t t/browseentry.t t/browseentry2.t t/button.t t/create.t t/cursor.t t/dash.t t/dialogbox.t t/entry.t t/fbox.t t/fileevent.t t/fileselect.t t/font.t t/geomgr.t t/iso8859-1.t t/leak.t t/list.t t/listbox.t t/listvar.t t/magic.t t/mega.t t/mwm.t t/optmenu.t t/photo.t t/pixmap.t t/progbar.t t/regexp.t t/slaves.t t/trace1.t t/widget.t t/wm-time.t t/wm.t t/zzHList.t t/zzPhoto.t t/zzScrolled.t t/zzText.t t/zzTixGrid.t
>t/after......................couldn't connect to display ":0" at /Users/cy200/.cpan/build/Tk-804.025_beta16/blib/lib/Tk/MainWindow.pm line 55.
^^^^^^^^^^^^
This may be a 'sudo' thing, by Tk is a GUI application. It needs to
be able to connect to your X server or it will fail catastropically.
Show quoted text>
>So, I tried installing both 800.024 and 800.15 by dowloading and
Why does nobody ever try Tk-800.025 ?
Show quoted text>
>perl Makefile.PL
>sudo make
>
>800.024 gives me the errror message at this stage:
>
>In file included from /usr/include/sys/event.h:154,
> from /usr/include/sys/select.h:71,
> from tkUnixPort.h:56,
> from tkPort.h:42,
> from Xlib_f.c:1:
>/usr/include/mach/mach.h:79: parse error before '->' token
>make[1]: *** [Xlib_f.o] Error 1
>make: *** [pTk/libpTk.a] Error 2
Try 800.025 - if I recall correctly it had some OSX tweaks
for this.