New (beta) version library requirement (Arm/Debian)

News and/or updates regarding Domoticz or things related to Domoticz will be placed here.
Twitter: https://twitter.com/Domoticz | Facebook: https://www.facebook.com/domoticz | Changelog: Github
roblom
Posts: 565
Joined: Wednesday 26 February 2014 16:28
Target OS: Raspberry Pi
Domoticz version:
Location: the Netherlands
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by roblom » Sunday 01 October 2017 13:43

krisha wrote:
Jan Jansen wrote:
Friday 29 September 2017 15:15
As far as I know, I use a raspberry pi B rev 2.0. I do not know how to find the answer to your question.
ok thx, You can find out by typing

Code: Select all

cat /proc/cpuinfo
Under Hardware you see the SoC used.

If you have a Pi 2 (BCM2836 or higher) I don't think that your solution will work on Pi 1 or Zero.
I have a BCM2708 and a BCM2835 is there a solution to get it working again? Because I'm now stuck on the latest released version.

haydeniv
Posts: 1
Joined: Monday 02 October 2017 5:07
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by haydeniv » Monday 02 October 2017 5:26

I've tried all of the suggestions even tried compiling openssl from scratch with no success, still getting Illegal Instruction on startup with beta on Raspberry Pi A Armv6.

Code: Select all

apt list --installed | grep libssl
libssl1.0.0/now 1.0.1t-1+deb8u6 armhf [installed,upgradable to: 1.0.1t-1+deb8u6]

Code: Select all

ldd /home/pi/domoticz/domoticz
        /usr/lib/arm-linux-gnueabihf/libarmmem.so (0xb6f0b000)
        libusb-0.1.so.4 => /lib/arm-linux-gnueabihf/libusb-0.1.so.4 (0xb6eeb000)
        libssl.so.1.0.0 => /usr/lib/arm-linux-gnueabihf/libssl.so.1.0.0 (0xb6e92000)
        libcrypto.so.1.0.0 => /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0 (0xb6d27000)
        librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb6d10000)
        libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6ce8000)
        libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb6cc1000)
        libcurl.so.4 => /usr/lib/arm-linux-gnueabihf/libcurl.so.4 (0xb6c50000)
        libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6c3d000)
        libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6bc2000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6a80000)
        /lib/ld-linux-armhf.so.3 (0x7f612000)
        libidn.so.11 => /usr/lib/arm-linux-gnueabihf/libidn.so.11 (0xb6a3f000)
        librtmp.so.1 => /usr/lib/arm-linux-gnueabihf/librtmp.so.1 (0xb6a16000)
        libssh2.so.1 => /usr/lib/arm-linux-gnueabihf/libssh2.so.1 (0xb69f4000)
        libgssapi_krb5.so.2 => /usr/lib/arm-linux-gnueabihf/libgssapi_krb5.so.2 (0xb69aa000)
        libkrb5.so.3 => /usr/lib/arm-linux-gnueabihf/libkrb5.so.3 (0xb68f5000)
        libk5crypto.so.3 => /usr/lib/arm-linux-gnueabihf/libk5crypto.so.3 (0xb68b7000)
        libcom_err.so.2 => /lib/arm-linux-gnueabihf/libcom_err.so.2 (0xb68a4000)
        liblber-2.4.so.2 => /usr/lib/arm-linux-gnueabihf/liblber-2.4.so.2 (0xb6888000)
        libldap_r-2.4.so.2 => /usr/lib/arm-linux-gnueabihf/libldap_r-2.4.so.2 (0xb6834000)
        libgnutls-deb0.so.28 => /usr/lib/arm-linux-gnueabihf/libgnutls-deb0.so.28 (0xb6726000)
        libhogweed.so.2 => /usr/lib/arm-linux-gnueabihf/libhogweed.so.2 (0xb66ed000)
        libnettle.so.4 => /usr/lib/arm-linux-gnueabihf/libnettle.so.4 (0xb66ad000)
        libgmp.so.10 => /usr/lib/arm-linux-gnueabihf/libgmp.so.10 (0xb663b000)
        libgcrypt.so.20 => /lib/arm-linux-gnueabihf/libgcrypt.so.20 (0xb6598000)
        libkrb5support.so.0 => /usr/lib/arm-linux-gnueabihf/libkrb5support.so.0 (0xb657e000)
        libkeyutils.so.1 => /lib/arm-linux-gnueabihf/libkeyutils.so.1 (0xb6573000)
        libresolv.so.2 => /lib/arm-linux-gnueabihf/libresolv.so.2 (0xb654e000)
        libsasl2.so.2 => /usr/lib/arm-linux-gnueabihf/libsasl2.so.2 (0xb6527000)
        libp11-kit.so.0 => /usr/lib/arm-linux-gnueabihf/libp11-kit.so.0 (0xb64e6000)
        libtasn1.so.6 => /usr/lib/arm-linux-gnueabihf/libtasn1.so.6 (0xb64c5000)
        libgpg-error.so.0 => /lib/arm-linux-gnueabihf/libgpg-error.so.0 (0xb64a7000)
        libffi.so.6 => /usr/lib/arm-linux-gnueabihf/libffi.so.6 (0xb648f000)
        libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6462000)

Code: Select all

egrep -i 'model|hardware' /proc/cpuinfo
model name      : ARMv6-compatible processor rev 7 (v6l)
Hardware        : BCM2708

Code: Select all

cat /etc/*-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
Any suggestions?

pvangorp
Posts: 121
Joined: Tuesday 28 March 2017 10:18
Target OS: Raspberry Pi
Domoticz version: Latest B
Location: The Netherlands
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by pvangorp » Thursday 05 October 2017 4:12

I had the same problem on a Pi Zero W. This is how you can get it to work based on https://www.domoticz.com/wiki/Installin ... version.29

Step by step:

Prerequirements
Kill as much processes as possible. Use top to see running processes. Be patient it will take hours the first time!

Backup your plugins and database
Use a program like winscp to backup your plugin folder if you have custom plugins.
Create a database backup from Domoticz using the web interface. To do so you have to revert back to stable using "# sudo ./updaterelease"

Install dependencies
# sudo apt-get install cmake make gcc g++ libssl-dev git libcurl4-openssl-dev libusb-dev python3-dev

Remove old boost
# sudo apt-get remove libboost-dev libboost-thread-dev libboost-system-dev libboost-atomic-dev libboost-regex-dev
# sudo apt-get remove libboost-date-time1.55-dev libboost-date-time1.55.0 libboost-atomic1.55.0 libboost-regex1.55.0 libboost-iostreams1.55.1
# sudo apt-get remove libboost-iostreams1.55.0 libboost-iostreams1.55.0 libboost-iostreams1.55.0
# sudo apt-get remove libboost-serialization1.55-dev libboost-serialization1.55.0 libboost-system1.55-dev
# sudo apt-get remove libboost-system1.55.0 libboost-thread1.55-dev libboost-thread1.55.0 libboost1.55-dev
# sudo apt-get autoremove

Increase swap file size
# sudo nano /etc/dphys-swapfile
Change CONF_SWAPFILE=100 into 1024
Remove the # in front of CONF_SWAPFILE=/var/swap
# sudo /etc/init.d/dphys-swapfile stop
# sudo /etc/init.d/dphys-swapfile start
You can check with the following commands
# free -g
# free -k
# free -m

Install new boost (Takes several hours)
# mkdir boost
# cd boost
# wget https://sourceforge.net/projects/boost/ ... z/download
# tar xvfz download
# rm download
# cd boost_1_65_0/
# ./bootstrap.sh
# ./b2 stage threading=multi link=static --with-thread --with-date_time --with-system --with-atomic --with-regex
# sudo ./b2 install threading=multi link=static --with-thread --with-date_time --with-system --with-atomic --with-regex
# cd ../../
# rm -Rf boost/

Build Support for OpenZWave (Takes half an hour)
# cd~
# sudo apt-get install libudev-dev
# git clone https://github.com/OpenZWave/open-zwave open-zwave-read-only
# cd open-zwave-read-only
# git pull
# make -j 3

Build Domoticz (Take several hours)
# cd~
# git clone https://github.com/domoticz/domoticz.git domoticz
# cd domoticz
# git pull
# cmake -DCMAKE_BUILD_TYPE=Beta CMakeLists.txt
# make
# sudo cp /etc/init.d/domoticz.sh /home/pi/domoticz/domoticz.sh
Copy the plugins with WinSCP to the Pi and restore the database

Make the required changes to config
# cd ~
# cd domoticz
# sudo nano domoticz.sh
Make the required changes
# sudo cp domoticz.sh /etc/init.d
# sudo chmod +x /etc/init.d/domoticz.sh
# sudo update-rc.d domoticz.sh defaults

To do update in the future, use:

Update Domoticz
# cd domoticz
# git pull
# make -j 4

aldodemi
Posts: 40
Joined: Tuesday 07 October 2014 17:43
Target OS: Linux
Domoticz version: 3.8275
Location: Genoa Italy
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by aldodemi » Friday 06 October 2017 16:00

Version: last beta 3.8552 - OpenZwave support
Platform: Debian stretch 64 bit on Intel Atom CPU D510 - dedicated server

After update from source (git pull inside domoticz folder) and compile, at the end of compiling:

/usr/bin/ld: warning: libssl.so.1.0.2, needed by /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcurl.so, may conflict with libssl.so.1.1
/usr/bin/ld: warning: libcrypto.so.1.0.2, needed by /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcurl.so, may conflict with libcrypto.so.1.1

domoticz works

best regards,
Aldo
Server Domoticz 3.7243 (usually the last beta) on Debian Linux (Jessie) - Hw homemade with Atom CPU/4 GB RAM
RFXCom and ZWave Stick (Aeon)

pvangorp
Posts: 121
Joined: Tuesday 28 March 2017 10:18
Target OS: Raspberry Pi
Domoticz version: Latest B
Location: The Netherlands
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by pvangorp » Friday 06 October 2017 16:42

I've only compiled on a Pi Zero W with Raspbian Jessie & Stretch and haven't had this message. Your using a newer version libssl and libcrypto. If it works, it works ;)

aldodemi
Posts: 40
Joined: Tuesday 07 October 2014 17:43
Target OS: Linux
Domoticz version: 3.8275
Location: Genoa Italy
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by aldodemi » Monday 09 October 2017 18:03

Update to last beta via updatebeta script and now doesn't works.

Error: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared obj...

sudo apt-get install libssl1.0.0 say libssl1.0.0 does no exists

sudo apt-get install libssl1.1
libssl1.1 is already the newest version (1.1.0f-3)
Server Domoticz 3.7243 (usually the last beta) on Debian Linux (Jessie) - Hw homemade with Atom CPU/4 GB RAM
RFXCom and ZWave Stick (Aeon)

pvangorp
Posts: 121
Joined: Tuesday 28 March 2017 10:18
Target OS: Raspberry Pi
Domoticz version: Latest B
Location: The Netherlands
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by pvangorp » Monday 09 October 2017 18:08

Please perfom my step by step manual compile option. It takes some more time, but it should work!

melgi
Posts: 3
Joined: Tuesday 15 August 2017 15:50
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by melgi » Wednesday 11 October 2017 15:57

Anyone have any idea on my earlier post?
melgi wrote:
Monday 11 September 2017 23:00
gizmocuz wrote:
Saturday 09 September 2017 12:28
For new (beta) versions it is required that libssl 1.0.0 is installed.
This might not be at your current system (for example a raspberry running rasbian jessy or older)

To install this, issue:

Code: Select all

sudo apt-get install libssl1.0.0
Can I just login through SSH (using PuTTY) in my ASUStor NAS and issue the command as shown above or do I have to be in a specific directory? I'm not that experienced with SSH-PuTTY, but did login in the past and installed several packages from the command line.

I can't update the Beta version anymore since I returned from my holiday (2nd September), but do want to give it a shot if with this I can update to the newest beta version.

Nautilus
Posts: 681
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi
Domoticz version: beta
Location: Finland
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by Nautilus » Thursday 12 October 2017 11:26

Involver wrote:
Saturday 16 September 2017 21:30
Piet wrote:
Thursday 14 September 2017 18:27
(beta) version upgrade keeps failing

[....] Restarting Domoticz Home Automation System: domoticz/home/pi/domoticz/domoticz: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.15' not found (required by /home/pi/domoticz/domoticz)

tried to find a solution to this error but did not succeed.
Hi Piet,

Any progress on this? Have the same issue after upgrade, looking for either a solution or how to roll back to previous beta...
+1

For me this happens on a RasPi 2 running Raspbian Wheezy. What would be the best way to solve this? Would it be e.g. solved with an update to Jessie or Stretch? The issue with that is that I have several other things I've installed / customized on the Raspberry so I'd prefer an option that does not require starting from a fresh OS (although restoring Domoticz would be quite easy)... Are there other options?

pvangorp
Posts: 121
Joined: Tuesday 28 March 2017 10:18
Target OS: Raspberry Pi
Domoticz version: Latest B
Location: The Netherlands
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by pvangorp » Thursday 12 October 2017 13:18

Try building Domoticz using my step by step post from Thursday 05 October 2017 4:12. You only need to backup Domoticz.

Nautilus
Posts: 681
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi
Domoticz version: beta
Location: Finland
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by Nautilus » Thursday 12 October 2017 13:48

pvangorp wrote:
Thursday 12 October 2017 13:18
Try building Domoticz using my step by step post from Thursday 05 October 2017 4:12. You only need to backup Domoticz.
Thanks for the suggestion and the detailed how-to! :) All in all, if updating the OS helps (does it, can someone confirm?) the amount of time it takes should be even less as the builds take so much time. Of course I can just leave them running in the background, but it would mean my home automation is offline quite long. Starting with a fresh OS and just restoring Domoticz would be quite fast so I'd have the "automation downtime" in control and Wheezy is starting to be ancient in any case. Maybe I just need to order an RPi3 and start with Stretch - at least that setup should not have any of these issues?

pvangorp
Posts: 121
Joined: Tuesday 28 March 2017 10:18
Target OS: Raspberry Pi
Domoticz version: Latest B
Location: The Netherlands
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by pvangorp » Thursday 12 October 2017 14:39

It will take a lot of time os version doesn’t make it 10 times faster. You can build it in a parallel directory e.g. domoticz-dev. Than you have them parallel and update build is faster when using “make -j 4”. No issues with Pi3 and jessie or stretch. You will need the additionele package as described before.

Jan Jansen
Posts: 151
Joined: Wednesday 30 April 2014 20:27
Target OS: Raspberry Pi
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by Jan Jansen » Thursday 12 October 2017 15:02

pvangorp wrote:
Monday 09 October 2017 18:08
Please perfom my step by step manual compile option. It takes some more time, but it should work!
I tried your step by step instruction. My rpi 1 seems to hang after more than 8 hours (8 hours only for the domoticz part).

Code: Select all

[ 94%] Building CXX object CMakeFiles/domoticz.dir/json/json_writer.cpp.o
[ 94%] Building CXX object CMakeFiles/domoticz.dir/tinyxpath/action_store.cpp.o
[ 94%] Building CXX object CMakeFiles/domoticz.dir/tinyxpath/htmlutil.cpp.o
[ 95%] Building CXX object CMakeFiles/domoticz.dir/tinyxpath/lex_util.cpp.o
[ 95%] Building CXX object CMakeFiles/domoticz.dir/tinyxpath/node_set.cpp.o
[ 96%] Building CXX object CMakeFiles/domoticz.dir/tinyxpath/tinystr.cpp.o
[ 96%] Building CXX object CMakeFiles/domoticz.dir/tinyxpath/tinyxml.cpp.o
[ 96%] Building CXX object CMakeFiles/domoticz.dir/tinyxpath/tinyxmlerror.cpp.o
[ 97%] Building CXX object CMakeFiles/domoticz.dir/tinyxpath/tinyxmlparser.cpp.o
[ 97%] Building CXX object CMakeFiles/domoticz.dir/tinyxpath/tokenlist.cpp.o
[ 97%] Building CXX object CMakeFiles/domoticz.dir/tinyxpath/xml_util.cpp.o
[ 98%] Building CXX object CMakeFiles/domoticz.dir/tinyxpath/xpath_expression.cpp.o
[ 98%] Building CXX object CMakeFiles/domoticz.dir/tinyxpath/xpath_processor.cpp.o
[ 98%] Building CXX object CMakeFiles/domoticz.dir/tinyxpath/xpath_stream.cpp.o
[ 99%] Building CXX object CMakeFiles/domoticz.dir/tinyxpath/xpath_stack.cpp.o
[ 99%] Building CXX object CMakeFiles/domoticz.dir/tinyxpath/xpath_static.cpp.o
[100%] Building CXX object CMakeFiles/domoticz.dir/tinyxpath/xpath_syntax.cpp.o
[100%] Linking CXX executable domoticz
What can I do next?

pvangorp
Posts: 121
Joined: Tuesday 28 March 2017 10:18
Target OS: Raspberry Pi
Domoticz version: Latest B
Location: The Netherlands
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by pvangorp » Thursday 12 October 2017 15:13

How long took till 99%? May take verry long on a Pi 1

Jan Jansen
Posts: 151
Joined: Wednesday 30 April 2014 20:27
Target OS: Raspberry Pi
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by Jan Jansen » Friday 13 October 2017 12:24

@pvangorp,

I can't answer your question. After about 10 hours the connection via putty was broken (software issue). I logged in again and executed "sudo cp /etc/init.d/domoticz.sh /home/pi/domoticz/domoticz.sh" . Return no /etc/init.d/domoticz.sh found.

I'll try again this weekend, but I do not want my computer to run all day long. Is it possible to log in occasionally and follow the process? If so, how do you do that? I tried through using "top" but I do not know what to look for.

Thanks in advance.

pvangorp
Posts: 121
Joined: Tuesday 28 March 2017 10:18
Target OS: Raspberry Pi
Domoticz version: Latest B
Location: The Netherlands
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by pvangorp » Friday 13 October 2017 15:44

You can connect keyboard and screen to your Pi.

Jan Jansen
Posts: 151
Joined: Wednesday 30 April 2014 20:27
Target OS: Raspberry Pi
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by Jan Jansen » Saturday 14 October 2017 16:39

@pvangorp

Thanks for the answers.

I did not find domoticz.sh in /etc/init.d/ but in /home/pi/domoticz. So i did not use the "sudo cp /etc/init.d/domoticz.sh /home/pi/domoticz/domoticz.sh" command. After a reboot I can use beta in combination with Stretch RPI 1 ( Hardware: BCM2835).

What stands out:
1. Lowest CPU-load >4% (empty database);
2. Compared to the easy road (sudo curl -L install.domoticz.com | sudo bash) I found many more folders and files in / home / pi / domoticz /.

pvangorp
Posts: 121
Joined: Tuesday 28 March 2017 10:18
Target OS: Raspberry Pi
Domoticz version: Latest B
Location: The Netherlands
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by pvangorp » Saturday 14 October 2017 17:46

The copy you mentioned should be from /home/pi to /etc/init.d.
CPU I don’t now, is it an issue?
The more folders are because of the checkout and make actions. Don’t bother it.
Does everything works oke?

vmb
Posts: 33
Joined: Thursday 02 October 2014 14:35
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by vmb » Sunday 15 October 2017 19:45

pvangorp wrote:
Thursday 12 October 2017 13:18
Try building Domoticz using my step by step post from Thursday 05 October 2017 4:12. You only need to backup Domoticz.
Pvangorp; you made my day! Thank you very much for writing this guide. I followed it step by step on my Pi B+. And guess what? At the end I had a very nice working Domoticz.

pvangorp
Posts: 121
Joined: Tuesday 28 March 2017 10:18
Target OS: Raspberry Pi
Domoticz version: Latest B
Location: The Netherlands
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by pvangorp » Sunday 15 October 2017 19:59

Your welcome!

Post Reply

Who is online

Users browsing this forum: aabre and 3 guests