Compiling PostgreSQL 8.3.4 in Ubuntu Linux

Source: Internet
Author: User

Learning and analyzing source code PostgreSQL has just started over the past few days. I have read related articles and made preparations. Others say that the source code should be compiled in Linux for later work. Linux on my computer is finally useful. I use a Ubuntu-8.0.4.

Source code: postgresql-8.3.4.tar.bz2
Http://down1.chinaunix.net/distfiles/postgresql-8.3.4.tar.bz2

The following commands are used:

Linux @ Linux-laptop :~ /Desktop $: tar jxvf postgresql-8.3.4.tar.bz2
Linux @ Linux-laptop :~ /Desktop $: postgresql-8.3.4 cd
Linux @ Linux-laptop :~ /Desktop/postgresql-8.3.4 $:./configure -- prefix =/opt/postgresql-9.3.4
Linux @ Linux-laptop :~ /Desktop/postgresql-8.3.4 $: make
Linux @ Linux-laptop :~ /Desktop/postgresql-8.3.4 $: make install

But it was not successful for a long time: as long as it was a third-line command, there was an error.

If an error is reported:

./Configure error-readline library not found

Check again, mainly want to install something: bison, flex, libreadline5-dex these can be directly installed in the new software package manager.

In fact, I just started learning about Linux!

PS: For source code installation, there is a Kinstall in the new version, which can be installed in graphical words, no command is needed. However, you can manually install the tool.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.