582 CHAPTER 25 INSTALLING POSTGRESQL Installing PostgreSQL (Web hosting reviews)
582 CHAPTER 25 INSTALLING POSTGRESQL Installing PostgreSQL on Linux and Unix This section outlines installing PostgreSQL using both the RPMs and source code. Installing PostgreSQL from RPMs Installing PostgreSQL from an RPM is a trivial task; just execute the following command as root: %>rpm -ivh postgresql-*.rpm Next, proceed to the section Linux Post-Installation Steps to complete the configuration process. Installing PostgreSQL from Source Installing from source is the route you want to take if you want to modify the default settings, such as specifying whether documentation should be installed or changing the default location of the PostgreSQL applications. In fact, you might be forced to install from source if prebuilt packages are not available for your particular Unix variant. While newcomers to open source software might feel a bit intimidated by the idea of executing the unfamiliar commands involved in the configuration and installation process, it s actually quite trivial. In fact, at its most basic level you can build from source simply by executing the following commands: %> gunzip postgresql-X.X.X.tar.gz %> tar xvf postgresql-X.X.X.tar %> cd postgresql-X.X.X %> ./configure [Wait patiently while the configuration process completes] %> make [Wait patiently while the build process completes] %> make install [Wait patiently while the installation process completes] If, when executing any of these commands, you receive a message stating something to the effect of command not found, then your operating system doesn t have all of the requisite software installed. At a minimum, you need tar (http://www.gnu.org/software/tar/) and gzip (http://www.gnu.org/software/gzip/) (although tar can also unzip) or similar solutions for uncompressing and unarchiving the PostgreSQL package, respectively. You also need a solu tion such as GNU make (http://www.gnu.org/software/make/) for building the package and, finally, a C compiler such as that found in the GNU Compiler Collection, better known as GCC (http://gcc.gnu.org/). If any of these applications is not presently installed on your system, you re guaranteed to find it on the distribution CD or on your repository of choice. Also, you need to execute the last command (make install) as a superuser, due to the need to create and write to directories; for security reasons, you should execute the first two commands as any non-superuser. However, executing these commands as just described causes PostgreSQL to be built using the default settings, some of which you may wish to change. To do so, you need to pass one or several options to the configure command. For example, to bypass instal lation of the documentation, execute configure like so, and then execute make and make install as indicated above:
Please visit our professional web hosting services to find out about cheap and reliable webhost service that will surely answer all your demands.