ActiveState Community

install failed

Posted by m_for on 2009-03-02 13:32

I have just installed ActivePerl 5.10 ActiveTCL8.5.6 and the Xcode onto the OS X 10.4.11, but all I get when I try to "use Tk;" is
perl try1.pl
Can't locate Tk.pm in @INC (@INC contains: /System/Library/Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6 /Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6 /Network/Library/Perl /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1 .) at try1.pl line 3.
BEGIN failed--compilation aborted at try1.pl line 3.

also, this machine is blocked from using any form of ftp thanks to my employer. I downloaded Tk-804.028 and tried to follow their instructions of perl Makefile.pl, make... but it dies during the first step with errors:
Using -L/usr/X11R6/lib to find /usr/X11R6/lib/libX11.6.2.dylib
Cannot find X include files via /usr/X11R6/include
Cannot find X include files anywhere at ./myConfig line 370.
Compilation failed in require at Makefile.PL line 37.

Thanks for any help!

jeffh | Mon, 2009-03-02 16:56

Perl/Tk is not available for ActivePerl 5.10 except to compile it from scratch. However, the warnings above indicate you are not even using the installed ActivePerl 5.10 (the warnings are for 5.8). Make sure to add /usr/local/ActivePerl-5.10/bin to your path. In addition, you will need the X11 headers if you want to compile Tk.

Better yet, try Tkx instead. It ships with ActivePerl and gives you native look and feel on OS X.

Jeff

m_for | Mon, 2009-03-02 18:32

I added the 5.10 bin to my path and now Tkx is working. Before when I used the 5.8 command perl with Tkx I was getting the same INC errors as Tk.

Hopefully Tkx isn't different than Tk...