openhab / openhabian

openHABian - empowering the smart home, for Raspberry Pi and Debian systems
https://community.openhab.org/t/13379
ISC License
821 stars 251 forks source link

KNX installation not working (anymore) #85

Closed StephanSchuster closed 5 years ago

StephanSchuster commented 7 years ago

I just wrote the following comment to the owner of the underlying install script (currently awaiting moderation):

Hey,

your script no longer seems to work since knxd moved to 0.12. Could you please check this? Would be great.

I came across the issue when using openhabian’s config option “Install KNX” which internally uses your script. This fails due to the above mentioned reason. At least that’s my first guess.

After adding ‘git checkout tags/v0.10.18 -b install’ after ‘git clone … cd knxd’ in your script, the installation succeeds. However, I guess it’s better to migrate your script to knxd 0.12 (no pthsem dependency).

Are there any chances that you “fix” this soon? I guess a lot of people are stumbling over this when they want to try out the new openhab 2.0 release via openhabian (+KNX)

By the way: Thank you for your great work!

ThomDietrich commented 7 years ago

Interesting indeed. Please keep me posted. If you do not receive a response in the next few days, please tell me and I'll include a modified version directly in openHABian.

tischla commented 7 years ago

Hi, Script stops with:

checking for LIBUSB… yes EMI because of usb checking for ev_run in -lev… no configure: error: libev not found make: *** No rule to make target ‘clean’. Stop.

thx Roland

cribskip commented 7 years ago

There are 2 packages missing: libev-dev libev4 Afterwards, after triggering from within openhabian-config, it builds just fine.

KR, Sascha

ThomDietrich commented 7 years ago

@stephanschuster was the script updated or is the solution by @cribskip all that's needed? sure sounds like a clean solution. @cribskip so adding these to packages to the installation routine is all that's needed?

StephanSchuster commented 7 years ago

Well, I'm not at home at the moment. So I cannot verify this. But I remember that I definitely installed libev-dev and libev4 and retriggered the install script. Not sure anymore if the build was really successful then. I've tried various stuff meanwhile. In the end I never managed to see KNX packages with knxtool. But that might have other reasons. My setup: RPI3, openHABianpi, knxd, TUL stick with "transparent" firmware.

Regarding the script: It was not updated yet. And my comment on the authors blog still awaits moderation. Apart from that I think even if it compiles with libev, it needs to be adjusted a bit. According to the knxd homepage version 0.12 has no more deps to pthsem which is also installed by the script.

tatsche commented 7 years ago

I definitely install libev-dev and libev4, but the script fails with the same issue:

checking for ev_run in -lev... no configure: error: libev not found

Cheers

zigulle commented 7 years ago

Hallo,

same here. libel-dev is installed, but the script fails with the same issue:

checking for ev_run in -lev... no configure: error: libev not found

Greetings

ThomDietrich commented 7 years ago

@stephanschuster you can for sure ask these kinds of things. But please not here. You'll reach more people in the community forum https://community.openhab.org/tags/knx

Regarding the issue: Please note, that I myself am not using knx. Hence would be great if you came up with an idea and reported back so i can fix it in script. You should also reach out to the openhab community for help.

StephanSchuster commented 7 years ago

@ThomDietrich: Sorry for the off-topic post. I moved it to here as you suggested.

ThomDietrich commented 7 years ago

No problem. It's just more likely to not solve one problem if people start talking about another ;)

StephanSchuster commented 7 years ago

Okay, for me it's working as expected now.

What I did:

Done. I can see the packages with knxtool. Perfect. Now I can move on ...

StephanSchuster commented 7 years ago

Grrr. knxd seems to work but now I cannot access http://openhabianpi:8080/. Connection refused all the time. Even after reboot. Any ideas if and how this could relate to the knxd installation? Unfortunately I did not try to access the webpage before installation of knxd. But in my last installations of openhabianpi it always worked. Any hints on how to debug this?

Update: Problem was apparently due to the fact that I triggered "Basic Setup" via openhabian-config. Resulted in Issue #244. At least openhab did not start and printed the same Exception Trace as listed there. Anyways, a reinstall of openhabian and knxd fixed it. Now both systems are running.

StephanSchuster commented 7 years ago

Michael, the author of the install script, updated his script and created a git repo:

Michael January 30, 2017 at 2:43 PM

Hi Marc, i changed the script. Now it should working with knxd v0.12. Version is 0.7.0. I also created a repository at github

https://github.com/Race666/install-knxd

Michael

Source: http://michlstechblog.info/blog/raspberry-pi-eibknx-ip-gateway-and-router-with-knxd/

I did not try it. I'm fine with my own compilation. According to some first comments, the script is now working again. Maybe openhabian should use the new git repo for the KNX install script

ThomDietrich commented 7 years ago

@stephanschuster as this issue seems unchanged, let's replace the third party script. Would you care to post a script? It could already be fully automatic but any solution I can use is already okay.

ferratello commented 7 years ago

Hi, due to a sd-card file system problem I've just "reinstalled" from scratch openhabian (v. 20170218) on my raspberry pi 3. I had some problem installing knxd from openhabian-config, so I wrote this small script that worked like a charm (for me) https://github.com/ferratello/knxd_installer ... ...hope can be helpful.

EliasGabrielsson commented 5 years ago

Closing this for having clean issue log. Track progress in: https://github.com/openhab/openhabian/issues/651