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.