lnet installation failed on Windows 8.1
lazarus / 38-Networking and Web Programming
----------------------------------------------------------------------
jimmarek · 2014-02-11 04:22
I installed Lazarus 1.0.14 to C:\lazarus and unzipped lnet-0.65.zip in
lazarus\components. When I did a cd \lazarus\components\lnet and ran
make, I got error reported below. There are a few commands that
identify the versions of the software, then the make command. Can you
tell what file the system cannot find?
C:\lazarus\components\lnet>ver
Microsoft Windows [Version 6.3.9600]
C:\lazarus\components\lnet>wmic os get Caption
Caption
Microsoft Windows 8.1
C:\lazarus\components\lnet>grep -e "Version|Compiler"
C:\lazarus\environmentoptions.xml
File C:\lazarus\environmentoptions.xml:
C:\lazarus\components\lnet>make
make -C examples OPT=
make[1]: Entering directory `C:/lazarus/components/lnet/examples'
make -C console OPT=
make[2]: Entering directory
`C:/lazarus/components/lnet/examples/console'
make -C ltcp OPT=
make[3]: Entering directory
`C:/lazarus/components/lnet/examples/console/ltcp'
fpc -Fu../../../lib -Fi../../../lib/sys -Sm -FU../units -FE. -O2 -XX
-Xs lserver
process_begin: CreateProcess((null), fpc -Fu../../../lib
-Fi../../../lib/sys -Sm -FU../units -FE. -O2 -XX -Xs lserver, ...)
failed.
make (e=2): The system cannot find the file specified.
make[3]: *** [all] Error 2
make[3]: Leaving directory
`C:/lazarus/components/lnet/examples/console/ltcp'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`C:/lazarus/components/lnet/examples/console'
make[1]: *** [all] Error 2
make[1]: Leaving directory `C:/lazarus/components/lnet/examples'
make: *** [all] Error 2
C:\lazarus\components\lnet>
----------------------------------------------------------------------
engkin · 2014-02-11 04:50
I'm not sure why you used Make. I assume you wanted to install lNet.
According to this wiki page:
QuoteInstallation
LNet 0.5+:
In the lazarus/components directory, unzip the files from
lnet-.zip file. The lnet- folder will be created.
Open Lazarus
Open the package lnet-/lazaruspackage/lnetvisual.lpk with
Component/Open package file (.lpk)
Click on Install and answer 'Yes' when you are asked about Lazarus
rebuilding. A new tab named 'lNet' will be created in the components
palette.
----------------------------------------------------------------------
marcov · 2014-02-11 06:19
Either FPC is not properly installed, or it is not in the path, or
other directories in the path have certain tools that are similar to
FPCs.
Make sure FPC is in your PATH
----------------------------------------------------------------------
jimmarek · 2014-02-11 20:53
marcov: the make works much better with fpc in PATH. Thank you.
engkin: I ran make because the "INSTALL" file says 'For LNET, LTCP,
LUDP, LFTP and LSMTP all you need to do is type "make".' Is this
obsolete? Do the wiki instructions work better than the "INSTALL"
instructions?
Thank you, both, Jim
----------------------------------------------------------------------
engkin · 2014-02-11 21:29
Quote from: jimmarek on February 11, 2014, 09:53:45 pmengkin: I ran
make because the "INSTALL" file says 'For LNET, LTCP, LUDP, LFTP and
LSMTP all you need to do is type "make".' Is this obsolete? Do the
wiki instructions work better than the "INSTALL" instructions?
I did not know about using make for this. Marcov's post is the correct
answer. Thank you for mentioning the reason.