데이터 베이스 MySQL 튜토리얼 PostgreSQL教程:configure: error: readline library not found

PostgreSQL教程:configure: error: readline library not found

Jun 07, 2016 pm 05:11 PM
postgresql

在搭建Postgresql测试环境,在安装过程中遇到一个问题,在执行 configure过程中报以下错误,configure: error: readline library

过程中报以下错误,configure: error: readline library not found,同事说已经在系统中安装
readline 包了,让我帮他看下。

1 环境信息
OS: CentOS release 5.2(Final)
PG: postgresql-9.0.0]

2 根据提示,,我测试了下 configre命令,果然报这个错
[root@HK81-107postgresql-9.0.0]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking which template to use... linux
checking whether to build with 64-bit integer date/time support...yes
checking whether NLS is wanted... no
checking for default port number... 5432
checking for block size... 8kB
checking for segment size... 1GB
checking for WAL block size... 8kB
checking for WAL segment size... 16MB
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking if gcc supports -Wdeclaration-after-statement...yes
checking if gcc supports -Wendif-labels... yes
checking if gcc supports -fno-strict-aliasing... yes
checking if gcc supports -fwrapv... yes
checking whether the C compiler still works... yes
checking how to run the C preprocessor... gcc -E
checking allow thread-safe client libraries... yes
checking whether to build with Tcl... no
checking whether to build Perl modules... no
checking whether to build Python modules... no
checking whether to build with GSSAPI support... no
checking whether to build with Kerberos 5 support... no
checking whether to build with PAM support... no
checking whether to build with LDAP support... no
checking whether to build with Bonjour support... no
checking whether to build with OpenSSL support... no
checking for grep that handles long lines and -e.../bin/grep
checking for egrep... /bin/grep -E
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for ranlib... ranlib
checking for strip... strip
checking whether it is possible to strip libraries... yes
checking for ar... ar
checking for tar... /bin/tar
checking whether ln -s works... yes
checking for gawk... gawk
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for bison... no
configure: WARNING:
*** Without Bison you will not be able to build PostgreSQL from CVSnor
*** change any of the parser definition files. You can obtain Bison from
*** a GNU mirror site.  (If you are using theofficial distribution of
*** PostgreSQL then you do not need to worry about this, becausethe Bison
*** output is pre-generated.)
checking for flex... no
configure: WARNING:
*** Without Flex you will not be able to build PostgreSQL from CVSnor
*** change any of the scanner definition files. You can obtain Flex from
*** a GNU mirror site.  (If you are using theofficial distribution of
*** PostgreSQL then you do not need to worry about this because theFlex
*** output is pre-generated.)
checking for perl... /usr/bin/perl
configure: using perl 5.8.8
checking for main in -lm... yes
checking for library containing setproctitle... no
checking for library containing dlopen... -ldl
checking for library containing socket... none required
checking for library containing shl_load... no
checking for library containing getopt_long... nonerequired
checking for library containing crypt... -lcrypt
checking for library containing fdatasync... nonerequired
checking for library containing gethostbyname_r... nonerequired
checking for library containing shmget... none required
checking for -lreadline... no
checking for -ledit... no
configure: error: readline library notfound
If you have readline already installed, see config.log for detailson the
failure.  It is possible the compiler isnt lookingin the proper directory.
Use --without-readline to disable readlinesupport.

    根据提示,应该是没有安装 readline包。

3 检查系统是否安装 readline 包
[root@HK81-107postgresql-9.0.0]# rpm -qa | grep readline
readline-5.1-3.el5

   说明系统已经安装了 readline包。

4 通过 yum 搜索相关的readline 包
[root@HK81-107postgresql-9.0.0]# yum search readline
lftp.i386 : A sophisticated file transfer program
lftp.i386 : A sophisticated file transfer program
php-readline.i386 : Standard PHP module provides readline librarysupport
lftp.i386 : A sophisticated file transfer program
readline.i386 : A library for editing typed commandlines.
compat-readline43.i386 : The readline 4.3 library for compatibilitywith older software.
readline-devel.i386 : Files needed to develop programs which usethe readline library.
readline.i386 : A library for editing typed command lines.

 根据提示,有一个包引起了我的注意 "readline-devel",猜想可能与这个包有关。
 
5 安装 readline-devel 包
[root@HK81-107postgresql-9.0.0]# yum -y install -y readline-devel
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package readline-devel.i386 0:5.1-3.el5 set tobe updated
--> Processing Dependency: libtermcap-devel forpackage: readline-devel
--> Running transaction check
---> Package libtermcap-devel.i386 0:2.0.8-46.1 setto be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                Arch      Version         Repository       Size 
=============================================================================
Installing:
 readline-devel         i386      5.1-3.el5       base             146 k
Installing for dependencies:
 libtermcap-devel       i386      2.0.8-46.1      base              56 k

Transaction Summary
=============================================================================
Install     2Package(s)         
Update      0Package(s)         
Remove      0Package(s)        

Total download size: 201 k
Downloading Packages:
(1/2): libtermcap-devel-2 100%|=========================|  56kB   00:00     
(2/2): readline-devel-5.1 100% |=========================| 146kB   00:00     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing:libtermcap-devel            ######################### [1/2] 
  Installing:readline-devel              ######################### [2/2]

Installed: readline-devel.i386 0:5.1-3.el5
Dependency Installed: libtermcap-devel.i386 0:2.0.8-46.1
Complete!

6 再次执行 configure 成功。

7 关于 readline 的解释,来自官网
--without-readline
Prevents use of the Readline library (and libedit as well). Thisoption disables command-line 
editing and  history in psql, so it is notrecommended.

   说明: 根据步骤2 执行 configure时报错提示,可以加上 "--without-readline" 从而避开这个ERROR,
但Postgresql官方不推荐这么做,所以还是安装吧。

본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.

핫 AI 도구

Undresser.AI Undress

Undresser.AI Undress

사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover

AI Clothes Remover

사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool

Undress AI Tool

무료로 이미지를 벗다

Clothoff.io

Clothoff.io

AI 옷 제거제

AI Hentai Generator

AI Hentai Generator

AI Hentai를 무료로 생성하십시오.

인기 기사

R.E.P.O. 에너지 결정과 그들이하는 일 (노란색 크리스탈)
3 몇 주 전 By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. 최고의 그래픽 설정
3 몇 주 전 By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. 아무도들을 수없는 경우 오디오를 수정하는 방법
3 몇 주 전 By 尊渡假赌尊渡假赌尊渡假赌

뜨거운 도구

메모장++7.3.1

메모장++7.3.1

사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전

SublimeText3 중국어 버전

중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기

스튜디오 13.0.1 보내기

강력한 PHP 통합 개발 환경

드림위버 CS6

드림위버 CS6

시각적 웹 개발 도구

SublimeText3 Mac 버전

SublimeText3 Mac 버전

신 수준의 코드 편집 소프트웨어(SublimeText3)

MySQL 및 PostgreSQL: 웹 개발 모범 사례 MySQL 및 PostgreSQL: 웹 개발 모범 사례 Jul 14, 2023 pm 02:34 PM

MySQL 및 PostgreSQL: 웹 개발 모범 사례 소개: 현대 웹 개발 세계에서 데이터베이스는 필수 구성 요소입니다. 데이터베이스를 선택할 때 일반적인 선택은 MySQL과 PostgreSQL입니다. 이 문서에서는 웹 개발에 MySQL 및 PostgreSQL을 사용하는 모범 사례를 다루고 몇 가지 코드 예제를 제공합니다. 1. 적용 가능한 시나리오 MySQL은 대부분의 웹 애플리케이션, 특히 고성능, 확장성 및 사용 용이성을 요구하는 애플리케이션에 적합합니다.

MySQL 및 PostgreSQL: 성능 비교 및 ​​최적화 팁 MySQL 및 PostgreSQL: 성능 비교 및 ​​최적화 팁 Jul 13, 2023 pm 03:33 PM

MySQL 및 PostgreSQL: 성능 비교 및 ​​최적화 팁 웹 애플리케이션을 개발할 때 데이터베이스는 필수적인 구성 요소입니다. 데이터베이스 관리 시스템을 선택할 때 MySQL과 PostgreSQL은 두 가지 일반적인 선택입니다. 둘 다 오픈 소스 관계형 데이터베이스 관리 시스템(RDBMS)이지만 성능과 최적화에는 약간의 차이가 있습니다. 이 기사에서는 MySQL과 PostgreSQL의 성능을 비교하고 몇 가지 최적화 팁을 제공합니다. 두 데이터베이스 관리를 비교한 성능 비교

Go 언어로 데이터베이스 기능을 배우고 PostgreSQL 데이터의 추가, 삭제, 수정 및 쿼리 작업을 구현합니다. Go 언어로 데이터베이스 기능을 배우고 PostgreSQL 데이터의 추가, 삭제, 수정 및 쿼리 작업을 구현합니다. Jul 31, 2023 pm 12:54 PM

Go 언어의 데이터베이스 기능을 배우고 PostgreSQL 데이터의 추가, 삭제, 수정 및 쿼리 작업을 구현합니다. 현대 소프트웨어 개발에서 데이터베이스는 없어서는 안 될 부분입니다. 강력한 프로그래밍 언어인 Go 언어는 데이터베이스의 추가, 삭제, 수정 및 쿼리 작업을 쉽게 구현할 수 있는 풍부한 데이터베이스 작업 기능과 툴킷을 제공합니다. 이번 글에서는 Go 언어로 데이터베이스 기능을 익히고 PostgreSQL 데이터베이스를 실제 작업에 활용하는 방법을 소개합니다. 1단계: 각 데이터베이스에 대해 Go 언어로 데이터베이스 드라이버 설치

MySQL 및 PostgreSQL: 데이터 보안 및 백업 전략 MySQL 및 PostgreSQL: 데이터 보안 및 백업 전략 Jul 13, 2023 pm 03:31 PM

MySQL 및 PostgreSQL: 데이터 보안 및 백업 전략 소개: 현대 사회에서 데이터는 비즈니스와 개인 생활에서 없어서는 안 될 부분이 되었습니다. 데이터베이스 관리 시스템의 경우 데이터 손실이나 손상으로부터 데이터를 보호하고 복구된 데이터의 신뢰성과 무결성을 보장하기 위해 데이터 보안 및 백업 전략이 중요합니다. 이 기사에서는 두 가지 주류 관계형 데이터베이스 시스템인 MySQL과 PostgreSQL의 데이터 보안 및 백업 전략에 중점을 둘 것입니다. 1. 데이터 보안: (1) 사용자 권리

Go에서 PostgreSQL 사용: 전체 가이드 Go에서 PostgreSQL 사용: 전체 가이드 Jun 18, 2023 am 09:28 AM

Go 언어는 웹 서비스 및 백엔드 애플리케이션 구축에 적합한 빠르고 효율적인 프로그래밍 언어입니다. PostgreSQL은 더 높은 신뢰성, 확장성 및 데이터 보안을 제공하는 오픈 소스 관계형 데이터베이스 관리 시스템입니다. 이 글에서는 Go에서 PostgreSQL을 사용하는 방법에 대해 자세히 알아보고 몇 가지 실용적인 코드 예제와 팁을 제공하겠습니다. PostgreSQL 설치 및 설정 먼저 PostgreSQL을 설치하고 설정해야 합니다. 공식 홈페이지에서 확인 가능

PHP 프로그래밍에서 PostgreSQL 데이터베이스를 사용하는 방법은 무엇입니까? PHP 프로그래밍에서 PostgreSQL 데이터베이스를 사용하는 방법은 무엇입니까? Jun 12, 2023 am 09:27 AM

데이터베이스 기술의 발전으로 데이터베이스 관리 시스템도 다양한 선택을 제시합니다. 개발자는 자신의 필요와 선호도에 따라 가장 적합한 데이터베이스를 선택할 수 있습니다. 고급 오픈 소스 관계형 데이터베이스 시스템인 PostgreSQL은 개발자들의 관심과 사용이 점점 더 늘어나고 있습니다. 그렇다면 PHP 프로그래밍에서 PostgreSQL 데이터베이스를 어떻게 사용합니까? 1. PostgreSQL 데이터베이스를 설치하고 구성하려면 PostgreSQL을 설치하고 구성해야 합니다. 첫 번째

PHP는 오픈 소스 PostgreSQL 관계형 데이터베이스를 구현합니다. PHP는 오픈 소스 PostgreSQL 관계형 데이터베이스를 구현합니다. Jun 18, 2023 am 08:40 AM

인터넷의 발달로 인해 데이터의 양은 계속해서 증가하고 있으며, 데이터 관리의 필요성이 점점 더 시급해지고 있습니다. 관계형 데이터베이스는 데이터 관리의 중요한 방법이며, 그 중 PostgreSQL은 유연성, 확장성 및 보안으로 인해 인기가 높습니다. 이 기사에서는 PHP 언어를 사용하여 오픈 소스 PostgreSQL 관계형 데이터베이스를 구현하는 방법을 소개합니다. 해당 요구 사항이 있는 개발자에게 도움이 되기를 바랍니다. 개요 PostgreSQL은 SQL 표준을 따르며 다양한 기능을 갖춘 강력한 관계형 데이터베이스 시스템입니다.

데이터베이스 용량 계획 및 확장: MySQL과 PostgreSQL 비교 데이터베이스 용량 계획 및 확장: MySQL과 PostgreSQL 비교 Jul 12, 2023 pm 01:43 PM

데이터베이스 용량 계획 및 확장: MySQL vs. PostgreSQL 서론: 인터넷의 급속한 발전과 빅데이터 시대의 도래로 인해 데이터베이스 용량 계획 및 확장이 점점 더 중요해지고 있습니다. MySQL과 PostgreSQL은 널리 사용되는 두 가지 관계형 데이터베이스 관리 시스템(RDBMS)으로, 데이터베이스 용량 계획 및 확장에 있어서 서로 다른 특징과 적용 가능한 시나리오를 가지고 있습니다. 이 기사에서는 두 데이터베이스를 비교하고 차이점을 보여주는 몇 가지 코드 예제를 제공합니다. 1. MySQ

See all articles