Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: proviewr_5.7.1-1 install failed on Ubuntu 20.04

proviewr_5.7.1-1 install failed on Ubuntu 20.04 3 years 3 months ago #10901

  • WestCounce
  • WestCounce's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
I am new to proview and wanted to test it for a new PLC project I am doing using Raspberry Pi. My runtime will be on Raspberry Pi and I want to develop the PLC program on my machine running Ubuntu 20.04.

I downloaded all the files available on Sourceforge: home/proview/proviewr_5.7.1-1/ubuntu_18.04LTS and opened pwr57 (.deb) file in Ubuntu software. When I click on install, there is a popup saying 'Unable to install pwr57: The following packages have unmet dependencies:' but there is no dependency listed.

Can anyone help me installing proview on my machine.

I tried to compile from source tarball (.tar.gz) file on Ubuntu 20.04 following this procedure.
  1. apt-get install doxygen gcc g++ make libasound2-dev libdb5.3-dev libdb5.3++-dev
  2. -> successful
  3. apt-get install openjdk-6-jdk libmysql++-dev libsqlite3-dev libhdf5-openmpi-dev libusb-1.0.0-dev
    -> ERROR: Note, selecting 'libusb-1.0-0-dev' for regex 'libusb-1.0.0-dev; E: Unable to locate package openjdk-6-jdk
  4. Found out openjdk-11-jdk is the newest version and installed it using apt
  5. apt-get install qt4-dev-tools libphonon-dev
    -> ERROR: E: Unable to locate package qt4-dev-tools; E: Unable to locate package libphonon-dev
  6. Unpack the source package
    > tar -xzvf pwrsrc_4.8.0.tar.gz
    Enter the sourcecode root directory
    > cd pwr_4.8.0
    Execute the makefile
    > make
    -> ERROR: (putting in spoiler to condense my post)
    Warning: Spoiler! [ Click to expand ]

Please suggest how to install.
The administrator has disabled public write access.

proviewr_5.7.1-1 install failed on Ubuntu 20.04 3 years 3 months ago #10903

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3178
  • Thank you received: 502
  • Karma: 133
In the initial configuration you need to have Yes on either qt or gtk under 'Gui either Qt or Gtk'. I suggest you use gtk and install libgtk2.0-0 and maybe also libgstreamer1.0-0 libgstreamer-plugins-base1.0-0.

This is the installation command I use on ubuntu 20.04
apt-get install -y libgtk2.0-dev doxygen gcc g++ make libasound2-dev \
	libdb5.3-dev libdb5.3++-dev openjdk-11-jdk libmariadb-dev \
	libsqlite3-dev libhdf5-openmpi-dev librabbitmq-dev libusb-1.0.0-dev librsvg2-dev \
	libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libpython-dev python

/Claes
The administrator has disabled public write access.

proviewr_5.7.1-1 install failed on Ubuntu 20.04 3 years 2 months ago #10906

  • WestCounce
  • WestCounce's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Thanks Claes for your answer.

I ran the sudo apt-get install in your answer. (libpython-dev is not available, I installed libpython2-dev instead)
and changed gui="qt" to gui="gtk" on Line78 in build.sh file.

Then ran ./build.sh and got the below output:

Base V5.7.1 already exist in /usr/local/adm/db/pwr_projectlist.dat
++ Environment V571x86_64 already exists
ehB
init...
cat: /etc/proview.cnf: No such file or directory
ehB
...Checking         /bin/bash
Mandatory :
...Checking   Yes   librpcsvc
...Checking   Yes   libasound
...Checking   Yes   libpthread
...Checking   Yes   libm
...Checking   Yes   libdb
...Checking   Yes   libdb_cxx
...Checking   Yes   libz
...Checking   Yes   libcrypt
...Checking   Yes   librt
...Checking   Yes   libX11
...Checking   Yes   alsa

Gui either Qt or Gtk :
...Checking   No    qt
...Checking   No    qt
...Checking   No    qt
...Checking   No    qt
...Checking   No    qt
...Checking   Yes   gtk
...Checking   Yes   gtk

Optional :
...Checking   No    jni
...Checking   No    jni
...Checking   No    motif
...Checking   No    mysql
...Checking   Yes   sqlite3
...Checking   Yes   libsqlite3
...Checking   Yes   hdf5
...Checking   Yes   hdf5
...Checking   Yes   libhdf5
...Checking   Yes   libhdf5
...Checking   Yes   rabbitmq
...Checking   No    mq
...Checking   No    wmq
...Checking   No    libprofinet
...Checking   Yes   libusb
...Checking   No    powerlink
...Checking   No    powerlinkcn
...Checking   No    libpcap
...Checking   Yes   librsvg
...Checking   Yes   gst
...Checking   Yes   gst
...Checking   No    mq
...Checking   No    wmq
...Checking   No    cifx
...Checking   No    nodave
...Checking   No    powerlink
...Checking   No    powerlinkuser
...Checking   Yes   rsvg
...Checking   Yes   pydev
...Checking   No    android
ehB
-- Creating build tree /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/rt
-- Creating build tree /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/xtt
-- Creating build tree /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/wb
-- Creating build tree /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/nmps
-- Creating build tree /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/tlog
-- Creating build tree /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/remote
-- Creating build tree /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/java
-- Creating build tree /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/bcomp
-- Creating build tree /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/simul
-- Creating build tree /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/misc
-- Creating build tree /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/profibus
-- Creating build tree /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/sev
-- Creating build tree /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/opc
-- Creating build tree /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/ssabox
-- Creating build tree /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/othermanu
-- Creating build tree /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/otherio
-- Creating build tree /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/abb
-- Creating build tree /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/siemens
-- Creating build tree /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/inor
-- Creating build tree /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/klocknermoeller
-- Creating build tree /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/telemecanique
ehB
Set flavour gtk
Set flavour gtk
-- Build module xtt
Set flavour gtk
-- Build module rt
make: Nothing to be done for 'copy'.
make: Nothing to be done for 'copy'.
make: Nothing to be done for 'copy'.
make: Nothing to be done for 'copy'.
Set flavour gtk
-- Build module wb
make: Nothing to be done for 'copy'.
make: Nothing to be done for 'copy'.
make: Nothing to be done for 'copy'.
Set flavour gtk
-- Build module nmps
Set flavour gtk
-- Build module remote
make: Nothing to be done for 'copy'.
make: Nothing to be done for 'copy'.
make: Nothing to be done for 'copy'.
Set flavour gtk
-- Build module sev
Set flavour gtk
-- Build module opc
Set flavour gtk
-- Build module rt
Set flavour gtk
-- Build module xtt
Set flavour gtk
-- Build module wb
make: Nothing to be done for 'lib'.
Set flavour gtk
-- Build module xtt
Linking /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/xtt/exe/rt_xtt_gtk
Set flavour gtk
-- Build module wb
make: Nothing to be done for 'all'.
make: Nothing to be done for 'all'.
Linking /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/wb/exe/wb_gtk
make: Nothing to be done for 'exe'.
python setup_pwrwb.py -q build --build-base /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/bld/exp/pwrwb;\
mv /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/bld/exp/pwrwb/lib.linux-x86_64-2.7/pwrwb.so /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/wb/exe;
/usr/bin/ld: cannot find -lmysqlclient
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-g++' failed with exit status 1
mv: cannot stat '/home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/bld/exp/pwrwb/lib.linux-x86_64-2.7/pwrwb.so': No such file or directory
make: *** [/home/cg/Downloads/pwrsrc_5.7.1-1/wb/exp/pwrwb/src/makefile:38: /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/wb/exe/pwrwb.so] Error 1

Can you tell what is wrong with the installation!
The administrator has disabled public write access.

proviewr_5.7.1-1 install failed on Ubuntu 20.04 3 years 2 months ago #10907

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3178
  • Thank you received: 502
  • Karma: 133
Add mariadb to search paths for mysql in src/tools/pwre/src/pwre_configure.sh
pwre_config_check_lib mysql     MYSQL    lib lib 1 "/usr/lib/libmysqlclient.so:/usr/lib/mysql/libmysqlclient.so:/usr/lib/$hwpl-linux-$gnu/libmysqlclient.so:/usr/lib/$hwpl-linux-$gnu/libmariadbclient.so:/usr/lib64/libmariadb.so"
    pwre_config_check_include mysql MYSQL 1 "/usr/include/mysql/mysql.h:/usr/include/mariadb/mysql.h"
/Claes
The administrator has disabled public write access.

proviewr_5.7.1-1 install failed on Ubuntu 20.04 3 years 2 months ago #10908

  • WestCounce
  • WestCounce's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
I added those lines in src/tools/pwre/src/pwre_configure.sh
Still getting the exact same output:

Linking /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/wb/exe/wb_gtk
make: Nothing to be done for 'exe'.
python setup_pwrwb.py -q build --build-base /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/bld/exp/pwrwb;\
mv /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/bld/exp/pwrwb/lib.linux-x86_64-2.7/pwrwb.so /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/wb/exe;
/usr/bin/ld: cannot find -lmysqlclient
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-g++' failed with exit status 1
mv: cannot stat '/home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/bld/exp/pwrwb/lib.linux-x86_64-2.7/pwrwb.so': No such file or directory
make: *** [/home/cg/Downloads/pwrsrc_5.7.1-1/wb/exp/pwrwb/src/makefile:38: /home/cg/Downloads/pwrsrc_5.7.1-1/rls/os_linux/hw_x86_64/wb/exe/pwrwb.so] Error 1
The administrator has disabled public write access.

proviewr_5.7.1-1 install failed on Ubuntu 20.04 3 years 2 months ago #10909

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3178
  • Thank you received: 502
  • Karma: 133
This is the python module for the development that you don't need, so you can disable the build of this by renaming wb/exp/pwrwb/src/makefile to makefile.no. Or you kan exchange mysql with mariadb in pwrwb_setup.sh.

/Claes
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 8.354 seconds