OnesComplement
Hi
 
I'm unable to get the Windows installer to complete as it fails saying it hasn't installed Cygwin.
 
I have also tried installing OpenPLC runtime manually but it fails when using Cygwin Terminal when entering the command    git clone https://github.com/thiagoralves/OpenPLC_v3.git
 
The error response is that it can't find the folder on github and/or the file OpenPLC_v3.git
 
This is an unfamiliar process for me. I have installed the OpenPLC runtime as far as it got, then using the uninstall option either on the windows app menu or desktop menu. This has been done several times, each time the install fails with and without Virus software running.
 
I operate a single user laptop and have access as administrator.
 
Just wondering if anyone can give me suggestions of things to try ?
 
Thank you.
   Simon
Reply 0 0
thiagoralves
Can you paste the exact error you’re facing when you type the got clone command on Cygwin?
Reply 0 0
OnesComplement
Thank you for replying Thiagoralves.
 
Here are responses to the automatic and manual  OpenPLC Runtime installation.
 
---------------------------------------------------------------------------------------
 
Below is response to automatic install of OpenPLC runtime in Window10 64 Bit
 
Cygwin is not installed. Please restart OpenPLC Installer. Press any key to continue
 
Repeated installation attempts show the same error message.
 
-----------------------------------------------------------------------
 
Below is response for attempted manual install of OpenPLC runtime in Window10 64 Bit
 
PS C:\Users\One's Complement\downloads> .\setup-x86_64.exe -B -q -P ca-certificates,wget,gcc-core,gcc-g++,git,pkg-config,automake,autoconf,libtool,make,python2,python2-pip,sqlite3
User has NO symlink creation right
Current Directory: C:\Users\One's
root: C:\Users\One's user
Changing gid back to original
Selected local directory: C:\Users\One's
net: Preconfig
site: https://cygwin.mirror.constant.com/
Package 'python2' not found.
solving: 12 tasks, update: no, use test packages: no
solving: 40 tasks, update: no, use test packages: no
Augmented Transaction List:
0 install binutils 2.41-1
1 install cygwin-devel 3.4.7-1
2 install libatomic1 11.4.0-1
3 install libffi8 3.4.3-1
4 install libgc1 8.2.4-1
5 install libgomp1 11.4.0-1
6 install libisl23 0.26-1
7 install libltdl7 2.4.7-1
8 install libmpc3 1.3.1-1
9 install libpkgconf4 1.9.5-1
10 install libquadmath0 11.4.0-1
11 install libsqlite3_0 3.34.0-1
12 install m4 1.4.19-1
13 install python2-pip 20.3.3-2
14 install texinfo 7.0.3-3
15 install w32api-headers 11.0.1-1
16 install windows-default-manifest 6.4-2
17 install libguile3.0_1 3.0.9-2
18 install libtool 2.4.7-1
19 install pkgconf 1.9.5-1
20 install sqlite3-vfslog 3.34.0-1
21 install autoconf2.7 2.71-2
22 install autoconf2.5 2.69-5
23 install autoconf2.1 2.13-12
24 install w32api-runtime 11.0.1-1
25 install make 4.4.1-2
26 install pkg-config 1.9.5-1
27 install sqlite3 3.34.0-1
28 install autoconf 15-1
29 install gcc-core 11.4.0-1
30 install automake1.9 1.9.6-11
31 install automake1.16 1.16.5-1
32 install automake1.15 1.15.1-2
33 install automake1.14 1.14.1-3
34 install automake1.13 1.13.4-2
35 install automake1.12 1.12.6-3
36 install automake1.11 1.11.6-3
37 install automake1.10 1.10.3-3
38 install gcc-g++ 11.4.0-1
39 install automake 11-1
mbox fatal: Can't open C:\Users\One's/https%3a%2f%2fcygwin.mirror.constant.com%2f/x86_64/release/binutils/binutils-2.41-1.tar.zst.tmp for writing: No such file or directory
unattended_mode is set at mbox: returning default value
Ending cygwin install
 

-bash-5.2$ git clone https://github.com/thiagoralves/OpenPLC_v3.git
Cloning into 'OpenPLC_v3'...
remote: Enumerating objects: 5826, done.
remote: Counting objects: 100% (849/849), done.
remote: Compressing objects: 100% (392/392), done.
remote: Total 5826 (delta 485), reused 712 (delta 417), pack-reused 4977
Receiving objects: 100% (5826/5826), 15.99 MiB | 5.11 MiB/s, done.
Resolving deltas: 100% (3172/3172), done.
Updating files: 100% (2784/2784), done.
-bash-5.2$ cd OpenPLC_v3
-bash-5.2$ ./ install.sh win
Installing OpenPLC on Windows
./background_installer.sh: line 182: /cygdrive/c/WinAVR-20100110/utils/bin/insta
ll: Permission denied
./background_installer.sh: line 183: apt-cyg: command not found
./background_installer.sh: line 184: apt-cyg: command not found
Installing Python 2.7
/usr/bin/tar: This does not look like a tar archive
/usr/bin/tar: Skipping to next header
/usr/bin/tar: 496 garbage bytes ignored at end of archive
/usr/bin/tar: Error exit delayed from previous errors
./background_installer.sh: line 189: rsync: command not found
./background_installer.sh: line 190: rsync: command not found
./background_installer.sh: line 191: /etc/postinstall/python2.sh: No such file o
r directory
/usr/bin/ln: creating symbolic link `/usr/bin/python2' to `/usr/bin/python2.7.ex
e': No such file or directory
./background_installer.sh: line 197: apt-cyg: command not found
./background_installer.sh: line 198: lynx: command not found
./background_installer.sh: line 199: lynx: command not found
./background_installer.sh: line 200: /usr/bin/python2: No such file or directory
./background_installer.sh: line 201: /usr/bin/python3: No such file or directory
./background_installer.sh: line 202: /usr/bin/python2: No such file or directory
./background_installer.sh: line 203: /usr/bin/python2: No such file or directory
./background_installer.sh: line 204: /usr/bin/python2: No such file or directory
./background_installer.sh: line 205: /usr/bin/python2: No such file or directory
./background_installer.sh: line 206: /usr/bin/python3: No such file or directory

[MATIEC COMPILER]
[ST OPTIMIZER]
./background_installer.sh: line 220: g++: command not found
/usr/bin/cp: cannot stat `./st_optimizer.exe': No such file or directory
Error compiling ST Optimizer
OpenPLC was NOT installed!
-bash-5.2$
Reply 0 0
thiagoralves
Your username is messing up with Cygwin config files. On the manual install, try to install Cygwin somewhere else, like C:\Cygwin for example, including the basic packets required for apt-cyg. The easiest way is to invoke the Cygwin setup exe from command prompt like this:
setup-x86_64.exe -B -q -P wget,ca-certificates,gnupg,libiconv
Then proceed to the installation as usual, with git clone …
Reply 0 0
OnesComplement
 
setup-x86_64.exe -B -q -P wget,ca-certificates,gnupg,libiconv
gives the appearance of completing and installing files in c:\cygwin.
 
However I do see one warning/error (?):
 
io_stream_cygfile: fopen(/etc/setup/timestamp) failed 2 No such file or directory
io_stream_cygfile: fopen(/etc/setup/installed.db) failed 2 No such file or directory
solving: 42 tasks, update: no, use test packages: no
mbox Cygwin Setup: In order to use libusb0, you must download and run the
LibUSB-Win32 driver installer from:
https://sourceforge.net/projects/libusb-win32/files/libusb-win32-releases/1.2.6.0/libusb-win32-devel-filter-1.2.6.0.exe

Is this important ?
 
The git clone step appears to work, but ./ install.sh win fails as shown below
 
git clone https://github.com/thiagoralves/OpenPLC_v3.git
Cloning into 'OpenPLC_v3'...
remote: Enumerating objects: 5826, done.
remote: Counting objects: 100% (849/849), done.
remote: Compressing objects: 100% (400/400), done.
remote: Total 5826 (delta 483), reused 706 (delta 409), pack-reused 4977Receivin
g objects: 100% (5826/5826), 15.92 MiB | 520.00 KiB/s
Receiving objects: 100% (5826/5826), 15.99 MiB | 433.00 KiB/s, done.
Resolving deltas: 100% (3170/3170), done.
Updating files: 100% (2784/2784), done.
-bash-5.2$ cd OpenPLC_v3
-bash-5.2$ ./ install.sh win
Installing OpenPLC on Windows
./background_installer.sh: line 182: /cygdrive/c/WinAVR-20100110/utils/bin/insta
ll: Permission denied
./background_installer.sh: line 183: apt-cyg: command not found
./background_installer.sh: line 184: apt-cyg: command not found
Installing Python 2.7
/usr/bin/tar: This does not look like a tar archive
/usr/bin/tar: Skipping to next header
/usr/bin/tar: 496 garbage bytes ignored at end of archive
/usr/bin/tar: Error exit delayed from previous errors
./background_installer.sh: line 189: rsync: command not found
./background_installer.sh: line 190: rsync: command not found
./background_installer.sh: line 191: /etc/postinstall/python2.sh: No such file o
r directory
/usr/bin/ln: creating symbolic link `/usr/bin/python2' to `/usr/bin/python2.7.ex
e': No such file or directory
./background_installer.sh: line 197: apt-cyg: command not found
./background_installer.sh: line 198: lynx: command not found
./background_installer.sh: line 199: lynx: command not found
./background_installer.sh: line 200: /usr/bin/python2: No such file or directory
./background_installer.sh: line 201: /usr/bin/python3: No such file or directory
./background_installer.sh: line 202: /usr/bin/python2: No such file or directory
./background_installer.sh: line 203: /usr/bin/python2: No such file or directory
./background_installer.sh: line 204: /usr/bin/python2: No such file or directory
./background_installer.sh: line 205: /usr/bin/python2: No such file or directory
./background_installer.sh: line 206: /usr/bin/python3: No such file or directory

[MATIEC COMPILER]
[ST OPTIMIZER]
./background_installer.sh: line 220: g++: command not found
/usr/bin/cp: cannot stat `./st_optimizer.exe': No such file or directory
Error compiling ST Optimizer
OpenPLC was NOT installed!
Reply 0 0
thiagoralves
You’re facing similar problems than before. Something seems to be really broken on your system. Do you have admin privileges?
Reply 0 0
OnesComplement
I have admin privileges.

I'm the only user of the standalone PC which is not networked.



Do you have any more suggestions of things to try ?



Thankyou.
Reply 0 0
thiagoralves
I don’t know what’s wrong. Just tested the installer and it works fine on my Win 11 VM. Perhaps it will be easier to just install the runtime on a Ubuntu Linux VM
Reply 0 0
Reply