Subject: Re: "make" with pkgsrc
To: Daniel Bolgheroni <dab__@uol.com.br>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 02/24/2003 23:23:38
On Tue, 25 Feb 2003, Daniel Bolgheroni wrote:

> ./configure.lineno: ./configure.lineno: Cannot forkCannot fork
>
> configure: creating ./config.status
> ./configure.lineno: Cannot fork
> ./config.status: Cannot fork

Your problem is "Cannot fork".

Your problem is the user you are building the software as can't start any
more processes.

Try:

sysctl kern.maxproc # to view your system limit

sysctl proc.curproc.rlimit.maxproc  # to view your limits

With a ksh(1) or sh(1) shell, do:

 ulimit -p # to see your soft limit
 ulimit -Hp # to see your hard limit

With bash, do:

 ulimit -u # to see the limit
 ulimit -Hu # to see the hard limit

With csh(1) shell, try:

 limit maxproc  # to see your limit
 limit -h maxproc # maximum

Now to easily increase your limits, with ksh or sh do:

With ksh(1) or sh(1):
 ulimit -p NUMBER

With bash:
  ulimit -u unlimited

With csh:
 limit maxproc unlimited

If you want it consistent, then use /etc/login.conf. For example:
default:maxproc=200:

Good luck,

   Jeremy C. Reed

   http://www.pugetsoundtechnology.com/