From: Dilbert on
On 16 mai, 22:36, Ben Morrow <b...(a)morrow.me.uk> wrote:
> Quoth Dilbert <dilbert1...(a)gmail.com>:
>
>
>
> > I have downloaded and unzipped "mingw-w64-bin_x86_64-
> > mingw_20100515_sezero.zip" (that's "...20100515..." and not "...
> > 20100428...") fromhttp://sourceforge.net/projects/mingw-w64/files.
>
> > Then I added the "mingw64\bin" directory to the path.
>
> <snip>
>
> > Now I want to download and make Text::CSV_XS, but unfortunately there
> > is an error "gcc.exe: CreateProcess: No such file or directory"
>
> > C:\Users\CK\Documents\PerlModules\Text-CSV_XS\Text-CSV_XS-0.73>dmake
> > cp CSV_XS.pm blib\lib\Text\CSV_XS.pm
> > C:\Perl64\bin\perl.exe C:\Perl64\lib\ExtUtils\xsubpp  -typemap C:
> > \Perl64\lib\ExtUtils\typemap  CSV_XS.xs > CSV_XS.xsc && C:\Perl64\bin\
> > perl.exe -MExtUtils::Command -e "mv" -- CSV_XS.xsc CSV_XS.c
> > C:/Users/CK/DOCUME~1/PROGRA~2/MINGW6~1/gcc.exe -c       -DNDEBUG -
>
>               ^^^^^^^^^^^^^^^^^^^^^^^^^^
> Is this a 'spaces in the path' or 'path too long' problem? Can you
> install the compiler somewhere like c:\mingw64 and try again?

Unfortunately I can't reproduce this error anymore, I don't know what
happened, but it works now and whatever I try, I can't make it fail.

Anyway, thanks very much for your input

==============================================
Here is my successful run

C:\Users\CK\Documents\PerlModules\Text-CSV_XS\Text-CSV_XS-0.73>perl -v

This is perl 5, version 12, subversion 0 (v5.12.0) built for MSWin32-
x64-multi-thread
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2010, Larry Wall

Binary build 1200 [292396] provided by ActiveState http://www.ActiveState.com
Built Apr 10 2010 22:58:59

Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5 source
kit.

Complete documentation for Perl, including FAQ lists, should be found
on
this system using "man perl" or "perldoc perl". If you have access to
the
Internet, point your browser at http://www.perl.org/, the Perl Home
Page.

C:\Users\CK\Documents\PerlModules\Text-CSV_XS\Text-CSV_XS-0.73>perl
Makefile.PL
Set up gcc environment - 4.4.5 20100513 (prerelease) [svn/rev.159365 -
mingw-w64/oz]
Checking if your kit is complete...
Looks good
Writing Makefile for Text::CSV_XS

C:\Users\CK\Documents\PerlModules\Text-CSV_XS\Text-CSV_XS-0.73>dmake
cp CSV_XS.pm blib\lib\Text\CSV_XS.pm
C:\Perl64\bin\perl.exe C:\Perl64\lib\ExtUtils\xsubpp -typemap C:
\Perl64\lib\ExtUtils\typemap CSV_XS.xs > CSV_XS.xsc && C:\Perl64\bin\
perl.exe -MExtUtils::Command -e "mv" -- CSV_XS.xsc CSV_XS.c
C:/Users/CK/DOCUME~1/PROGRA~1/MinGW64/mingw64/bin/gcc.exe -c -
DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCON
SERVATIVE -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -
DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -DHASATTRIBUTE -
fno-strict
-aliasing -mms-bitfields -s -O2 -DVERSION=\"0.73\" -
DXS_VERSION=\"0.73\" "-IC:\Perl64\lib\CORE" CSV_XS.c
Running Mkbootstrap for Text::CSV_XS ()
C:\Perl64\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 CSV_XS.bs
C:\Perl64\bin\perl.exe -MExtUtils::Mksymlists \
-e "Mksymlists('NAME'=>\"Text::CSV_XS\", 'DLBASE' => 'CSV_XS',
'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS'
=> []);"
Set up gcc environment - 4.4.5 20100513 (prerelease) [svn/rev.159365 -
mingw-w64/oz]
dlltool --def CSV_XS.def --output-exp dll.exp
C:\Users\CK\DOCUME~1\PROGRA~1\MinGW64\mingw64\bin\g++.exe -o blib\arch
\auto\Text\CSV_XS\CSV_XS.dll -Wl,--base-file -Wl,dll.base -s -mdl
l -L"C:\Perl64\lib\CORE" CSV_XS.o -Wl,--image-base,0x1b000000 C:
\Perl64\bin\perl512.dll -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdl
g32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32
-lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 -lmsvcrt
dll.exp
dlltool --def CSV_XS.def --base-file dll.base --output-exp dll.exp
C:\Users\CK\DOCUME~1\PROGRA~1\MinGW64\mingw64\bin\g++.exe -o blib\arch
\auto\Text\CSV_XS\CSV_XS.dll -s -mdll -L"C:\Perl64\lib\CORE" CSV_
XS.o -Wl,--image-base,0x1b000000 C:\Perl64\bin\perl512.dll -lkernel32
-luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lol
e32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -
lodbc32 -lodbccp32 -lcomctl32 -lmsvcrt dll.exp
C:\Perl64\bin\perl.exe -MExtUtils::Command -e "chmod" -- 755 blib\arch
\auto\Text\CSV_XS\CSV_XS.dll
C:\Perl64\bin\perl.exe -MExtUtils::Command -e "cp" -- CSV_XS.bs blib
\arch\auto\Text\CSV_XS\CSV_XS.bs
C:\Perl64\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 blib\arch
\auto\Text\CSV_XS\CSV_XS.bs
C:\Perl64\bin\perl.exe "-Iblib\arch" "-Iblib\lib" CSV_XS.PL CSV_XS

From: sisyphus on
On May 17, 6:36 am, Ben Morrow <b...(a)morrow.me.uk> wrote:

> > C:/Users/CK/DOCUME~1/PROGRA~2/MINGW6~1/gcc.exe -c       -DNDEBUG -
>
>               ^^^^^^^^^^^^^^^^^^^^^^^^^^
> Is this a 'spaces in the path' or 'path too long' problem?

I think this is just ActiveState's way of circumventing the 'spaces in
the path' problem. They use Win32::GetShortPathName() to convert to
the short pathname because that's guaranteed to contain no spaces.
Having the compiler installed in that location shouldn't be causing
any problems.

Cheers,
Rob
From: Dr.Ruud on
sisyphus wrote:
> On May 17, 6:36 am, Ben Morrow <b...(a)morrow.me.uk> wrote:

>>> C:/Users/CK/DOCUME~1/PROGRA~2/MINGW6~1/gcc.exe -c -DNDEBUG -
>> ^^^^^^^^^^^^^^^^^^^^^^^^^^
>> Is this a 'spaces in the path' or 'path too long' problem?
>
> I think this is just ActiveState's way of circumventing the 'spaces in
> the path' problem. They use Win32::GetShortPathName() to convert to
> the short pathname because that's guaranteed to contain no spaces.
> Having the compiler installed in that location shouldn't be causing
> any problems.

Good chance that "install the compiler somewhere like c:\mingw64", like
Ben proposed, will fix much.

--
Ruud