I am sorry, let me try again will full code paste below.
sonarknight@win-81 ~/OpenPLC_v3
$ ./
install.sh win
Installing OpenPLC on Windows
found wget. Skipping install
--2023-07-16 21:12:11--
https://mirrors.163.com/cygwin//x86_64/setup.bz2 Resolving
mirrors.163.com (mirrors.163.com)... 60.191.80.15, 64:ff9b::3cbf:500f
Connecting to
mirrors.163.com (mirrors.163.com)|60.191.80.15|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4430458 (4.2M) [application/octet-stream]
Saving to: ‘setup.bz2’
0K .......... .......... .......... .......... .......... 1% 76.1K 56s
50K .......... .......... .......... .......... .......... 2% 140K 43s
100K .......... .......... .......... .......... .......... 3% 1.58M 29s
150K .......... .......... .......... .......... .......... 4% 195K 27s
200K .......... .......... .......... .......... .......... 5% 611K 23s
250K .......... .......... .......... .......... .......... 6% 465K 20s
300K .......... .......... .......... .......... .......... 8% 228K 19s
350K .......... .......... .......... .......... .......... 9% 1.17M 17s
400K .......... .......... .......... .......... .......... 10% 464K 16s
450K .......... .......... .......... .......... .......... 11% 144K 17s
500K .......... .......... .......... .......... .......... 12% 6.04M 15s
550K .......... .......... .......... .......... .......... 13% 6.06M 14s
600K .......... .......... .......... .......... .......... 15% 409K 13s
650K .......... .......... .......... .......... .......... 16% 159K 14s
700K .......... .......... .......... .......... .......... 17% 7.99M 13s
750K .......... .......... .......... .......... .......... 18% 558K 12s
800K .......... .......... .......... .......... .......... 19% 96.4K 13s
850K .......... .......... .......... .......... .......... 20% 2.72M 13s
900K .......... .......... .......... .......... .......... 21% 109M 12s
950K .......... .......... .......... .......... .......... 23% 3.18M 11s
1000K .......... .......... .......... .......... .......... 24% 199K 11s
1050K .......... .......... .......... .......... .......... 25% 198K 11s
1100K .......... .......... .......... .......... .......... 26% 1.28M 11s
1150K .......... .......... .......... .......... .......... 27% 614K 10s
1200K .......... .......... .......... .......... .......... 28% 1013K 10s
1250K .......... .......... .......... .......... .......... 30% 476K 10s
1300K .......... .......... .......... .......... .......... 31% 87.8M 9s
1350K .......... .......... .......... .......... .......... 32% 138K 9s
1400K .......... .......... .......... .......... .......... 33% 13.6M 9s
1450K .......... .......... .......... .......... .......... 34% 2.04M 8s
1500K .......... .......... .......... .......... .......... 35% 464K 8s
1550K .......... .......... .......... .......... .......... 36% 298K 8s
1600K .......... .......... .......... .......... .......... 38% 1.19M 8s
1650K .......... .......... .......... .......... .......... 39% 428K 8s
1700K .......... .......... .......... .......... .......... 40% 193K 8s
1750K .......... .......... .......... .......... .......... 41% 293K 7s
1800K .......... .......... .......... .......... .......... 42% 2.68M 7s
1850K .......... .......... .......... .......... .......... 43% 334K 7s
1900K .......... .......... .......... .......... .......... 45% 210K 7s
1950K .......... .......... .......... .......... .......... 46% 98.8M 7s
2000K .......... .......... .......... .......... .......... 47% 1.26M 6s
2050K .......... .......... .......... .......... .......... 48% 191K 6s
2100K .......... .......... .......... .......... .......... 49% 93.2M 6s
2150K .......... .......... .......... .......... .......... 50% 509K 6s
2200K .......... .......... .......... .......... .......... 52% 405K 6s
2250K .......... .......... .......... .......... .......... 53% 303K 6s
2300K .......... .......... .......... .......... .......... 54% 397K 6s
2350K .......... .......... .......... .......... .......... 55% 700K 5s
2400K .......... .......... .......... .......... .......... 56% 268K 5s
2450K .......... .......... .......... .......... .......... 57% 785K 5s
2500K .......... .......... .......... .......... .......... 58% 289K 5s
2550K .......... .......... .......... .......... .......... 60% 845K 5s
2600K .......... .......... .......... .......... .......... 61% 273K 5s
2650K .......... .......... .......... .......... .......... 62% 819K 4s
2700K .......... .......... .......... .......... .......... 63% 196K 4s
2750K .......... .......... .......... .......... .......... 64% 642K 4s
2800K .......... .......... .......... .......... .......... 65% 1.03M 4s
2850K .......... .......... .......... .......... .......... 67% 202K 4s
2900K .......... .......... .......... .......... .......... 68% 872K 4s
2950K .......... .......... .......... .......... .......... 69% 1008K 4s
3000K .......... .......... .......... .......... .......... 70% 426K 3s
3050K .......... .......... .......... .......... .......... 71% 237K 3s
3100K .......... .......... .......... .......... .......... 72% 428K 3s
3150K .......... .......... .......... .......... .......... 73% 800K 3s
3200K .......... .......... .......... .......... .......... 75% 231K 3s
3250K .......... .......... .......... .......... .......... 76% 513K 3s
3300K .......... .......... .......... .......... .......... 77% 2.03M 3s
3350K .......... .......... .......... .......... .......... 78% 209K 3s
3400K .......... .......... .......... .......... .......... 79% 743K 2s
3450K .......... .......... .......... .......... .......... 80% 656K 2s
3500K .......... .......... .......... .......... .......... 82% 202K 2s
3550K .......... .......... .......... .......... .......... 83% 769K 2s
3600K .......... .......... .......... .......... .......... 84% 1.26M 2s
3650K .......... .......... .......... .......... .......... 85% 208K 2s
3700K .......... .......... .......... .......... .......... 86% 869K 2s
3750K .......... .......... .......... .......... .......... 87% 741K 1s
3800K .......... .......... .......... .......... .......... 88% 251K 1s
3850K .......... .......... .......... .......... .......... 90% 1.17M 1s
3900K .......... .......... .......... .......... .......... 91% 207K 1s
3950K .......... .......... .......... .......... .......... 92% 90.4M 1s
4000K .......... .......... .......... .......... .......... 93% 420K 1s
4050K .......... .......... .......... .......... .......... 94% 333K 1s
4100K .......... .......... .......... .......... .......... 95% 549K 0s
4150K .......... .......... .......... .......... .......... 97% 221K 0s
4200K .......... .......... .......... .......... .......... 98% 533K 0s
4250K .......... .......... .......... .......... .......... 99% 1.02M 0s
4300K .......... .......... ...... 100% 446K=11s
2023-07-16 21:12:25 (383 KB/s) - ‘setup.bz2’ saved [4430458/4430458]
Updated setup.ini
Package lynx is already installed, skipping
Package gcc-core is already installed, skipping
Package gcc-g++ is already installed, skipping
Package git is already installed, skipping
Package pkg-config is already installed, skipping
Package automake is already installed, skipping
Package autoconf is already installed, skipping
Package libtool is already installed, skipping
Package make is already installed, skipping
Installing python2
Unable to locate package python2
./background_installer.sh: line 196: /usr/bin/python2: No such file or directory
Collecting pip
Obtaining dependency information for pip from
https://files.pythonhosted.org/packages/02/65/f15431ddee78562355ccb39097bf9160a1689f2db40dc418754be98806a1/pip-23.2-py3-none-any.whl.metadata Using cached pip-23.2-py3-none-any.whl.metadata (4.2 kB)
Using cached pip-23.2-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 23.2
Uninstalling pip-23.2:
Successfully uninstalled pip-23.2
Successfully installed pip-23.2
./background_installer.sh: line 198: /usr/bin/python2: No such file or directory
./background_installer.sh: line 199: /usr/bin/python2: No such file or directory
./background_installer.sh: line 200: /usr/bin/python2: No such file or directory
./background_installer.sh: line 201: /usr/bin/python2: No such file or directory
Requirement already satisfied: pymodbus==2.5.3 in /usr/local/lib/python3.9/site-packages (2.5.3)
Requirement already satisfied: six>=1.15.0 in /usr/lib/python3.9/site-packages (from pymodbus==2.5.3) (1.16.0)
Requirement already satisfied: pyserial>=3.4 in /usr/local/lib/python3.9/site-packages (from pymodbus==2.5.3) (3.5)
[MATIEC COMPILER]
[ST OPTIMIZER]
[GLUE GENERATOR]
[OPEN DNP3]
[LIBMODBUS]
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: linking file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: linking file 'm4/libtool.m4'
libtoolize: linking file 'm4/ltoptions.m4'
libtoolize: linking file 'm4/ltsugar.m4'
libtoolize: linking file 'm4/ltversion.m4'
libtoolize: linking file 'm4/lt~obsolete.m4'
configure.ac:33: warning: The macro `AC_PROG_CC_STDC' is obsolete.
configure.ac:33: You should run autoupdate.
/mnt/share/cygpkgs/autoconf2.7/autoconf2.7.noarch/src/autoconf-2.71/lib/autoconf/c.m4:1666: AC_PROG_CC_STDC is expanded from...
configure.ac:33: the top level
configure.ac:33: installing 'build-aux/compile'
configure.ac:32: installing 'build-aux/missing'
src/Makefile.am: installing 'build-aux/depcomp'
------------------------------------------------------
Initialized build system. You can now run ./configure
------------------------------------------------------
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking for vfork.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-pc-cygwin
checking host system type... x86_64-pc-cygwin
configure: WARNING: Libtool does not cope well with whitespace in `pwd`
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/x86_64-pc-cygwin/bin/ld.exe
checking if the linker (/usr/x86_64-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 8192
checking how to convert x86_64-pc-cygwin file names to x86_64-pc-cygwin format... func_convert_file_noop
checking how to convert x86_64-pc-cygwin file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-pc-cygwin/bin/ld.exe option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_implib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for as... as
checking for dlltool... (cached) dlltool
checking for objdump... (cached) objdump
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for arpa/inet.h... yes
checking for byteswap.h... yes
checking for errno.h... yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for linux/serial.h... no
checking for netdb.h... yes
checking for netinet/in.h... yes
checking for netinet/tcp.h... yes
checking for sys/ioctl.h... yes
checking for sys/params.h... no
checking for sys/socket.h... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking for termios.h... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking for asciidoc... no
checking for xmlto... no
checking whether to build documentation... no
configure: WARNING: The tools to build the documentation aren't installed
checking for gcc options needed to detect all undeclared functions... none needed
checking whether __CYGWIN__ is declared... yes
checking for pid_t... yes
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for GNU libc compatible malloc... yes
checking for accept4... yes
checking for getaddrinfo... yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for strerror... yes
checking for strlcpy... yes
checking for inline... inline
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/x86_64-pc-cygwin/bin/ld.exe
checking if the linker (/usr/x86_64-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking whether the g++ linker (/usr/x86_64-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC
checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/x86_64-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking for int64_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint8_t... yes
checking whether TIOCSRS485 is declared... no
checking whether TIOCM_RTS is declared... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/modbus-version.h
config.status: creating src/win32/modbus.dll.manifest
config.status: creating tests/Makefile
config.status: creating doc/Makefile
config.status: creating libmodbus.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: creating tests/unit-test.h
config.status: tests/unit-test.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
libmodbus 3.1.4
===============
prefix: /usr/local
sysconfdir: ${prefix}/etc
libdir: ${exec_prefix}/lib
includedir: ${prefix}/include
compiler: gcc
cflags: -g -O2
ldflags:
documentation: no
tests: yes
Making install in src
CC modbus.lo
CC modbus-data.lo
CC modbus-rtu.lo
CC modbus-tcp.lo
CCLD
libmodbus.la /usr/bin/mkdir -p '/usr/local/lib'
/bin/sh ../libtool --mode=install /usr/bin/install -c
libmodbus.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libmodbus.dll.a /usr/local/lib/libmodbus.dll.a
libtool: install: base_file=`basename libmodbus.la`
libtool: install: dlpath=`/bin/sh 2>&1 -c '. .libs/'libmodbus.la'i; echo cygmodbus-5.dll'`
libtool: install: dldir=/usr/local/lib/`dirname ../bin/cygmodbus-5.dll`
libtool: install: test -d /usr/local/lib/../bin || mkdir -p /usr/local/lib/../bin
libtool: install: /usr/bin/install -c .libs/cygmodbus-5.dll /usr/local/lib/../bin/cygmodbus-5.dll
libtool: install: chmod a+x /usr/local/lib/../bin/cygmodbus-5.dll
libtool: install: if test -n '' && test -n 'strip --strip-unneeded'; then eval 'strip --strip-unneeded /usr/local/lib/../bin/cygmodbus-5.dll' || exit 0; fi
libtool: install: /usr/bin/install -c .libs/libmodbus.lai /usr/local/lib/
libmodbus.la /usr/bin/mkdir -p '/usr/local/include/modbus'
/usr/bin/install -c -m 644 modbus.h modbus-version.h modbus-rtu.h modbus-tcp.h '/usr/local/include/modbus'
Making install in doc
make[2]: Nothing to be done for 'install-exec-am'.
Making install in tests
CC bandwidth-server-one.o
CCLD bandwidth-server-one.exe
CC bandwidth-server-many-up.o
CCLD bandwidth-server-many-up.exe
CC bandwidth-client.o
CCLD bandwidth-client.exe
CC random-test-server.o
CCLD random-test-server.exe
CC random-test-client.o
CCLD random-test-client.exe
CC unit-test-server.o
CCLD unit-test-server.exe
CC unit-test-client.o
CCLD unit-test-client.exe
CC version.o
CCLD version.exe
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Nothing to be done for 'install-exec-am'.
/usr/bin/mkdir -p '/usr/local/share/doc/libmodbus'
/usr/bin/install -c -m 644 MIGRATION
README.md '/usr/local/share/doc/libmodbus'
/usr/bin/mkdir -p '/usr/local/lib/pkgconfig'
/usr/bin/install -c -m 644 libmodbus.pc '/usr/local/lib/pkgconfig'
[FINALIZING]
Activating Blank driver
Setting Platform
cat: ethercat: No such file or directory
Optimizing ST program...
Generating C files...
POUS.c
POUS.h
LOCATED_VARIABLES.h
VARIABLES.csv
Config0.c
Config0.h
Res0.c
Moving Files...
Compiling for Windows
Generating object files...
Generating glueVars...
Compiling main program...
Compilation finished successfully!
sonarknight@win-81 ~/OpenPLC_v3
$ ./
start_openplc.sh cp: cannot stat '/workdir/webserver/dnp3_default.cfg': No such file or directory
cp: cannot stat '/workdir/webserver/openplc_default.db': No such file or directory
./start_openplc.sh: line 28: python2.7: command not found
Regads team devs.