Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can multiple make installs cause problems for the package system?

For example:

cd /usr/ports/*/nmap && make install
cd /usr/ports/*/firefox && make install
share|improve this question
up vote 4 down vote accepted

Yes, if two ports have the same dependancy, try to build it at the same time, one or both builds will fail. It's better to build ports serially (making a meta port of all the ports you want to install is a good idea if you're going to do it on several machines) and run make with a -j # to increase concurrency where it's able .

share|improve this answer
+1 - I'd also add that I try to build the port with the most dependencies first. If you're doing this for multiple machines it helps to use something like radmind or puppet to manage your machines (install on one box as a template and push out the changes to the rest of your environment) – voretaq7 Jun 3 '11 at 21:24
It's not a big problem for me to restart the build. Can this corrupt the package database? – eugene y Jun 3 '11 at 21:34
Do not run make with -j, ports system is already aware of this and by default will run one make process per CPU where it's possible – gelraen Jun 5 '11 at 19:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.