PerlをPostgreSQLにインストールする、指定されたモジュールが見つかりませんでした.
ここでは、WindowsにPerlをインストールする方法を説明するいくつかの手順を示します
PostgreSQL
**
1)http://www.activestate.com/downloads/index.mhtml[ActivePerl]をインストールして、WindowsがPerlスクリプトをサポートするようにします。
{空} 2)Perl binフォルダをWindows環境変数に設定する
3)PostgreSQLを再起動します。
{空} 4)Createlangコマンドを発行する+
C:\>createlang -U postgres plperl DB__NAME
C:\> createlang -U postgres plperl postgres createlang:言語のインストールに失敗しました:エラー:ライブラリ "C:/Program Files/PostgreSQ L/8.2/lib/plperl.dll"を読み込めませんでした:指定されたモジュールが見つかりませんでした。
+ 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 …私は “Dependency walker”でチェックします。すべてはOKです。すべてのdllファイル
読み込まれます。それは私を狂ってしまい、すぐにPostgreSQLをシャットダウンします。
数時間後、私は再びPostgreSQLを起動し、コマンドを発行しました
C:\> createlang -U postgres plperl DB__NAME
うわー、私のPostgreSQLにインストールされたplperlが成功しました。 …………再起動…..これは
窓。