Build from source issue with jessie and libavahi-client-dev and libboost-thread-dev

515 views
Skip to first unread message

Colin Whittaker

unread,
Mar 31, 2016, 7:21:19 PM3/31/16
to Machinekit
I started with a clean debian install of Jessie and added machinekit. 
It ran the simulations fine.
Then I tried to install and build from source following the instructions from the machinekit-docs.

I'm not stuck at ./configure --with-rt-preempt

checking for AVAHI... no
configure: error: Package requirements (avahi-client > 0.6) were not met:

No package 'avahi-client' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

I try to install libavahi-client-dev, but can't

# sudo apt-get install libavahi-client-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libavahi-client-dev : Depends: libdbus-1-dev (>= 0.60) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

And it won't install libdbus-1-dev because of a version issue.

# sudo apt-get install libdbus-1-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libdbus-1-dev : Depends: libdbus-1-3 (= 1.8.20-0+deb8u1) but 1.10.8-1 is to be installed
E: Unable to correct problems, you have held broken packages.

This is probably an issue with libdbus, but I'm stuck.

Same kind of issue with libboost-thread-dev, 
 libboost-thread-dev : Depends: libboost-thread1.55-dev but it is not going to be installed
 libboost-date-time1.55-dev : Depends: libboost-date-time1.55.0 (= 1.55.0+dfsg-3) but it is not going to be installed


Anyone run into these issues ?
Is my version of jessie too new ?
Anyone have any ideas ?

# uname -a
Linux debian 4.1.0-0.bpo.1-rt-amd64 #1 SMP PREEMPT RT Debian 4.1.3-1~bpo8+1 (2015-08-12) x86_64 GNU/Linux

Colin..


Michael Haberler

unread,
Mar 31, 2016, 7:48:53 PM3/31/16
to Colin Whittaker, Machinekit
installing avahi-client on a "clean debian install" is not a machinekit issue but an apt configuration problem

that said:

a) please post the output of 'apt-cache policy avahi-client'

b) please post ALL files under /etc/apt/sources.d plus /etc/apt/sources.list on pastebin.com


Note if you compile and use machinekit from source you should uninstall the machinekit debian packages

- Michael

>
>
>
> --
> website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
> ---
> You received this message because you are subscribed to the Google Groups "Machinekit" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+...@googlegroups.com.
> Visit this group at https://groups.google.com/group/machinekit.
> For more options, visit https://groups.google.com/d/optout.

Colin Whittaker

unread,
Mar 31, 2016, 8:18:49 PM3/31/16
to Machinekit, coli...@gmail.com
Thanks Michael,

I think I found my issue, and it is a doozy.....
libdbus-1-3 version as well as a number of other package versions were upgraded to the sid release versions. Ugh!!!!!!!!!

My guess is I did an apt-get upgrade with the sid repo still in my /etc/apt/sources.list and the preferences file didn't work or doesn't apply to upgrade. Not sure what happened, but after removing the sid repos, I get the correct versions of things.

I think maybe they could add a warning to the
page to take out the sid repos after obtaining czmq or something...

So I remove libdbus-1-3 and it took more than 100 other things with it. I reinstalled it and the correct version came up. of course not everything re-installed.

Now I'm stuck on libboost since sid version of libstdc++ is newer and another 100+ packages depend on this library. Trying to force downgrade didn't work.

Might have to start from scratch.




Colin Whittaker

unread,
Mar 31, 2016, 8:39:46 PM3/31/16
to Machinekit, coli...@gmail.com
I'm starting to think it was the order of operations.

I did the  scripts/apt-installbuilddeps first
Then did the adding of sid to source.list and preferences.
Then I did the sudo apt-get install -t sid libczmq-dev

Now all the packages are installed for ./configure and that works.

However, when libczmq-dev installed, I got a bunch of other new stuff from sid, like gcc-5 and a new libboost.
And make fails in encdec in the protobuf stuff.

Michael Haberler

unread,
Apr 1, 2016, 1:47:06 AM4/1/16
to Colin Whittaker, Machinekit

> Am 01.04.2016 um 02:18 schrieb Colin Whittaker <coli...@gmail.com>:
>
> Thanks Michael,
>
> I think I found my issue, and it is a doozy.....
> libdbus-1-3 version as well as a number of other package versions were upgraded to the sid release versions. Ugh!!!!!!!!!
>
> My guess is I did an apt-get upgrade with the sid repo still in my /etc/apt/sources.list and the preferences file didn't work or doesn't apply to upgrade. Not sure what happened, but after removing the sid repos, I get the correct versions of things.


actually the sid repo should not be necessary anymore as there are packages in deb.machinekit.io with the right version, a straight jessie install should do

>
> I think maybe they could add a warning to the
> https://github.com/machinekit/machinekit-docs/blob/master/machinekit-documentation/getting-started/APT-packages-jessie.asciidoc
> page to take out the sid repos after obtaining czmq or something...

there is no documentation team called 'they', there is one called 'you - send a PR' ;)

>
> So I remove libdbus-1-3 and it took more than 100 other things with it. I reinstalled it and the correct version came up. of course not everything re-installed.
>
> Now I'm stuck on libboost since sid version of libstdc++ is newer and another 100+ packages depend on this library. Trying to force downgrade didn't work.
>
> Might have to start from scratch.
>
>
>
>
>
Reply all
Reply to author
Forward
0 new messages