Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Perl/Tk for OS X?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Konan" data-source="post: 818622" data-attributes="member: 67193"><p>Here is a how-to for Leopard. I just did this on my new Imac and it works. I am still a Mac newbie, but have been using Unix/Linux for decades and Perl-Tk for years. You can make really neat, small and fast gui programs with Tk without all the overhead of the super suites like Netbeans.</p><p></p><p>First, go to cpan.org and download Tk-804.028 by selecting modules and doing a search. It is about 6 meg and comes as a tar/gz file. No problem, Leopard will recognize it. Unzip it.</p><p></p><p>Make sure that you have Xcode tools loaded and definitely the Unix development part of it. Since Leopard is on top of FBSD Unix, Tk can definitely be installed without Xcode - I just don't know how yet on a Mac. I am afraid that at the my current level of knowledge of Leopard that I might totally unhook the GUI from the OS. But, the following way works fine.</p><p></p><p>Now, open a terminal session and move into the folder that you have unzipped Tk into.</p><p></p><p>Give the following commands without the quotes (note: case sensitive!) ...</p><p></p><p>"perl Makefile.PL" This will take just a short while.</p><p></p><p>"make" This will take several minutes. Don't panic if you think you see warnings and errors go by. That is normal for Unix.</p><p></p><p>"make test" Now you will see examples appear as it tests the compile. Again, don't worry if it says that it failed some tests when it is done. I have never seen an install that gives a 100 percent pass even on a pure Unix machine.</p><p></p><p>So far, nothing done has changed anything on your machine. You can dump this folder and everything is gone. Or even run the process again if you want to watch it again.</p><p></p><p>The following will install the compiled TK on your machine.</p><p></p><p>"sudo make install" It will ask for your password and then install in a few seconds.</p><p></p><p>Thats it. Just be sure that you put the line...</p><p>use Tk;</p><p>in your perl program. </p><p></p><p>Also, you HAVE to have the book, "Mastering Perl/Tk" (by Lidie and Walsh) if you are serious about Tk. (<a href="http://www.bookfinder.com" target="_blank">BookFinder.com: Search for New & Used Books, Textbooks, Out-of-Print and Rare Books</a>) Don't even try programming Tk without this book. It has Everything that you can do with Tk and is actually understandable by a Tk newbie.</p><p></p><p>Konan</p></blockquote><p></p>
[QUOTE="Konan, post: 818622, member: 67193"] Here is a how-to for Leopard. I just did this on my new Imac and it works. I am still a Mac newbie, but have been using Unix/Linux for decades and Perl-Tk for years. You can make really neat, small and fast gui programs with Tk without all the overhead of the super suites like Netbeans. First, go to cpan.org and download Tk-804.028 by selecting modules and doing a search. It is about 6 meg and comes as a tar/gz file. No problem, Leopard will recognize it. Unzip it. Make sure that you have Xcode tools loaded and definitely the Unix development part of it. Since Leopard is on top of FBSD Unix, Tk can definitely be installed without Xcode - I just don't know how yet on a Mac. I am afraid that at the my current level of knowledge of Leopard that I might totally unhook the GUI from the OS. But, the following way works fine. Now, open a terminal session and move into the folder that you have unzipped Tk into. Give the following commands without the quotes (note: case sensitive!) ... "perl Makefile.PL" This will take just a short while. "make" This will take several minutes. Don't panic if you think you see warnings and errors go by. That is normal for Unix. "make test" Now you will see examples appear as it tests the compile. Again, don't worry if it says that it failed some tests when it is done. I have never seen an install that gives a 100 percent pass even on a pure Unix machine. So far, nothing done has changed anything on your machine. You can dump this folder and everything is gone. Or even run the process again if you want to watch it again. The following will install the compiled TK on your machine. "sudo make install" It will ask for your password and then install in a few seconds. Thats it. Just be sure that you put the line... use Tk; in your perl program. Also, you HAVE to have the book, "Mastering Perl/Tk" (by Lidie and Walsh) if you are serious about Tk. ([url=http://www.bookfinder.com]BookFinder.com: Search for New & Used Books, Textbooks, Out-of-Print and Rare Books[/url]) Don't even try programming Tk without this book. It has Everything that you can do with Tk and is actually understandable by a Tk newbie. Konan [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Perl/Tk for OS X?
Top