mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Various updates to install, including redirecting installers to
Makefile.custom and pointers at the customize script...
This commit is contained in:
		
							
								
								
									
										35
									
								
								INSTALL
									
									
									
									
									
								
							
							
						
						
									
										35
									
								
								INSTALL
									
									
									
									
									
								
							@@ -81,7 +81,15 @@ To install PostgreSQL on UNIX platforms:
 | 
				
			|||||||
   Customization can be done by editing src/Makefile.global. You may change
 | 
					   Customization can be done by editing src/Makefile.global. You may change
 | 
				
			||||||
   the various configuration options here, such as where the PostgreSQL
 | 
					   the various configuration options here, such as where the PostgreSQL
 | 
				
			||||||
   executable files are installed and where postgres looks for the database
 | 
					   executable files are installed and where postgres looks for the database
 | 
				
			||||||
   directory.  The configuration switches are fairly self-explanatory, but we
 | 
					   directory.  
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   PostgreSQL V6.0 also supports src/Makefile.custom. This is not supplied
 | 
				
			||||||
 | 
					   with the distribution, but may be created to contain only the options 
 | 
				
			||||||
 | 
					   you wish to change in src/Makefile.global. This has the advantage that
 | 
				
			||||||
 | 
					   it will not be overwritten when you install a new version of PostgreSQL
 | 
				
			||||||
 | 
					   over the top of your current installation.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   The configuration switches are fairly self-explanatory, but we
 | 
				
			||||||
   will go over some of the more commonly-changed options:
 | 
					   will go over some of the more commonly-changed options:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
     - PORTNAME specifies the platform on which PostgreSQL is being built.
 | 
					     - PORTNAME specifies the platform on which PostgreSQL is being built.
 | 
				
			||||||
@@ -100,14 +108,25 @@ To install PostgreSQL on UNIX platforms:
 | 
				
			|||||||
       readline is not supplied with PostgreSQL and can be found in the
 | 
					       readline is not supplied with PostgreSQL and can be found in the
 | 
				
			||||||
       usual ftp sites for GNU software.
 | 
					       usual ftp sites for GNU software.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
     - HBA specifies whether you wish to use host-based authentication
 | 
					   In the simplest case, you would create src/Makefile.custom containing
 | 
				
			||||||
       for PostgreSQL.  See the section "How to Create a Database System"
 | 
					   just the line:
 | 
				
			||||||
       for how to set up the HBA permissions if you decide to use HBA.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
   After editing src/Makefile.global, you are ready to compile PostgreSQL
 | 
					       PORTNAME= portname
 | 
				
			||||||
   (it takes about 10 minutes on a 133Mhz Pentium running linux):
 | 
					
 | 
				
			||||||
 | 
					   (where you replace portname with the name of the system you are using).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   Even easier is to enter the src directory and run the customize shell
 | 
				
			||||||
 | 
					   script which will prompt you with various questions and create
 | 
				
			||||||
 | 
					   Makefile.custom for you:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
     % cd src
 | 
					     % cd src
 | 
				
			||||||
 | 
					     % customize
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   After editing src/Makefile.global or src/Makefile.custom, you are ready 
 | 
				
			||||||
 | 
					   to compile PostgreSQL (it takes about 10 minutes on a 133Mhz Pentium 
 | 
				
			||||||
 | 
					   running linux):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					     % cd src                              ( if you're not already there )
 | 
				
			||||||
     % gmake 
 | 
					     % gmake 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   The gmake ultimately issues the message "All of PostgreSQL is
 | 
					   The gmake ultimately issues the message "All of PostgreSQL is
 | 
				
			||||||
@@ -148,8 +167,8 @@ superuser.  The simplest way is by creating and running a C language
 | 
				
			|||||||
function.  There are plans to remedy this in future developent.
 | 
					function.  There are plans to remedy this in future developent.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The program initdb (part of Postgres) is what initializes (creates) a
 | 
					The program initdb (part of Postgres) is what initializes (creates) a
 | 
				
			||||||
database system.  Initdb uses the defaults specified in Makefile.global.
 | 
					database system.  Initdb uses the defaults specified in Makefile.global
 | 
				
			||||||
See the man page for initdb for more information.
 | 
					or Makefile.custom. See the man page for initdb for more information.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  % initdb --pgdata=/usr/local/pgsql/data --pglib=/usr/local/pgsql/lib
 | 
					  % initdb --pgdata=/usr/local/pgsql/data --pglib=/usr/local/pgsql/lib
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user