Windows
Install LTO Network full node plus supporting tools on Windows 10.
LTO Network full node
The LTO full node is comprised of a set of Docker containers. For development, use docker compose as orchestration tool.
Docker Desktop
Download Docker Desktop for Windows.
Double-click
Docker Desktop for Windows Installer.exe
to run the installer.Docker does not start automatically. To start it, search for
Docker
and select Docker Desktop for Windows in the search results.
For more detailed instructions please read the Installation guide in the Docker documentation.
Docker Desktop includes docker compose, so it's not needed to install that separately.
LTO full node
Download the docker composer configuration file for LTO full node.
In PowerShell (or another terminal) run
docker-composer up
.
Live contracts tester
The live contract tester (lctest
) is build on Behat and runs on PHP. It requires PHP 7+ with the mongodb and yaml PECL extension.
PHP CLI
Install the Visual C++ Redistributable for Visual Studio 2015.
Download PHP for Windows. Recommended is the 64-bit Non-thread-safe version.
Expand the zip file into the path
C:\PHP7
.Configure PHP to run correctly on your system:
In the
C:\PHP7
folder, rename the filephp.ini-development
tophp.ini
.Edit the
php.ini
file in a text editor (e.g. Notepad++, Atom, or Sublime Text).Change the following settings in the file and save the file:
Uncomment the line that reads
; extension_dir = "ext"
(remove the;
so the line is justextension_dir = "ext"
).In the section where there are a bunch of
extension=
lines, uncomment the following lines:extension=php_curl.dll
extension=php_openssl.dll
extension=php_sodium.dll
Add
C:\PHP7
to your Windows system path:Open the System Control Panel.
Click 'Advanced System Settings'.
Click the 'Environment Variables...' button.
Click on the
Path
row under 'System variables', and click 'Edit...'Click 'New' and add the row
C:\PHP7
.Click OK, then OK, then OK, and close out of the System Control Panel.
Open PowerShell (or another terminal emulator), and type in
php -v
to verify PHP is working.
PECL extensions for PHP
MongoDB
Visit https://windows.php.net/downloads/pecl/releases/mongodb/ and choose the latest stable version (not alpha, beta or RC).
Download the version that matches your PHP installation. For PHP 7.3 64-bit Non-thread-safe, choose the version that ends with
7.3-nts-vc15-x64.zip
.Extract the zip file into path
C:\PHP7\ext
.Configure PHP to run correctly on your system and add the following line:
extension=php_mongodb.dll
.In PowerShell (or another terminal emulator) type
php --re mongodb
to verify the extension is installed correctly.
Yaml
Visit https://windows.php.net/downloads/pecl/releases/yaml/ and choose the latest stable version (not alpha, beta or RC).
Download the version that matches your PHP installation. For PHP 7.3 64-bit Non-thread-safe, choose the version that ends with
7.3-nts-vc15-x64.zip
.Extract the zip file into path
C:\PHP7\ext
.Configure PHP to run correctly on your system and add the following line:
extension=php_yaml.dll
.In PowerShell (or another terminal emulator) type
php --re yaml
to verify the extension is installed correctly.
lctest.phar
Download lctest.phar from the LTO livecontracs-tester repository.
Run
php lctest.phar
to verify it's working correctly.
Last updated