| 導購 | 订阅 | 在线投稿
分享
 
 
當前位置: 王朝網路 >> perl >> Perl/TkFAQ-4.哪裏有Perl/Tk?
 

Perl/TkFAQ-4.哪裏有Perl/Tk?

2008-05-18 21:55:33  編輯來源:互聯網  简体版  手機版  評論  字體: ||
 
 
  原文:

  4. Where is it? Source code

  The latest production and alpha releases are available from the modules/by-authors/Nick_Ing-Simmons/ directory on the CPAN. If building from source code you will need a made and installed perl (Perl 5.005 or later being an excellent choice), a recent MakeMaker and the Tk kit. To obtain all of these (as well as several other modules that sophisticated Tk programs now rely on) visit a CPAN ftp site. CPAN (the Comprehensive Perl Archive Network) and what you need to get from it, is discussed in more detail in the next question.

  ActiveState Corporation has taken over the chore of maintaining what originated as Gurusamy Sarathy's binary distribution for WinNT, Win95, Win98, and Win2000. [Mention license considerations here?] This is what you must do to "use Tk" with ActivePerl:

  1. Download and install version 1.1 or greater of the Windows Installer (while the installation claims a reboot is necessary, Cameron Laird found it not to be so for WinNT);

  2. Download the ActivePerl 618 distribution:

  3. From Windows Explorer, activate the distribution just downloaded [what's the command-line way?]. This installs ActivePerl;

  4. From a command line, invoke ppm install Tk;

  5. At this point, you can perl -e "use Tk" from a command line, and you're ready to code Perl/Tk source.

  Jon Bjornstad gives more details about the process, some of which you might particularly need if you work with ActivePerl before release 618.

  (While the next question treats CPAN in detail, the remainder of this answer points out some non CPAN resources, as well as some historical resources.)

  Tk-b8: The Tk-b8 kit remains on CPAN since it was compatible with the widely distributed and installed Perl (5.001m) Binaries

  A pre-compiled binary distribution of Perl5.001m with Tk-b8 for Linux is available from: Australia (please be patient and only try during off hours) ftp://syd.dit.csiro.au/pub/perl5/local/perl5.001m+Tk-b8-Linux-ELF.tar.gz

  It unpacks into /usr/local. You need to have ELF running and to have the ELF X11 libraries (please be patient and only try during off hours).

  Binaries for the old Perl 5 & Tk-b6 are available for a number of UNIX platforms courtesy of Thomas Schlagel and Alan Stange of Brookhaven Lab at: USA http://pubweb.bnl.gov/~ptk/

  Thomas and Alan have recently (winter 1995-1996) announced that they will update the Tk module version number of the many binaries they distribute. Physical media (mostly source code)

  With traffic jams on today's information superhighway more and more common it is often convenient to be able to snail mail a Read Only Memory Compact Disk rather than suffer with .tar.gz files that are corrupted by network spottiness. Here is a very brief list of some folks who distribute perl (and hopefully Tk too!) on physical media. This list is not intended to be complete, nor an endorsement of any vendor (I personally do not have the time to check out any of these but have noticed that some tend to be a few months out of date with respect to CPAN so please be careful). See the hypertext version of this document for hyperlinks to the following vendors:

  Perl Developer's Toolkit from Advice Press; 366 Cambridge Ave.; Palo Alto, CA 94306

  ISBN: 1-889671-15-0 $39.95, is also available via a subscription plan. This CD is organized by Jon Orwant (the organizer of comp.lang.perl.tk and the publisher of The Perl Journal.

  Walnut Creek Perl CD from Walnut Creek CDROM; 4041 Pike Lane, Suite E; Concord, CA 94520

  This CD specifies a release date. $39.95

  Cosmos Engineering Company

  Offers Linux plus perl for sale on a 1 Gigabyte IDE hard drive for PC-like computers. $279.00 (Fall 1996)

  Unix Review System Administration

  A CD that contains "Perl 5.0" (and much other stuff including Tcl/Tk and Expect) for $49.95. Telephone: (800) 444-4881.

  InfoMagic Mother of Perl

  This 2 CD set contains perl 5.001 and sells for $35.00

  Ready to Run

  Perl (unknown version) available for sale for many types of Unix and other operating systems.

  譯文:

  4. 哪裏有Perl/Tk?

  源代碼

  最新的穩定版本和測試版都可以從CPAN的modules/by-authors/Nick_Ing-Simmons/目錄中下載。如果是由源代碼編譯安裝,那麽你需要有Perl環境(最好是Perl 5.005或者更高)、一個較新版本的make編譯工具和Tk包。所有的這些(同時包括一些其它的相關的模塊)都可以從CPAN的ftp站點下載。關于CPAN(綜合Perl檔案網絡,the Comprehensive Perl Archive Network)的問題我們將在下一個問題中具體討論。

  最初由Gurusamy Sarathy發起的爲WinNT、Win95/98和Win2000提供二進制版本(binary distribution)工作現在已經被ActiveState公司接管了。如果你想在ActivePerl中使用Tk,你可以這樣做:

  1. 下載並安裝1.1(或更高)版本的Windows Installer(作者發現在WinNT系統中安裝它無須重啓);

  2. 下載ActivePerl 618安裝包;

  3. 在資源管理器中運行上面下載的安裝包,這樣就安裝了ActivePerl;

  4. 在命令行中輸入:ppm install Tk;

  5. 此時你可以在命令行裏輸入:perl –e 「use Tk」,如果一切順利,說明你已經可以用Perl/Tk了。

  Jon Bjornastad給出了更詳細的過程說明,其中有些對于使用618之前的版本的ActivePerl的用戶可能特別有用。

  (因爲我們的下一個問題是重點討論CPAN的,所以這個回答的下面部分我們將給出一些非CPAN的資源和一些曆史資源。)

  Tk-b8:因爲Tk-b8工具包和已經被廣泛使用的Perl(5.001m)相兼容,所以它一直被保留在CPAN上。

  二進制版本

  爲Linux平台預編譯好的Perl5.001m和Tk-b8可以從下面的站點下載:

  澳大利亞(請在業余時間下載,並保持耐心)

  ftp://syd.dit.csiro.au/pub/perl5/local/perl5.001m+Tk-b8-Linux-ELF.tar.gz

  它將釋放到/usr/local目錄中。你的系統需要有ELF X11的庫並且保證其運行。

  Brookhaven實驗室的Thomas Schlagel和Alan Stange爲很多Unix平台的系統提供了老版本的Perl5和Tk-b6:

  美國http://pubweb.bnl.gov/~ptk/

  實物(大部分是源代碼)

  (譯者注:因爲其價格一般都太貴,對國人而言不太適用,所以就不譯了……有興趣的自己看吧:P)
 
 
 
上一篇《Perl/TkFAQ-3.編譯安裝Perl/Tk是否需要Tcl/Tk?》
下一篇《Perl/TkFAQ-5.CPAN是什麽?在哪裏》
 
 
 
 
 
 
日版寵物情人插曲《Winding Road》歌詞

日版寵物情人2017的插曲,很帶節奏感,日語的,女生唱的。 最後聽見是在第8集的時候女主手割傷了,然後男主用嘴幫她吸了一下,插曲就出來了。 歌手:Def...

兄弟共妻,我成了他們夜裏的美食

老鍾家的兩個兒子很特別,就是跟其他的人不太一樣,魔一般的執著。兄弟倆都到了要結婚的年齡了,不管自家老爹怎麽磨破嘴皮子,兄弟倆說不娶就不娶,老父母爲兄弟兩操碎了心...

如何磨出破洞牛仔褲?牛仔褲怎麽剪破洞?

把牛仔褲磨出有線的破洞 1、具體工具就是磨腳石,下面墊一個硬物,然後用磨腳石一直磨一直磨,到把那塊磨薄了,用手撕開就好了。出來的洞啊很自然的。需要貓須的話調幾...

我就是掃描下圖得到了敬業福和愛國福

先來看下敬業福和愛國福 今年春節,支付寶再次推出了“五福紅包”活動,表示要“把欠大家的敬業福都還給大家”。 今天該活動正式啓動,和去年一樣,需要收集“五福”...

冰箱異味産生的原因和臭味去除的方法

有時候我們打開冰箱就會聞到一股異味,冰箱裏的這種異味是因爲一些物質發出的氣味的混合體,聞起來讓人惡心。 産生這些異味的主要原因有以下幾點。 1、很多人有這種習...

《極品家丁》1-31集大結局分集劇情介紹

簡介 《極品家丁》講述了現代白領林晚榮無意回到古代金陵,並追隨蕭二小姐化名“林三”進入蕭府,不料卻陰差陽錯上演了一出低級家丁拼搏上位的“林三升職記”。...

李溪芮《極品家丁》片尾曲《你就是我最愛的寶寶》歌詞

你就是我最愛的寶寶 - 李溪芮 (電視劇《極品家丁》片尾曲) 作詞:常馨內 作曲:常馨內 你的眉 又鬼馬的挑 你的嘴 又壞壞的笑 上一秒吵鬧 下...

烏梅的功效與作用以及烏梅的食用禁忌有哪些?

烏梅,又稱春梅,中醫認爲,烏梅味酸,性溫,無毒,具有安心、除熱、下氣、祛痰、止渴調中、殺蟲的功效,治肢體痛、肺痨病。烏梅泡水喝能治傷寒煩熱、止吐瀉,與幹姜一起制...

什麽是脂肪粒?如何消除臉部脂肪粒?

什麽是脂肪粒 在我們的臉上總會長一個個像脂肪的小顆粒,弄也弄不掉,而且顔色還是白白的。它既不是粉刺也不是其他的任何痘痘,它就是脂肪粒。 脂肪粒雖然也是由油脂...

網絡安全治理:國家安全保障的主要方向是打擊犯罪,而不是處置和懲罰受害者

來源:中國青年報 新的攻擊方法不斷湧現,黑客幾乎永遠占據網絡攻擊的上風,我們不可能通過技術手段杜絕網絡攻擊。國家安全保障的主要方向是打擊犯罪,而不是處置和懲罰...

河南夫妻在溫嶺網絡直播“造人”內容涉黃被刑事拘留

夫妻網絡直播“造人”爆紅   1月9日,溫嶺城北派出所接到南京警方的協查通告,他們近期打掉了一個涉黃直播APP平台。而根據掌握的線索,其中有一對涉案的夫妻主播...

如何防止牆紙老化?牆紙變舊變黃怎麽辦?

如何防止牆紙老化? (1)選擇透氣性好的牆紙 市場上牆紙的材質分無紡布的、木纖維的、PVC的、玻璃纖維基材的、布面的等,相對而言,PVC材質的牆紙最不透氣...

鮮肌之謎非日本生産VS鮮肌之謎假日貨是謠言

觀點一:破日本銷售量的“鮮肌之謎” 非日本生産 近一段時間,淘寶上架了一款名爲“鮮肌之謎的” 鲑魚卵巢美容液,號稱是最近日本的一款推出的全新護膚品,産品本身所...

中國最美古詩詞精選摘抄

系腰裙(北宋詞人 張先) 惜霜蟾照夜雲天,朦胧影、畫勾闌。人情縱似長情月,算一年年。又能得、幾番圓。 欲寄西江題葉字,流不到、五亭前。東池始有荷新綠,尚小如...

關于女人的經典語句

關于女人的經典語句1、【做一個獨立的女人】 思想獨立:有主見、有自己的人生觀、價值觀。有上進心,永遠不放棄自己的理想,做一份自己喜愛的事業,擁有快樂和成就...

未來我們可以和性愛機器人結婚嗎?

你想體驗機器人性愛嗎?你想和性愛機器人結婚嗎?如果你想,機器人有拒絕你的權利嗎? 近日,第二屆“國際人類-機器人性愛研討會”大會在倫敦金史密斯大學落下帷幕。而...

全球最變態的十個地方

10.土耳其地下洞穴城市 變態指數:★★☆☆☆ 這是土耳其卡帕多西亞的一個著名景點,傳說是當年基督教徒們爲了躲避戰爭而在此修建。裏面曾住著20000人,...

科學家稱,人類死亡後意識將在另外一個宇宙中繼續存活

據英國《每日快報》報道,一位科學家兼理論家Robert Lanza博士宣稱,世界上並不存在人類死亡,死亡的只是身體。他認爲我們的意識借助我們體內的能量生存,而且...

《屏裏狐》片頭曲《我愛狐狸精》歌詞是什麽?

《我愛狐狸精》 - 劉馨棋   (電視劇《屏裏狐》主題曲)   作詞:金十三&李旦   作曲:劉嘉   狐狸精 狐狸仙   千年修...

 
 
 
  原文:   4. Where is it? Source code   The latest production and alpha releases are available from the modules/by-authors/Nick_Ing-Simmons/ directory on the CPAN. If building from source code you will need a made and installed perl (Perl 5.005 or later being an excellent choice), a recent MakeMaker and the Tk kit. To obtain all of these (as well as several other modules that sophisticated Tk programs now rely on) visit a CPAN ftp site. CPAN (the Comprehensive Perl Archive Network) and what you need to get from it, is discussed in more detail in the next question.   ActiveState Corporation has taken over the chore of maintaining what originated as Gurusamy Sarathy's binary distribution for WinNT, Win95, Win98, and Win2000. [Mention license considerations here?] This is what you must do to "use Tk" with ActivePerl:   1. Download and install version 1.1 or greater of the Windows Installer (while the installation claims a reboot is necessary, Cameron Laird found it not to be so for WinNT);   2. Download the ActivePerl 618 distribution:   3. From Windows Explorer, activate the distribution just downloaded [what's the command-line way?]. This installs ActivePerl;   4. From a command line, invoke ppm install Tk;   5. At this point, you can perl -e "use Tk" from a command line, and you're ready to code Perl/Tk source.   Jon Bjornstad gives more details about the process, some of which you might particularly need if you work with ActivePerl before release 618.   (While the next question treats CPAN in detail, the remainder of this answer points out some non CPAN resources, as well as some historical resources.)   Tk-b8: The Tk-b8 kit remains on CPAN since it was compatible with the widely distributed and installed Perl (5.001m) Binaries   A pre-compiled binary distribution of Perl5.001m with Tk-b8 for Linux is available from: Australia (please be patient and only try during off hours) ftp://syd.dit.csiro.au/pub/perl5/local/perl5.001m+Tk-b8-Linux-ELF.tar.gz   It unpacks into /usr/local. You need to have ELF running and to have the ELF X11 libraries (please be patient and only try during off hours).   Binaries for the old Perl 5 & Tk-b6 are available for a number of UNIX platforms courtesy of Thomas Schlagel and Alan Stange of Brookhaven Lab at: USA http://pubweb.bnl.gov/~ptk/   Thomas and Alan have recently (winter 1995-1996) announced that they will update the Tk module version number of the many binaries they distribute. Physical media (mostly source code)   With traffic jams on today's information superhighway more and more common it is often convenient to be able to snail mail a Read Only Memory Compact Disk rather than suffer with .tar.gz files that are corrupted by network spottiness. Here is a very brief list of some folks who distribute perl (and hopefully Tk too!) on physical media. This list is not intended to be complete, nor an endorsement of any vendor (I personally do not have the time to check out any of these but have noticed that some tend to be a few months out of date with respect to CPAN so please be careful). See the hypertext version of this document for hyperlinks to the following vendors:   Perl Developer's Toolkit from Advice Press; 366 Cambridge Ave.; Palo Alto, CA 94306   ISBN: 1-889671-15-0 $39.95, is also available via a subscription plan. This CD is organized by Jon Orwant (the organizer of comp.lang.perl.tk and the publisher of The Perl Journal.   Walnut Creek Perl CD from Walnut Creek CDROM; 4041 Pike Lane, Suite E; Concord, CA 94520   This CD specifies a release date. $39.95   Cosmos Engineering Company   Offers Linux plus perl for sale on a 1 Gigabyte IDE hard drive for PC-like computers. $279.00 (Fall 1996)   Unix Review System Administration   A CD that contains "Perl 5.0" (and much other stuff including Tcl/Tk and Expect) for $49.95. Telephone: (800) 444-4881.   InfoMagic Mother of Perl   This 2 CD set contains perl 5.001 and sells for $35.00   Ready to Run   Perl (unknown version) available for sale for many types of Unix and other operating systems.   譯文:   4. 哪裏有Perl/Tk?   源代碼   最新的穩定版本和測試版都可以從CPAN的modules/by-authors/Nick_Ing-Simmons/目錄中下載。如果是由源代碼編譯安裝,那麽你需要有Perl環境(最好是Perl 5.005或者更高)、一個較新版本的make編譯工具和Tk包。所有的這些(同時包括一些其它的相關的模塊)都可以從CPAN的ftp站點下載。關于CPAN(綜合Perl檔案網絡,the Comprehensive Perl Archive Network)的問題我們將在下一個問題中具體討論。   最初由Gurusamy Sarathy發起的爲WinNT、Win95/98和Win2000提供二進制版本(binary distribution)工作現在已經被ActiveState公司接管了。如果你想在ActivePerl中使用Tk,你可以這樣做:   1. 下載並安裝1.1(或更高)版本的Windows Installer(作者發現在WinNT系統中安裝它無須重啓);   2. 下載ActivePerl 618安裝包;   3. 在資源管理器中運行上面下載的安裝包,這樣就安裝了ActivePerl;   4. 在命令行中輸入:ppm install Tk;   5. 此時你可以在命令行裏輸入:perl –e 「use Tk」,如果一切順利,說明你已經可以用Perl/Tk了。   Jon Bjornastad給出了更詳細的過程說明,其中有些對于使用618之前的版本的ActivePerl的用戶可能特別有用。   (因爲我們的下一個問題是重點討論CPAN的,所以這個回答的下面部分我們將給出一些非CPAN的資源和一些曆史資源。)   Tk-b8:因爲Tk-b8工具包和已經被廣泛使用的Perl(5.001m)相兼容,所以它一直被保留在CPAN上。   二進制版本   爲Linux平台預編譯好的Perl5.001m和Tk-b8可以從下面的站點下載:   澳大利亞(請在業余時間下載,並保持耐心)   ftp://syd.dit.csiro.au/pub/perl5/local/perl5.001m+Tk-b8-Linux-ELF.tar.gz   它將釋放到/usr/local目錄中。你的系統需要有ELF X11的庫並且保證其運行。   Brookhaven實驗室的Thomas Schlagel和Alan Stange爲很多Unix平台的系統提供了老版本的Perl5和Tk-b6:   美國http://pubweb.bnl.gov/~ptk/   實物(大部分是源代碼)   (譯者注:因爲其價格一般都太貴,對國人而言不太適用,所以就不譯了……有興趣的自己看吧:P)
󰈣󰈤
 
 
 
  免責聲明:本文僅代表作者個人觀點,與王朝網路無關。王朝網路登載此文出於傳遞更多信息之目的,並不意味著贊同其觀點或證實其描述,其原創性以及文中陳述文字和內容未經本站證實,對本文以及其中全部或者部分內容、文字的真實性、完整性、及時性本站不作任何保證或承諾,請讀者僅作參考,並請自行核實相關內容。
 
 
美得讓人陶醉
杭州美女模特米萊
清純迷人唐小妹
氣質一流的上海女生
夢醉克孜加爾湖畔
珠江公園(二)
魔域桃源
南嶺森林公園親水谷
 
>>返回首頁<<
 
 
 
 熱帖排行
 
 
 
 
© 2005- 王朝網路 版權所有