Key points for installing PostgreSQL8.3 in Ubuntu8.04

Source: Internet
Author: User
My system is on the Virtual Machine Ubuntu8.041. first go to the http://www.postgresql.org that the next postgresqlcore8.3.2.use the command tar-xvfw.sql-8.3.3.tar.bz2 unzip 3. go to the decompressed folder and use. /configure command, which will automatically check the system configuration 4. unfortunately, a "ccannotoutputtheexe" message is reported.

My system is Ubuntu 8.04 on a virtual machine.

1. Go to http://www.postgresql.org where the next postgreSQL core 8.3.

2. Run the tar-xvf postgreSQL-8.3.3.tar.bz2 to decompress

3. Go to the decompressed folder and run the./configure command to automatically check the system configuration.

4. Unfortunately, a message "c cannot output the executable file" is reported"

Related reading:Install PostgreSQL8.3 in Ubuntu [multiple steps]

5. Then I found the information on the Internet and found that the libc was not upgraded, so use the command: sudo apt-get install libc6-dev gcc g ++

6. Run "./configure" again, but the readline library is not found is reported. If this error can be solved, zlib is not found may be reported.

7. Unfortunately I found more than 2 hours, downloaded countless related packages, and finally ended in readline5-dev package cannot be installed properly.

8. There is no way to run./configure -- without-readline -- without-zlib.

9. Then make

10. The following command adds sudo

Make install
Adduser postgres
Mkdir/usr/local/pgsql/data
Chown postgres/usr/local/pgsql/data

Here, we need to create a logfile and copy it to/usr/local/pgsql/data/(it seems that you can do it without copying it. You can try it)

Then switch the user sudo-ipvs

/Usr/local/pgsql/bin/initdb-D/usr/local/pgsql/data
/Usr/local/pgsql/bin/postgres-D/usr/local/pgsql/data> logfile 2> & 1 &
/Usr/local/pgsql/bin/createdb test
/Usr/local/pgsql/bin/psql test

Finally, you can see the SQL interactive interface.

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.