Ubuntu12.04 under postgresql-9.3.4 compile source error, no ReadLine library not found

Source: Internet
Author: User
Tags readline



1. Problem phenomenon:



Download Link: http://www.postgresql.org/ftp/source/



Compile and install after decompression (requires root permission)


 
1 [email protected]:/opt/postgresql-9.3.4#  tar -zxvf postgresql-9.3.4.tar.gz
2 [email protected]:/opt/postgresql-9.3.4#  cd postgresql-9.3.4/
3 [email protected]:/opt/postgresql-9.3.4#  ./configure && make && make install


The following error appears






It is said that--without-readline can be used, but PG is not recommended. After the use of specific results, have not been unclear.



Another play is to complement the whole ReadLine library:


 
[email protected]:/opt/postgresql-9.3.4# ldconfig -p | grep readline
libreadline.so.6 (libc6,x86-64) => /lib/x86_64-linux-gnu/libreadline.so.6


Find this system has libreadline.so.6 this library file, and online there are many say should install Libreadline5-dev, but install this library times wrong:






[Email protected]:/opt/postgresql-9.3.4# apt-get Install Libreadline5-dev
Reading Package Lists ... Done
Building Dependency Tree
Reading state information ... Done
Package Libreadline5-dev are not available, but are referred to by the another package.
This may mean and the package are missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
Libreadline-gplv2-dev:i386 lib64readline-gplv2-dev:i386 Libreadline-gplv2-dev



E:package ' Libreadline5-dev ' has no installation candidate



Conjecture: This kind of installation should be suitable for this kind of situation:libreadline.so.5 (LIBC6) and/lib/libreadline.so.5, containing this type of command can be.



Method of Settlement:



Install Libreadline6-dev for previous displays OK


 
[email protected]:/opt/postgresql-9.3.4# apt-get install  libreadline6-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libtinfo-dev
The following NEW packages will be installed:
  libreadline6-dev libtinfo-dev
0 upgraded, 2 newly installed, 0 to remove and 79 not upgraded.
Need to get 367 kB of archives.
After this operation, 1,202 kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://mirrors.163.com/ubuntu/ precise/main libtinfo-dev amd64 5.9-4 [103 kB]
Get:2 http://mirrors.163.com/ubuntu/ precise/main libreadline6-dev amd64 6.2-8 [264 kB]
Fetched 367 kB in 1s (230 kB/s)
Selecting previously unselected package libtinfo-dev.
(Reading database ... 82773 files and directories currently installed.)
Unpacking libtinfo-dev (from .../libtinfo-dev_5.9-4_amd64.deb) ...
Selecting previously unselected package libreadline6-dev.
Unpacking libreadline6-dev (from .../libreadline6-dev_6.2-8_amd64.deb) ...
Processing triggers for install-info ...
Setting up libtinfo-dev (5.9-4) ...
Setting up libreadline6-dev (6.2-8) ...


This installation is successful!!!






Ubuntu12.04 postgresql-9.3.4 Compile source error, no ReadLine library not found


Related Article

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.