-   Slackware (
-   -   distcc package installation (

Andy Alt 03-15-2012 09:22 PM

distcc package installation
Should the Slackware package set these links up during the install?

From the distcc docs:

For instance, you could create the directory named /usr/lib/distcc/bin
and populate it with links.

# mkdir /usr/lib/distcc/bin
# cd /usr/lib/distcc/bin
# ln -s ../../../bin/distcc gcc
# ln -s ../../../bin/distcc cc
# ln -s ../../../bin/distcc g++
# ln -s ../../../bin/distcc c++

Do this for all compiler names that you use.

Then, to use distcc, a user just needs to put the directory
/usr/lib/distcc/bin early in the PATH and distcc will handle the rest.

export PATH=/usr/lib/distcc/bin:$PATH
I tried distcc for the first time, going both ways on a Debian Squeeze machine and a Slackware 13.1 machine.

The links were already made by Debian, but I couldn't find them on the machine Slack was installed. No big deal; I made suitable links. Thought Pat or the powers-that-be might want to consider adding the link creation to the install script.

I checked where I have 13.37 installed and didn't see them either. I haven't seen what -current is up to. (I wanted to cover all my bases before I posted.)

When I used distcc a few days ago, I would precede the make command with PATH=/usr/lib/distcc/bin:$PATH
I don't want to "permanently" change the path when distcc is something I don't anticipate on using regularly.

weibullguy 03-15-2012 10:26 PM

The short answer is no. That is only one way to setup distcc (the phrase "For instance" is a dead give away). In fact, the preceding paragraph ends with the sentence, "Other options are discussed in the manual." For instance, in conjunction with ccache. How distcc is used should be up the user. My :twocents:

Andy Alt 03-16-2012 04:59 AM

I'm satisfied with your two cents. Thanks!

All times are GMT -5. The time now is 09:53 PM.