[postgis-users] Installing PostGIS on FreeBSD : trouble with libpq

Dheeraj Chand dheeraj at dheerajchand.com
Thu Nov 24 08:11:32 PST 2011


It was whichever one was in the ports tree, and currently is in the ports tree. Current update:

1. I deinstalled 8.4.9 completely, 
2. I deinstalled PostGIS completey,
3. I installed 9.1

When I tried to initialise the PSQL upon startup, I saw the following:

dirty:/home/dheerajchand# sudo  /usr/local/etc/rc.d/postgresql initdb
postgresql_enable=YES: not found
The files belonging to this database system will be owned by user "pgsql".
This user must also own the server process.

The database cluster will be initialized with locale C.
The default text search configuration will be set to "english".

creating directory /usr/local/pgsql/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 10
selecting default shared_buffers ... 400kB
creating configuration files ... ok
creating template1 database in /usr/local/pgsql/data/base/1 ... FATAL:  could not create semaphores: No space left on device
DETAIL:  Failed system call was semget(1, 17, 03600).
HINT:  This error does *not* mean that you have run out of disk space.  It occurs when either the system limit for the maximum number of semaphore sets (SEMMNI), or the system wide maximum number of semaphores (SEMMNS), would be exceeded.  You need to raise the respective kernel parameter.  Alternatively, reduce PostgreSQL's consumption of semaphores by reducing its max_connections parameter.
	The PostgreSQL documentation contains more information about configuring your system for PostgreSQL.
child process exited with exit code 1
initdb: removing data directory "/usr/local/pgsql/data"
dirty:/home/dheerajchand# 

Now, this is on FreeBSD in a jail. I have no idea how to make the changes it's asking for in order to initialise. Any suggestions?

Dheeraj



On Nov 24, 2011, at 6:17 AM, Ben Madin wrote:

> Which version of PostgreSQL did you install?
> 
> cheers
> 
> Ben
> 
> 
> On 24/11/2011, at 4:47 PM, dheeraj at dheerajchand.com wrote:
> 
>> 
>> Mark Stosberg <mark <at> summersault.com> writes:
>> 
>>> 
>>> On 10/27/2011 08:34 PM, Dheeraj Chand wrote:
>>>> Hi, all,
>>>> 
>>>> I'm not that great with BSD, but I'm running into this error trying to
>> install from the ports tree. Anyone
>>> willing to help?
>>> 
>>> What version of FreeBSD are you using? Did you install PostgreSQL 8.4.9
>>> from ports, a package, or by hand?
>>> 
>>>  Mark
>> 
>> 
>> 
>> ACK! I never got this email. Stupid junk filters. It all came from ports. I've
>> done nothing by hand.
>> 
>> Dheeraj
>> 
>> 
>> _______________________________________________
>> postgis-users mailing list
>> postgis-users at postgis.refractions.net
>> http://postgis.refractions.net/mailman/listinfo/postgis-users
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users




More information about the postgis-users mailing list