dom
Hi,
I tried to install openPlc following instructions  on the windows page  . It didnt work. Any ideas ?

Thanks
Dom

the log:
./ install.sh win
Installing OpenPLC on Windows
--21:46:34-- http:slash slash mirror.checkdomain.de slash cygwin/x86_64/setup.bz2
=> `setup.bz2'
Resolving mirror.checkdomain.de... done.
Connecting to mirror.checkdomain.de[46.4.50.2]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4,268,378 [application/x-bzip2]

0K .......... .......... .......... .......... .......... 1% 1000.00 KB/s
50K .......... .......... .......... .......... .......... 2% 2.03 MB/s
100K .......... .......... .......... .......... .......... 3% 4.44 MB/s
150K .......... .......... .......... .......... .......... 4% 4.07 MB/s
.....
4050K .......... .......... .......... .......... .......... 98% 12.21 MB/s
4100K .......... .......... .......... .......... .......... 99% 24.41 MB/s
4150K .......... ........ 100% 8.95 MB/s

21:46:35 (7.48 MB/s) - `setup.bz2' saved [4268378/4268378]

Updated setup.ini
Installing lynx
lynx-2.8.7-2.tar.bz2: OK
Unpacking...
Package lynx requires the following packages, installing:
bash cygwin libiconv2 libintl8 libncursesw10 libopenssl100 zlib0
Package bash is already installed, skipping
Package cygwin is already installed, skipping
Package libiconv2 is already installed, skipping
Package libintl8 is already installed, skipping
Package libncursesw10 is already installed, skipping
Package libopenssl100 is already installed, skipping
Package zlib0 is already installed, skipping
Running /etc/postinstall/ lynx.sh
Package lynx installed
Installing wget
wget-1.21.1-1.tar.xz: FAILED
sha512sum: WARNING: 1 computed checksum did NOT match
wget is not installed, using lynx as fallback
C:/Users/domin/OpenPLC/Runtime/bin/lynx.exe: error while loading shared libraries: cygssl-1.0.0.dll: cannot open shared object file: No such file or directory
wget-1.21.1-1.tar.xz: FAILED
sha512sum: WARNING: 1 computed checksum did NOT match
C:/Users/domin/OpenPLC/Runtime/bin/lynx.exe: error while loading shared libraries: cygssl-1.0.0.dll: cannot open shared object file: No such file or directory
C:/Users/domin/OpenPLC/Runtime/bin/lynx.exe: error while loading shared libraries: cygssl-1.0.0.dll: cannot open shared object file: No such file or directory
./background_installer.sh: line 156: /usr/bin/python2: No such file or directory
./background_installer.sh: line 157: /usr/bin/python3: No such file or directory
./background_installer.sh: line 158: /usr/bin/python2: No such file or directory
./background_installer.sh: line 159: /usr/bin/python2: No such file or directory
./background_installer.sh: line 160: /usr/bin/python2: No such file or directory
./background_installer.sh: line 161: /usr/bin/python2: No such file or directory
./background_installer.sh: line 162: /usr/bin/python3: No such file or directory

[MATIEC COMPILER]

[ST OPTIMIZER]
./background_installer.sh: line 176: g++: command not found
cp: cannot stat './st_optimizer.exe': No such file or directory
Error compiling ST Optimizer
OpenPLC was NOT installed!
Reply 0 0
thiagoralves
Your installation is messed up. Remove everything (use the uninstaller on the windows menu) and start again.
Reply 0 0
dom
Good news. Finally OpenPLC is installed. I tried on windows7. There was no problem. With W10, I tried different methods. Installing cygwin manually with only the git package (as say in doc) did not  operate .
well i tried this one :
First, erase all the installation with unistall utility. Then launch OpenPLC Installer. The last commands did not execure for obscure reasons. there are:
Execute: "C:\Windows\system32\cmd.exe" /c START "" /WAIT "C:\Users\domin\OpenPLC\install_cygwin.cmd"
Execute: "C:\Windows\system32\cmd.exe" /c START "" /WAIT "C:\Users\domin\OpenPLC\install_runtime.cmd"

So installing cygwin manually: downloading and launching setup-x86_64.exe.  Here I installed this packages manually : ca-certificates,wget,gcc-core,gcc-g++,git,pkg-config,automake,autoconf,libtool,make,python2,python2-pip,sqlite3 . 
After I launched a rebase. And runtime works.
Hope this helps someone.
Dom
Reply 1 0
Samke
dom wrote:
Good news. Finally OpenPLC is installed. I tried on windows7. There was no problem. With W10, I tried different methods. Installing cygwin manually with only the git package (as say in doc) did not  operate .
well i tried this one :
First, erase all the installation with unistall utility. Then launch OpenPLC Installer. The last commands did not execure for obscure reasons. there are:
Execute: "C:\Windows\system32\cmd.exe" /c START "" /WAIT "C:\Users\domin\OpenPLC\install_cygwin.cmd"
Execute: "C:\Windows\system32\cmd.exe" /c START "" /WAIT "C:\Users\domin\OpenPLC\install_runtime.cmd"

So installing cygwin manually: downloading and launching setup-x86_64.exe.  Here I installed this packages manually : ca-certificates,wget,gcc-core,gcc-g++,git,pkg-config,automake,autoconf,libtool,make,python2,python2-pip,sqlite3 . 
After I launched a rebase. And runtime works.
Hope this helps someone.
Dom


I tried it like this and it worked but when I open Runtime i get this error

Verifying Runtime Installation...

 * Serving Flask app "webserver" (lazy loading)

 * Environment: production

   WARNING: This is a development server. Do not use it in a production deployment.

   Use a production WSGI server instead.

 * Debug mode: off

Traceback (most recent call last):

  File "webserver.py", line 2405, in <module>

    app.run(debug=False, host='0.0.0.0', threaded=True, port=8080)

  File "/usr/lib/python2.7/site-packages/flask/app.py", line 990, in run

    run_simple(host, port, self, **options)

  File "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 1052, in run_simple

    inner()

  File "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 1005, in inner

    fd=fd,

  File "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 848, in make_server

    host, port, app, request_handler, passthrough_errors, ssl_context, fd=fd

  File "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 740, in __init__

    HTTPServer.__init__(self, server_address, handler)

  File "/usr/lib/python2.7/SocketServer.py", line 420, in __init__

    self.server_bind()

  File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind

    SocketServer.TCPServer.server_bind(self)

  File "/usr/lib/python2.7/SocketServer.py", line 434, in server_bind

    self.socket.bind(self.server_address)

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

socket.error: [Errno 112] Address already in use

Press [Enter] key to close...


I have no idea what's wrong
Reply 0 0
thiagoralves
socket.error: [Errno 112] Address already in use

This means that something else is using port 8080 on your computer. OpenPLC needs that port free to run. Check what is using port 8080 and kill that process to be able to run OpenPLC.
Reply 0 0
Samke
It's working now, thank you!

I found the thing using the address using TPCView and killed the process. 
Reply 0 0
AbuSyazia
Hi @dom,
Apreciate your help. I follow your explanation and can successfully run PLC RunTime 👌

Also thank you very much for @thiagoralves 👍
Reply 0 0
Reply