On Saturday 08 February 2003 06:46 am, MAL wrote:
> This is a solved problem, but I thought i'd share it with you.
>
> On my machine at least, distccd, (which was running as nobody), wasn't
> getting the path to gcc, (as provided by sourcing /etc/profile.env).
>
> This was resulting in remote compiles failing with: 'gcc: command not
> found'.
>
> This happens because distcc isn't being run in a login shell by
> start-stop-daemon, and so /etc/profule isn't sourced, (as it is when you
> login).  On a side note, suing to root, didn't give me gcc either... I
> had to add '. /etc/profile' to my root's .bashrc.
>
> Anyway, to fix this I simply added '. /etc/profile' to
> /etc/init.d/distccd, just before it starts distccd.
>
> These dynamically pathed gcc's have caused me so many problems :/

An other solution is to add PATH=$(gcc-config --get-bin-path) to the distccd 
file in init.d. Distcc version 1.1 uses this method.

--
[EMAIL PROTECTED] mailing list

Reply via email to