Subject: | Instructions for installing this module under Windows with VC2008 |
Due to a work-related task i had to install this module today and while
i had some difficulties, there is a workable path to get it done. As
such, i thought it would be nice to give you details on how to do it.
Prerequisites:
- Installation of ActivePerl
- Installation of Visual Studio C++ 2008
- nmake accessible in the path, download via google
- Installation of LibIconv for Windows
-- URL: http://gnuwin32.sourceforge.net/packages/libiconv.htm
-- relevant download: "Complete package, except sources"
Necessary steps:
1. Copy the contents of include and lib from LibIconv to the relevant
directories in "c:\Programme\Microsoft Visual Studio 9.0\VC"
2. Execute C:\Programme\Microsoft Visual C++ 2008 Express Edition
\Visual Studio Tools\Visual Studio 2008 Command Prompt
3. execute cpan
4. $ look Text::Iconv
5. Modify Makefile.PL as follows:
- Replace this line:
$config{LIBS} .= ' -liconv';
with:
$config{LIBS} .= ' /link libiconv.lib ';
- Replace this line:
$Config{ldflags}, $libs;
with:
$Config{ldflags};
6. perl Makefile.PL
7. nmake
8. nmake install
Explanation:
Instead of -liconv MS' compiler "cl.exe" requires "/link libiconv.lib"
for one and that this specific string occurs AFTER the source file name
for the other.