Hi friends. I’m new here and I could use some help. I’m trying to operate OpenPLC on an arduino, following the instructions on the “OpenPLC and Arduino” page.
My first step is to setup the host - I’m trying to install Runtime on my linux PC and I’m having trouble installing OpenPLC Editor – I searched the forums and didn’t find anyone having the same issue. Following the instructions on the OpenPLC installation video, I downloaded and extracted OpenPLC. Within the extracted folder, I right clicked and selected “Open in Terminal”. In the terminal I typed ./ install.sh then pressed enter. After typing my password, I receive these messages:
a@1:~/Downloads/OpenPLC_Editor/OpenPLC Editor for Linux/OpenPLC_Editor$ ./ install.sh
Installing OpenPLC Editor
Please be patient. This may take a couple minutes...
[INSTALLING DEPENDENCIES]
[sudo] password for a:
E: Package 'curl' has no installation candidate
E: Unable to locate package build-essential
E: Unable to locate package pkg-config
E: Unable to locate package bison
E: Unable to locate package flex
E: Unable to locate package autoconf
E: Unable to locate package automake
E: Unable to locate package libtool
E: Package 'make' has no installation candidate
E: Unable to locate package git
E: Unable to locate package libssl-dev
E: Package 'python2' has no installation candidate
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Manually installing python-wxgtk3.0...
E: Unable to locate package python
E: Package 'libwxbase3.0-0v5' has no installation candidate
E: Package 'libwxgtk3.0-gtk3-0v5' has no installation candidate
(Reading database ... 138586 files and directories currently installed.)
Preparing to unpack .../python-wxversion_3.0.2.0+dfsg-8_all.deb ...
Unpacking python-wxversion (3.0.2.0+dfsg-8) over (3.0.2.0+dfsg-8) ...
dpkg: dependency problems prevent configuration of python-wxversion:
python-wxversion depends on python2:any (<< 2.8).
python-wxversion depends on python2:any (>= 2.7.5-5~).
dpkg: error processing package python-wxversion (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python-wxversion
(Reading database ... 138586 files and directories currently installed.)
Preparing to unpack .../python-wxgtk3.0_3.0.2.0+dfsg-8_amd64.deb ...
Unpacking python-wxgtk3.0 (3.0.2.0+dfsg-8) over (3.0.2.0+dfsg-8) ...
dpkg: dependency problems prevent configuration of python-wxgtk3.0:
python-wxgtk3.0 depends on python-wxversion; however:
Package python-wxversion is not configured yet.
python-wxgtk3.0 depends on python2 (<< 2.8); however:
Package python2 is not installed.
python-wxgtk3.0 depends on python2 (>= 2.7~); however:
Package python2 is not installed.
python-wxgtk3.0 depends on python2:any (<< 2.8).
python-wxgtk3.0 depends on python2:any (>= 2.7.5-5~).
python-wxgtk3.0 depends on libwxbase3.0-0v5 (>= 3.0.4+dfsg); however:
Package libwxbase3.0-0v5 is not installed.
python-wxgtk3.0 depends on libwxgtk3.0-gtk3-0v5 (>= 3.0.4+dfsg); however:
Package libwxgtk3.0-gtk3-0v5 is not installed.
dpkg: error processing package python-wxgtk3.0 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python-wxgtk3.0
E: Unable to locate package libssl-dev
E: Unable to locate package libxml2-dev
E: Unable to locate package libxslt1-dev
E: Unable to locate package python2-dev
E: Unable to locate package python2.7-dev
E: Couldn't find any package by glob 'python2.7-dev'
E: Couldn't find any package by regex 'python2.7-dev'
E: Unable to locate package libpng
E: Unable to locate package libpng-dev
E: Unable to locate package libfreetype6-dev
./install.sh: line 64: curl: command not found
sudo: python2.7: command not found
./install.sh: line 68: pip2: command not found
[COMPILING MATIEC]
./install.sh: line 72: autoreconf: command not found
./install.sh: line 73: ./configure: No such file or directory
./install.sh: line 74: make: command not found
cp: cannot stat './iec2c': No such file or directory
[FINALIZING]
a@1:~/Downloads/OpenPLC_Editor/OpenPLC Editor for Linux/OpenPLC_Editor
Following the instructions on the “OpenPLC on Linux” page, I tried pasting “git clone https://github.com/thiagoralves/OpenPLC_v3.git” into the terminal and I receive this message:
a@1:~/Downloads/OpenPLC_Editor/OpenPLC Editor for Linux/OpenPLC_Editor$ git clone https://github.com/thiagoralves/OpenPLC_v3.git~
Command 'git' not found, but can be installed with:
sudo apt install git
a@1:~/Downloads/OpenPLC_Editor/OpenPLC Editor for Linux/OpenPLC_Editor$ sudo apt install git
[sudo] password for a:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package git
a@1:~/Downloads/OpenPLC_Editor/OpenPLC Editor for Linux/OpenPLC_Editor$
Any help would be greatly appreciated. I'm looking forward to using OpenPLC.
Thank you all!
Joe