• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problems compiling pilight on Odroid C2
#31
This assumption:
Quote:do I download it seperately or just:

Code:
apt-get install pilight
As in:
Have you tried installing using apt?
 
Reply
#32
(08-04-2018, 01:39 PM)curlymo Wrote: This assumption:
Quote:do I download it seperately or just:

Code:
apt-get install pilight
As in:
Have you tried installing using apt?

no not yet, do you recommend I do it on a fresh install, or just roll it on the current system?

also: do I need to compile wiringX from source first or will it be automatically installed when I install the pilight package?
 
Reply
#33
Have you tried that new assumption?
 
Reply
#34
(08-05-2018, 10:09 AM)curlymo Wrote: Have you tried that new assumption?

Code:
root@DietPi:~# echo "deb http://apt.pilight.org/ stable main" > /etc/apt/sources.list.d/pilight.list
root@DietPi:~# echo "deb http://apt.pilight.org/ nightly main" >> /etc/apt/sources.list.d/pilight.list
root@DietPi:~# wget -O - http://apt.pilight.org/pilight.key | apt-key add -
--2018-08-05 10:32:31--  http://apt.pilight.org/pilight.key
Resolving apt.pilight.org (apt.pilight.org)... 45.32.148.129
Connecting to apt.pilight.org (apt.pilight.org)|45.32.148.129|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3079 (3.0K) [application/octet-stream]
Saving to: ‘STDOUT’

-                                                 100%[==========================================================================================================>]   3.01K  --.-KB/s    in 0s

2018-08-05 10:32:32 (109 MB/s) - written to stdout [3079/3079]

OK
root@DietPi:~# apt-get update
Hit:1 http://fuzon.co.uk/meveric all InRelease
Hit:2 http://fuzon.co.uk/meveric stretch InRelease
Get:3 http://apt.pilight.org stable InRelease [4,696 B]
Get:4 http://apt.pilight.org nightly InRelease [4,734 B]
Ign:5 https://cdn-aws.deb.debian.org/debian stretch InRelease
Hit:6 https://cdn-aws.deb.debian.org/debian stretch-updates InRelease
Hit:7 https://cdn-aws.deb.debian.org/debian-security stretch/updates InRelease
Hit:8 https://cdn-aws.deb.debian.org/debian stretch-backports InRelease
Hit:9 https://cdn-aws.deb.debian.org/debian stretch Release
Fetched 9,430 B in 2s (3,552 B/s)
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'http://apt.pilight.org stable InRelease' doesn't support architecture 'arm64'
N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'http://apt.pilight.org nightly InRelease' doesn't support architecture 'arm64'
root@DietPi:~# apt-get install pilight
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pilight
 
Reply
#35
You said you are running on aarch64, now apt is trying to download amd64, so what do you need?

Can you try again?
 
Reply
#36
(08-05-2018, 11:03 AM)curlymo Wrote: You said you are running on aarch64, now apt is trying to download amd64, so what do you need?

Can you try again?

ill try again, but this is what I seen when opening a terminal session:
Code:
───────────────────────────────────────
DietPi     | 19:58 | Mon 06/08/18
───────────────────────────────────────
v6.12      | Odroid C2 (aarch64)
───────────────────────────────────────
eth0       | 192.168.168.2
───────────────────────────────────────
DietPi Core Team   : Daniel Knight (founder), MichaIng, K-Plan
Image creator      : DietPi Core Team
Pre-image used     : Meveric
Web                : https://DietPi.com | https://twitter.com/dietpi_
Donate             : https://goo.gl/pzISt9
DietPi web hosting : Powered by https://MyVirtualServer.com

dietpi-launcher  = All the DietPi programs in one place.
dietpi-config    = Feature rich configuration tool for your device.
dietpi-software  = Select optimized software for installation.
htop             = Resource monitor.
cpu              = Shows CPU information and stats.

root@DietPi:~#

Looking at line 2 of the header I would assume the dietpi image is for aarch64, I dont see a reference to AMD64, only to ARM64.. Next:
Code:
root@DietPi:~# apt-get update
Get:1 http://apt.pilight.org stable InRelease [5,421 B]
Hit:2 http://fuzon.co.uk/meveric all InRelease
Get:3 http://apt.pilight.org nightly InRelease [5,468 B]
Hit:4 http://fuzon.co.uk/meveric stretch InRelease
Get:5 http://apt.pilight.org stable/main arm64 Packages [492 B]
Get:8 http://apt.pilight.org nightly/main arm64 Packages [1,014 B]
Ign:6 https://cdn-aws.deb.debian.org/debian stretch InRelease
Get:7 https://cdn-aws.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:9 https://cdn-aws.deb.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:10 https://cdn-aws.deb.debian.org/debian stretch-backports InRelease [91.8 kB]
Hit:11 https://cdn-aws.deb.debian.org/debian stretch Release
Get:12 https://cdn-aws.deb.debian.org/debian-security stretch/updates/main arm64 Packages [368 kB]
Get:13 https://cdn-aws.deb.debian.org/debian-security stretch/updates/main Translation-en [182 kB]
Get:14 https://cdn-aws.deb.debian.org/debian stretch-backports/main arm64 Packages.diff/Index [27.8 kB]
Get:15 https://cdn-aws.deb.debian.org/debian stretch-backports/main Translation-en.diff/Index [27.8 kB]
Get:16 https://cdn-aws.deb.debian.org/debian stretch-backports/non-free arm64 Packages.diff/Index [7,132 B]
Get:17 https://cdn-aws.deb.debian.org/debian stretch-backports/non-free Translation-en.diff/Index [12.5 kB]
Get:18 https://cdn-aws.deb.debian.org/debian stretch-backports/main arm64 Packages 2018-08-06-0208.11.pdiff [806 B]
Get:19 https://cdn-aws.deb.debian.org/debian stretch-backports/main arm64 Packages 2018-08-06-0809.42.pdiff [1,178 B]
Get:19 https://cdn-aws.deb.debian.org/debian stretch-backports/main arm64 Packages 2018-08-06-0809.42.pdiff [1,178 B]
Get:21 https://cdn-aws.deb.debian.org/debian stretch-backports/main Translation-en 2018-08-06-0809.42.pdiff [44 B]
Get:21 https://cdn-aws.deb.debian.org/debian stretch-backports/main Translation-en 2018-08-06-0809.42.pdiff [44 B]
Get:22 https://cdn-aws.deb.debian.org/debian stretch-backports/non-free arm64 Packages 2018-08-06-0809.42.pdiff [265 B]
Get:22 https://cdn-aws.deb.debian.org/debian stretch-backports/non-free arm64 Packages 2018-08-06-0809.42.pdiff [265 B]
Get:23 https://cdn-aws.deb.debian.org/debian stretch-backports/non-free Translation-en 2018-08-06-0208.11.pdiff [402 B]
Get:23 https://cdn-aws.deb.debian.org/debian stretch-backports/non-free Translation-en 2018-08-06-0208.11.pdiff [402 B]
Fetched 918 kB in 3s (246 kB/s)
Reading package lists... Done

Code:
root@DietPi:~# apt-get install pilight
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
 pilight-webgui
Suggested packages:
 php5-cgi pilight-firmware
The following NEW packages will be installed:
 pilight pilight-webgui
0 upgraded, 2 newly installed, 0 to remove and 13 not upgraded.
Need to get 1,222 kB of archives.
After this operation, 58.4 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://apt.pilight.org nightly/main arm64 pilight-webgui arm64 8.4 [228 kB]
Get:2 http://apt.pilight.org nightly/main arm64 pilight arm64 8.1.2-12-gad7adc79 [993 kB]
Fetched 1,222 kB in 0s (2,195 kB/s)
Selecting previously unselected package pilight-webgui.
(Reading database ... 64057 files and directories currently installed.)
Preparing to unpack .../pilight-webgui_8.4_arm64.deb ...
Unpacking pilight-webgui (8.4) ...
Selecting previously unselected package pilight.
Preparing to unpack .../pilight_8.1.2-12-gad7adc79_arm64.deb ...
Unpacking pilight (8.1.2-12-gad7adc79) ...
Processing triggers for systemd (232-25+deb9u4) ...
Setting up pilight (8.1.2-12-gad7adc79) ...
Setting up pilight-webgui (8.4) ...


now rebooting
 
Reply
#37
Code:
root@DietPi:~# service pilight status
● pilight.service - pilight
  Loaded: loaded (/etc/systemd/system/pilight.service; enabled; vendor preset: enabled)
  Active: failed (Result: exit-code) since Mon 2018-08-06 20:08:39 BST; 1min 56s ago
 Process: 391 ExecStart=/usr/local/sbin/pilight-daemon (code=exited, status=127)

Aug 06 20:08:39 DietPi systemd[1]: Starting pilight...
Aug 06 20:08:39 DietPi pilight-daemon[391]: /usr/local/sbin/pilight-daemon: error while loading shared libraries: libmbedcrypto.so.3: cannot open shared object file: No such file or directory
Aug 06 20:08:39 DietPi systemd[1]: pilight.service: Control process exited, code=exited status=127
Aug 06 20:08:39 DietPi systemd[1]: Failed to start pilight.
Aug 06 20:08:39 DietPi systemd[1]: pilight.service: Unit entered failed state.
Aug 06 20:08:39 DietPi systemd[1]: pilight.service: Failed with result 'exit-code'.
Code:
root@DietPi:~# pilight-daemon -D
pilight-daemon: error while loading shared libraries: libmbedcrypto.so.3: cannot open shared object file: No such file or directory

I think I better do a clean install, with all the required packages through the package manager, but that will take me a while.
 
Reply
#38
Can you post the output of:
Code:
dpkg --get-selections | grep mbed
 
Reply
#39
(08-06-2018, 08:48 PM)curlymo Wrote: Can you post the output of:
Code:
dpkg --get-selections | grep mbed

Code:
root@DietPi:~# dpkg --get-selections | grep mbed
libmbedcrypto0:arm64                            install
libmbedtls-dev:arm64                            install
libmbedtls10:arm64                              install
libmbedx509-0:arm64                             install
 
Reply
#40
Code:
dpkg -L libmbedcrypto0
?

And
Code:
find /usr -name libmbedcrypto.so*
?
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Bug: double free or corruption in pilight-send blackzombie 12 104 10-07-2019, 08:15 PM
Last Post: blackzombie
  pilight-control modify values coolinx 2 78 09-20-2019, 07:24 PM
Last Post: coolinx
  [Fixed] High CPU usage when pilight usb nano disconnects DieterK 1 132 08-13-2019, 05:43 PM
Last Post: curlymo
  pilight Nano USB interface curlymo 228 97,117 07-10-2019, 06:14 PM
Last Post: curlymo
  pilight 8 what chages for custom protocols? polo 11 2,897 02-15-2019, 06:22 PM
Last Post: polo
  pilight-debug shows nothing minhdomanh 3 541 10-18-2018, 07:01 AM
Last Post: felfert
  pilight-send and pilight-daemon DieterK 0 558 06-20-2018, 12:44 AM
Last Post: DieterK
  Lights not switched on or off by rules in pilight 8.1.0 rorie 22 2,491 06-12-2018, 03:56 PM
Last Post: curlymo
  Odroid C2 support on Kernel 4.14 Jojo 5 698 06-01-2018, 03:19 PM
Last Post: curlymo
  check API in pilight 8 stratege-0815 4 1,397 02-11-2018, 09:34 AM
Last Post: stratege-0815

Forum Jump:


Browsing: 1 Guest(s)