Skip Menu |

This queue is for tickets about the Text-Iconv CPAN distribution.

Report information
The Basics
Id: 47311
Status: open
Priority: 0/
Queue: Text-Iconv

People
Owner: Nobody in particular
Requestors: MITHALDU [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.7
Fixed in: (no value)



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.
On Wed Jun 24 14:10:16 2009, MITHALDU wrote: Show quoted text
> 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.
I did something slightly different. Crude patch included.
Subject: 0001-bulk88-s-way-of-compiling-this-on-Visual-C.patch
From 465d50314d1496a633e32b06a38094dfe476deb8 Mon Sep 17 00:00:00 2001 From: bulk88 <bulk88@hotmail.com> Date: Mon, 7 Jan 2013 19:18:30 -0500 Subject: [PATCH] bulk88's way of compiling this on Visual C this commit is for https://github.com/gitpan/Text-Iconv --- Makefile.PL | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index f7b12d1..7ba906d 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -33,7 +33,7 @@ while ($i <= $#ARGV) ############################################################################### # Check for iconv. -if ($config{LIBS} or $config{INC}) +if ($config{LIBS} or $config{INC} or 1) { print "Your settings:\n", " LIBS: ", $config{LIBS}, "\n", " INC: ", $config{INC}, "\n"; @@ -48,13 +48,14 @@ if (linktest($config{LIBS}, $config{INC})) } elsif ($config{LIBS} !~ /-liconv/) { - $config{LIBS} .= ' -liconv'; + $config{LIBS} .= ' /link libiconv.lib '; if (linktest($config{LIBS}, $config{INC})) { $ok = 1; print "ok (added -liconv)\n"; } + $ok = 1; } if ($ok) @@ -88,9 +89,10 @@ WriteMakefile( ($] >= 5.005 ? ## Add these new keywords supported since 5.005 (ABSTRACT_FROM => 'Iconv.pm', # retrieve abstract from module AUTHOR => 'Michael Piotrowski <mxp@dynalabs.de>') : ()), - 'LIBS' => $config{LIBS}, + #'LIBS' => $config{LIBS}, 'DEFINE' => "@DEFINE", - 'INC' => $config{INC}, + 'INC' =>' "-IC:\sources\GnuWin32\include" ', + dynamic_lib => { OTHERLDFLAGS => ' "C:\sources\GnuWin32\lib\libiconv.lib" '}, 'dist' => {COMPRESS => 'gzip', SUFFIX => 'gz'}, ); -- 1.7.9.msysgit.0