{"id":3935,"date":"2016-11-07T21:19:15","date_gmt":"2016-11-07T12:19:15","guid":{"rendered":"http:\/\/www.nkozawa.com\/blog\/?p=3935"},"modified":"2024-03-28T20:33:32","modified_gmt":"2024-03-28T11:33:32","slug":"perl%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88%e3%81%aewindows-exe%e5%8c%96","status":"publish","type":"post","link":"http:\/\/www.nkozawa.com\/blog\/archives\/3935","title":{"rendered":"Perl\u30b9\u30af\u30ea\u30d7\u30c8\u306eWindows exe\u5316"},"content":{"rendered":"<p>++++++++++<br \/>\n\u3053\u306e\u8a18\u4e8b\u306e\u5185\u5bb9\u306f\u53e4\u3059\u304e\u307e\u3059\u3002(2024\/03\/28)<br \/>\n\u73fe\u5728\u306e\u304a\u3059\u3059\u3081\u306f\u300c<a href=\"https:\/\/qiita.com\/mizu4my\/items\/5aff60c7eed4e2cc6c18\">\u3010Pyinstaller\u3011MacOS\u7528\u3001Windows\u7528\u306eexe\u3092\u305d\u308c\u305e\u308c\u4f5c\u6210\u3059\u308b\u5931\u6557\u3057\u306a\u3044\u65b9\u6cd5<\/a>\u300d\u3067\u3059\u3002<br \/>\n++++++++++<\/p>\n<p>Mac\u3068Windows\u74b0\u5883\u306e\u4e21\u65b9\u3067\u52d5\u304f\u5c0f\u3055\u306a\u30c4\u30fc\u30eb\u3092\u4f5c\u308d\u3046\u3068\u601d\u3044\u307e\u3057\u305f\u3002\u4f5c\u308a\u305f\u3044\u306e\u306fCUI\u30d9\u30fc\u30b9\u306e\u3082\u306e\u3067\u7c21\u5358\u306a\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u3092\u884c\u3044\u7d50\u679c\u3092\u6a19\u6e96\u51fa\u9678\u51fa\u6765\u308c\u3070\u826f\u3044\u3060\u3051\u3067\u3059\u3002\u6700\u60aa\u3001\u30e1\u30a4\u30f3\u306e\u30ed\u30b8\u30c3\u30af\u3060\u3051\u3067\u3082\u5171\u901a\u5316\u51fa\u6765\u308c\u3070\u826f\u3044\u304f\u3089\u3044\u306b\u8003\u3048\u3066\u3044\u307e\u3057\u305f\u3002Windows\u306bActivePerl\u3068\u304bStrawberryPerl\u3092\u5165\u308c\u3066\u3057\u307e\u3048\u3070\u89e3\u6c7a\u3068\u8a00\u3048\u306a\u3044\u3053\u3068\u3082\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u3082\u3068\u3082\u3068Perl\u5b9f\u884c\u74b0\u5883\u304c\u5165\u3063\u3066\u3044\u306a\u3044Windows\u306b\u3082\u30c4\u30fc\u30eb\u3092\u63d0\u4f9b\u3059\u308b\u65b9\u6cd5\u3092\u6a21\u7d22\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u8272\u3005\u3068\u5de1\u308a\u5de1\u3063\u3066(\u3068\u3044\u3046\u307b\u3069\u3067\u306f\u7121\u3044\u3067\u3059\u304c)\u3001\u7d50\u5c40Perl\u306b\u623b\u3063\u3066\u304d\u307e\u3057\u305f\u3002Windows\u74b0\u5883\u3067Perl\u30b9\u30af\u30ea\u30d7\u30c8\u3092exe\u5316\u3059\u308c\u3070Perl\u5b9f\u884c\u74b0\u5883\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u306a\u304f\u4f5c\u6210\u3057\u305f\u30c4\u30fc\u30eb\u3092\u5b9f\u884c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p>\u53c2\u8003\u30da\u30fc\u30b8: <a href=\"http:\/\/vivibit.net\/strawberryperl2exe\/\">Strawberry Perl(Portable)\u3067Perl\u30b9\u30af\u30ea\u30d7\u30c8\u306eexe\u30d5\u30a1\u30a4\u30eb\u5316<\/a><\/p>\n<p>\u307e\u3063\u305f\u304f\u53c2\u8003\u30da\u30fc\u30b8\u3001\u305d\u306e\u307e\u307e\u306a\u306e\u3067\u8ffd\u52a0\u3059\u308b\u60c5\u5831\u3082\u3042\u308a\u307e\u305b\u3093\u3002\u308f\u305f\u3057\u304c\u5b9f\u969b\u306b\u3057\u3088\u3046\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u7b49\u306b\u3064\u3044\u3066\u3060\u3051\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>Windows : \u65e5\u672c\u8a9e\u7248Windows 7 Ultimate 64bit<br \/>\nPerl : <a href=\"http:\/\/strawberryperl.com\/releases.html\">Strawberry Perl<\/a> Portable version 5.24.0.1 64bit PortableZIP edition + extra PDL related libs<\/p>\n<p>Windows\u4e0a\u306e\u9069\u5f53\u306a\u5834\u6240\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fzip\u30d5\u30a1\u30a4\u30eb\u3092\u5c55\u958b\u3057\u307e\u3059\u3002Portable\u7248\u306a\u306e\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4f5c\u696d\u3092\u884c\u3046\u3053\u3068\u306a\u304fPerl\u304c\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u5c55\u958b\u3057\u305f\u4e2d\u306b\u3042\u308bportableshell.bat\u3092\u5b9f\u884c\u3059\u308b\u3068Perl\u304c\u4f7f\u7528\u3067\u304d\u308b\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u958b\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u3001\u305d\u306e\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3067\u306e\u5b9f\u884c\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066cpan\u304b\u3089Packer\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u5c0e\u5165\u3057\u307e\u3059\u3002\u53c2\u8003\u30da\u30fc\u30b8\u3067\u306f&#8211;force\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066\u307e\u3057\u305f\u304c\u3001\u308f\u305f\u3057\u306e\u5b9f\u884c\u74b0\u5883\u3067\u306f\u666e\u901a\u306b\u5c0e\u5165\u51fa\u6765\u307e\u3057\u305f\u3002<br \/>\n<code><br \/>\ncpanm PAR::Packer<br \/>\n<\/code><\/p>\n<p>\u5f8c\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u76ee\u7684\u306ePerl\u30b9\u30af\u30ea\u30d7\u30c8\u3092exe\u5316\u3057\u307e\u3059\u3002<br \/>\n<code><br \/>\npp -o test.exe test.pl<br \/>\n<\/code><\/p>\n<p>&#8216;Use Archive::Tar&#8217;\u306a\u3069\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u542b\u307e\u308c\u305f\u3082\u306e\u3082\u554f\u984c\u306a\u304fexe\u5316\u304c\u53ef\u80fd\u3067\u3057\u305f\u3002<\/p>\n<p>\u53c2\u8003\u30da\u30fc\u30b8\u306b\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u8aac\u660e\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3053\u306b\u3082\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u5b9f\u884c\u306e\u969b\u306b\u30e9\u30a4\u30d6\u30e9\u30ea\u3084\u30b9\u30af\u30ea\u30d7\u30c8\u305d\u306e\u3082\u306e\u306fC:\\Users\\xxx\\AppData\\Local\\Temp\\par-*\u306b\u5c55\u958b\u3055\u308c\u307e\u3059\u3002\u524a\u9664\u306f\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>++++++++++ \u3053\u306e\u8a18\u4e8b\u306e\u5185\u5bb9\u306f\u53e4\u3059\u304e\u307e\u3059\u3002(2024\/03\/28) \u73fe\u5728\u306e\u304a\u3059\u3059\u3081\u306f\u300c\u3010Pyinstaller\u3011MacOS\u7528\u3001Windows\u7528\u306eexe\u3092\u305d\u308c\u305e\u308c\u4f5c\u6210\u3059\u308b\u5931\u6557\u3057\u306a\u3044\u65b9\u6cd5\u300d\u3067\u3059\u3002 ++++++++++ [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[27],"tags":[],"class_list":["post-3935","post","type-post","status-publish","format-standard","hentry","category-programing"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/posts\/3935","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/comments?post=3935"}],"version-history":[{"count":9,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/posts\/3935\/revisions"}],"predecessor-version":[{"id":7714,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/posts\/3935\/revisions\/7714"}],"wp:attachment":[{"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/media?parent=3935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/categories?post=3935"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/tags?post=3935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}