AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Configure postgresql server drivehud1/3/2024 ![]() install-strip tries to do a reasonable job saving space, but it does not have perfect knowledge of how to strip every unneeded byte from an executable file, so if you want to save all the disk space you possibly can, you will have to do manual work. If you built with debugging support, stripping will effectively remove the debugging support, so it should only be done if debugging is no longer needed. You can use make install-strip instead of make install to strip the executable files and libraries as they are installed. ![]() If you built the world without the documentation above, type instead: make install-world-bin If you built the world above, type instead: make install-world To install the documentation (HTML and man pages), enter: make install-docs Alternatively, you can create the target directories in advance and arrange for appropriate permissions to be granted. Normally you need to do this step as root. Make sure that you have appropriate permissions to write into that area. This will install files into the directories that were specified in Step 1. ![]() To install PostgreSQL enter: make install If you are upgrading an existing system be sure to read Section 19.6, which has instructions about upgrading a cluster. You can repeat this test at any later time by issuing the same command. (This won't work as root do it as an unprivileged user.) See Chapter 33 for detailed information about interpreting the test results. The regression tests are a test suite to verify that PostgreSQL runs on your machine in the way the developers expected it to. If you want to test the newly built server before you install it, you can run the regression tests at this point. If you want to invoke the build from another makefile rather than manually, you must unset MAKELEVEL or set it to zero, for instance like this:įailure to do that can lead to strange error messages, typically about missing header files. If you want to build everything that can be built, including the additional modules ( contrib), but without the documentation, type instead: make world-bin If you want to build everything that can be built, including the documentation (HTML and man pages), and the additional modules ( contrib), type instead: make world (Remember to use GNU make.) The build will take a few minutes depending on your hardware. ![]() To start the build, type either of: make make all These provide additional ways to customize the configuration. configure has a large number of options, which are described in Section 17.4.1.Īlso, configure responds to certain environment variables, as described in Section 17.4.2. Typically you would customize the install location, or the set of optional features that are built. You can customize the build and installation process by supplying one or more command line options to configure. All files will be installed under /usr/local/pgsql by default. The default configuration will build the server and utilities, as well as all client applications and interfaces that require only a C compiler. Here's how: mkdir build_dir cd build_dir /path/to/source/tree/configure make You can also run configure in a directory outside the source tree, and then build there, if you want to keep the build directory separate from the original source files. This script will run a number of tests to determine values for various system dependent variables and detect any quirks of your operating system, and finally will create several files in the build tree to record what it found. ![]() This is done by running the configure script. The first step of the installation procedure is to configure the source tree for your system and choose the options you would like. ![]()
0 Comments
Read More
Leave a Reply. |