PerlをPostgreSQLにインストールする、指定されたモジュールが見つかりませんでした.

PerlをPostgreSQLにインストールします。指定されたモジュールが見つかりませんでした。

ここでは、WindowsにPerlをインストールする方法をガイドするいくつかの手順を提供しますPostgreSQL
*
1)WindowsがPerlスクリプトをサポートするようにActivePerlをインストールします。*

2)PerlbinフォルダーをWindows環境変数に設定します

3)PostgreSQLを再起動します

4)Createlangコマンドを発行します

C:\>createlang -U postgres plperl DB_NAME

“The specified module could not be found”エラーが発生した場合は、以下のストーリーをご覧ください。
**

C:\>createlang -U postgres plperl postgres
createlang: language installation failed: ERROR:  could not load library "C:/Program Files/PostgreSQ
L/8.2/lib/plperl.dll": The specified module could not be found.
 +
hmm… It’s seem i’m missing plperl.dll file in my PostgreSQL library folder, however i check plperl.dll indeed exists in my PostgreSQL lib folder. I started to wonder what went wrong with this dll file? I downloaded a software call http://www.dependencywalker.com/[“Dependency walker”], it is a small program to check what are the dependency of a dll file. After check with Dependency walker, i find out plperl.dll is depend on a dll file call perl58.dll. As i know , Perl58.dll is a dll file in Perl version 5.8. haha.. ya i forgot to install Perl script in my windows, go here http://www.activestate.com/downloads/index.mhtml to install Active Perl on window. After install please remember to set Perl bin folder to windows environment variable. Try it again, +
**
C:\>createlang -U postgres plperl postgres
createlang: language installation failed: ERROR:  could not load library "C:/Program Files/PostgreSQ
L/8.2/lib/plperl.dll": The specified module could not be found.
 +
….WTF… i check with “Dependency walker”, everything is ok. All dll files are loaded. It drive me insane, and shut down PostgreSQL immediately. After few hours, i started PostgreSQL again, and issue command
C:\>createlang -U postgres plperl DB_NAME

うわー、私のPostgreSQLにplperlがインストールされました。 …………restart…..this is windows.