Compiling for headless use?

Message boards : Questions and problems : Compiling for headless use?
Message board moderation

To post messages, you must log in.

AuthorMessage
tehhustler

Send message
Joined: 30 Jun 18
Posts: 8
United Kingdom
Message 86935 - Posted: 8 Jul 2018, 11:51:23 UTC

A few of my hosts have old versions of BOINC in their repositories. So I’d like to compile from source.

Unfortunately it tries to compile the gui client too (I assume that’s why it’s asking for WxWidgets) - is there a way I can compile the cmd line client only with the make process? Literally all of my 12 hosts are headless.
ID: 86935 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 86936 - Posted: 8 Jul 2018, 12:32:03 UTC - in response to Message 86935.  

./configure --disable-server  --disable-manager

See https://boinc.berkeley.edu/trac/wiki/CompileClient and https://boinc.berkeley.edu/trac/wiki/BuildSystem for documentation
ID: 86936 · Report as offensive
tehhustler

Send message
Joined: 30 Jun 18
Posts: 8
United Kingdom
Message 86937 - Posted: 8 Jul 2018, 17:23:23 UTC

Thanks, can’t believe I’ve missed that.
ID: 86937 · Report as offensive
tehhustler

Send message
Joined: 30 Jun 18
Posts: 8
United Kingdom
Message 86938 - Posted: 8 Jul 2018, 17:49:43 UTC

So close. It’s choking on install:

chmod +x boinc-client
chmod: cannot access 'boinc-client': No such file or directory
Makefile:556: recipe for target 'install-exec-hook' failed
make[6]: *** [install-exec-hook] Error 1
make[6]: Leaving directory '/home/pi/coding/boinc/client/scripts'
Makefile:498: recipe for target 'install-exec-am' failed
make[5]: *** [install-exec-am] Error 2
make[5]: Leaving directory '/home/pi/coding/boinc/client/scripts'
Makefile:449: recipe for target 'install-am' failed
make[4]: *** [install-am] Error 2
make[4]: Leaving directory '/home/pi/coding/boinc/client/scripts'
Makefile:646: recipe for target 'install-recursive' failed
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory '/home/pi/coding/boinc'
Makefile:945: recipe for target 'install' failed
make[2]: *** [install] Error 2
make[2]: Leaving directory '/home/pi/coding/boinc'
Makefile:1089: recipe for target 'stage' failed
make[1]: *** [stage] Error 2
make[1]: Leaving directory '/home/pi/coding/boinc'
Makefile:564: recipe for target '../../../stage' failed
make: *** [../../../stage] Error 2
ID: 86938 · Report as offensive
tehhustler

Send message
Joined: 30 Jun 18
Posts: 8
United Kingdom
Message 86939 - Posted: 8 Jul 2018, 18:11:31 UTC - in response to Message 86938.  

Well I can manually copy the binary and it seems to work. Don’t think my projects are happy...

Should have read up on this first instead of just diving in. Now I can’t fix the package to the original version.

Guess I’ll come back to this another time. 11 hosts is fine...
ID: 86939 · Report as offensive
tehhustler

Send message
Joined: 30 Jun 18
Posts: 8
United Kingdom
Message 86940 - Posted: 8 Jul 2018, 20:26:05 UTC - in response to Message 86939.  

Ok, I think it’s actually working fine now.

I’m gojng to assume upgrading to bleeding-edge dev versions is frowned upon?
ID: 86940 · Report as offensive
Richard Haselgrove
Volunteer tester
Help desk expert

Send message
Joined: 5 Oct 06
Posts: 5081
United Kingdom
Message 86941 - Posted: 8 Jul 2018, 20:47:05 UTC - in response to Message 86940.  

It's encouraged, but we do ask you to participate in bug-hunting and catching problems. The bleeding edge is where the mistakes are made and (hopefully) caught.
ID: 86941 · Report as offensive
MarkJ
Volunteer tester
Help desk expert

Send message
Joined: 5 Mar 08
Posts: 272
Australia
Message 86944 - Posted: 9 Jul 2018, 6:51:54 UTC

What distro are you running? Don't they have boinc-client in their repo or did you want to compile your own?
MarkJ
ID: 86944 · Report as offensive
tehhustler

Send message
Joined: 30 Jun 18
Posts: 8
United Kingdom
Message 86949 - Posted: 9 Jul 2018, 14:38:09 UTC - in response to Message 86944.  

Raspbian Stretch Lite, seems to be stuck on 7.6.33
ID: 86949 · Report as offensive
MarkJ
Volunteer tester
Help desk expert

Send message
Joined: 5 Mar 08
Posts: 272
Australia
Message 86977 - Posted: 10 Jul 2018, 12:30:52 UTC - in response to Message 86949.  

Raspbian Stretch Lite, seems to be stuck on 7.6.33

You can use the standard Debian repo assuming its a Pi2 or Pi3. The minimum Debian support is an ARMv7 processor which is why you need a Pi2 or better.

See here for how to do it. You can then use the boinc-client from stretch-backports, which as I type this is 7.10.2. The 7.12 will probably hit stretch-backports in a week or two.
MarkJ
ID: 86977 · Report as offensive
tehhustler

Send message
Joined: 30 Jun 18
Posts: 8
United Kingdom
Message 86978 - Posted: 10 Jul 2018, 12:40:56 UTC - in response to Message 86977.  

That's really helpful, thank you. I'm on a Pi3
ID: 86978 · Report as offensive

Message boards : Questions and problems : Compiling for headless use?

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.