結城浩のはてなブログ

ふと思いついたことをパタパタと書いてます。

Strawberry Perl for Windowsを入れた

Strawberry Perl is a perl environment for MS Windows containing all you need to run and develop perl applications. It is designed to be as close as possible to perl environment on UNIX systems.
It includes perl binaries, compiler (gcc) + related tools, all the external libraries (crypto, graphics, xml ...), all the bundled database clients and all you expect from Strawberry Perl.

  • Windows 7 (64bit) で試した。
  • .msiをダウンロードして実行する。
  • 自動的に64bit版がインストールされる。
  • 環境変数は自動的に設定される。再起動して反映。
  • はてなダイアリーライターは何もモジュール追加せずに実行できることを確認した。
  • gccが使えるようになった(!)
C:\WORK> dir /b hello.*
hello.c

C:\WORK> type hello.c
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char args[])
{
    printf("Hello, gcc!\n");
    return EXIT_SUCCESS;
}

C:\WORK> gcc hello.c -o hello.exe

C:\WORK> dir /b hello.*
hello.c
hello.exe

C:\WORK> hello
Hello, gcc!
  • まだ試してないけれどCPANとの親和性もよいらしい。すごく助かる!
  • Strawberry Perlを知るきっかけは@vyv03354さんのひとことでした。ありがとうございます!
  • 2012-09-28: 追記 Net::FTPSSLをインストールした。
C:\WORK> cpan
cpan> install Net::FTPSSL