[fpc-devel] Fixes 2.6.1 fails to install under Win32

Michalis Kamburelis michalis.kambi at gmail.com
Wed Jan 30 03:22:28 CET 2013


Graeme Geldenhuys wrote:
> Hi,
>
> I'm using a Win2000, and have a released FPC 2.6.0 installed. I updated
> my FPC 2.6.1 to r23533 (latest revision to date). I run by usual
> build.bat script (shown below). FPC, RTL and FCL seems to compile fine,
> but the 'make install ...' seems to fail. I've never had such issues
> before. It seems like the Makefile is broken, if you look at the odd
> directory it tried to create.
>
> Anybody else experiencing this, or have a solution?
>
> ----8<-------------8<-------------8<-------------8<-------------8<----
> make distclean
> make all FPC=c:\FPC\2.6.0\bin\i386-win32\ppc386.exe
> make install INSTALL_PREFIX=c:\fpc\2.6.1\
> FPC=c:\FPC\2.6.0\bin\i386-win32\ppc386.exe
>
>
>
> ...snip...
> 6.exe --prefix=c:\fpc\2.6.1\
> --unitinstalldir=c:\fpc\2.6.1\/units/i386-win32/fcl
> -web
> Installing package fcl-web
> The installer encountered the following error:
> Failed to create directory "C:\fpc\2.6.1
> --unitinstalldir=c:\fpc\2.6.1\\units\i3
> 86-win32\fcl-web\units\i386-win32\fcl-web\"

Looks like using a backslash at the end of INSTALL_PREFIX=xxx argument 
quotes the following space, and so the whole thing becomes glued 
"C:\fpc\2.6.1" + space + "--unitinstalldir=...".

Do not use a final backslash, like

   make install INSTALL_PREFIX=c:\fpc\2.6.1

and things should be Ok. It would probably be even cleaner to use 
slashes everywhere:

   make install INSTALL_PREFIX=c:/fpc/2.6.1

Disclaimer: I didn't actually test this (not sitting on Windows right 
now), just guessing :)

Michalis



More information about the fpc-devel mailing list