2016-10-24 7 views
0

で作られた実行ファイルは「libexpat-1_.dll」というエラーが表示されない私はイチゴのPerlを使用して、PPとexeファイルを作ったが、私は別のマシン上でそれを実行すると、私は次のエラーを取得する:は、PP

The program can't start because libexpat-1__.dll is missing from your computer. Try reinstalling the program to fix this problem. 

私が作りますこのコマンドで実行可能:

pp -M FindBin -M DateTime -M DateTime::Format::JSON::MicrosoftDateFormat -M DateTime::Format::DateParse -M REST::Client -M JSON::XS -M Spreadsheet::ParseExcel -M Spreadsheet::ParseXLSX -M Log::Log4perl::Tiny -o test.exe test.pl 

私は-a "c:\strawberry\c\bin\libexpat-1_.dll"を使用してみました(助けにはならなかった)と-l "c:\strawberry\c\bin\libexpat-1_.dll"(「共有ライブラリを見つけることができません..」エラー)。

この問題を解決するにはどうすればよいですか?

答えて

1

私はDLL名でタイプミスがありました。 -lオプションを使用して問題を解決しました。 ppは使用されているモジュールのスクリプトをスキャンし、自動的にそれらを含むので、コマンドでモジュールを指定する必要はありませんでした。それを組み込んだ:

pp -l "libexpat-1__.dll" -o test.exe test.pl 
関連する問題