Boost: compile latest source or use add-apt-repository
I’m at a junction should I go one way or another…?
Boost 1.55 is part of Raspian Jessie stable, and the advice when installing Domoticz is to use the latest Boost (by compiling the source...), ie. now 1.61, though “as of 19th December 2015 that is version 1.60.”.
(Edit: following advice I have successfully built Domoticz on top of Boost 1.55 using gcc 4:4.9.2-2 (just had to let it have 3 bites at the make)).
I can do one of the following:
a) Ignore the downloaded source (hey ho!) and start with the following and stay within the apt-get system but perhaps stay on the bleeding edge of Boost?
(Edit: I got errors trying to go this way and backed off.):
sudo add-apt-repository ppa:boost-latest/ppa
etc
b) Compile the downloaded source outside of the apt-get system (this seems like a bad idea unless I can re-connect it with the apt-get system...)
(Edit: This seemed unnecessary unless necessary! :-p, so again I backed off.)
I have appropriate backups using rpi-clone to a set of SD cards ;)
I have a backup of pre-Boost 1.55 removal (“you will get linking errors if you don't remove the old Boost library”).
I have since downloaded Boost 1.61 and could compile it (just doing another separate rpi-clone backup to another SD card)…
Any suggestions welcome…
I've seen these:
When should one compile and install from source?
- "I would say, compile from source only when you have to. When managing a system, losing the management facilities of your package manager can be something that should be avoided at all costs."
- and it mentions rpmbuild...
sudo apt-get install software-properties-common python-software-properties
), but I can load that SD card and generate them again.... I have built Domoticz using gcc, just working out how to run it properly ;-p – Geoff May 22 '16 at 12:13make install
- and even then you should GNU stow or similar to make it easier to clean up the resulting mess when it's no longer needed. – cas May 22 '16 at 12:32