• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            colorful

            zc qq:1337220912

             

            安裝postgresql 出現(xiàn)readline錯(cuò)誤

            http://blog.csdn.net/shutfuckingup/article/details/8532752

            1 環(huán)境信息
            OS: CentOS release 5.2(Final)
            PG: postgresql-9.0.0]

            2 根據(jù)提示,我測(cè)試了下 configre命令,果然報(bào)這個(gè)錯(cuò)
            [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.

                根據(jù)提示,應(yīng)該是沒(méi)有安裝 readline包。

            3 檢查系統(tǒng)是否安裝 readline 包
            [root@HK81-107postgresql-9.0.0]# rpm -qa | grep readline
            readline-5.1-3.el5

               說(shuō)明系統(tǒng)已經(jīng)安裝了 readline包。

            4 通過(guò) yum 搜索相關(guān)的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.

             根據(jù)提示,有一個(gè)包引起了我的注意 "readline-devel",猜想可能與這個(gè)包有關(guān)。
             
            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 再次執(zhí)行 configure 成功。

            7 關(guān)于 readline 的解釋,來(lái)自官網(wǎng)
            --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.

               說(shuō)明: 根據(jù)步驟2 執(zhí)行 configure時(shí)報(bào)錯(cuò)提示,可以加上 "--without-readline" 從而避開(kāi)這個(gè)ERROR,
            但Postgresql官方不推薦這么做,所以還是安裝吧。

            posted on 2013-07-11 20:58 多彩人生 閱讀(3700) 評(píng)論(0)  編輯 收藏 引用 所屬分類: postgresql

            導(dǎo)航

            統(tǒng)計(jì)

            常用鏈接

            留言簿(3)

            隨筆分類

            隨筆檔案

            搜索

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜

            国内精品人妻无码久久久影院| 狠狠狠色丁香婷婷综合久久俺| 91精品婷婷国产综合久久 | 欧美精品一区二区精品久久 | 99久久国产热无码精品免费久久久久 | 精品一区二区久久久久久久网站| 久久久久免费精品国产| 久久se精品一区精品二区国产| 女同久久| 久久久久亚洲AV无码麻豆| 久久99国产精一区二区三区| 亚洲欧美国产精品专区久久| 97精品久久天干天天天按摩| 国产午夜精品理论片久久| 99久久夜色精品国产网站| 国产精品视频久久久| 无码8090精品久久一区| 久久香蕉一级毛片| 国内精品久久久久影院薰衣草| 国产精品成人99久久久久| 久久婷婷五月综合97色| 久久久亚洲裙底偷窥综合| 久久99久久成人免费播放| 久久精品麻豆日日躁夜夜躁| 中文字幕亚洲综合久久菠萝蜜| 日韩亚洲欧美久久久www综合网 | 熟妇人妻久久中文字幕| 久久精品18| 91精品国产91久久久久久蜜臀| 久久Av无码精品人妻系列| 久久亚洲精品成人无码网站| 一本大道久久a久久精品综合| 久久久噜噜噜久久熟女AA片| 久久久久人妻一区精品| 国内精品久久久久久久涩爱| 丁香狠狠色婷婷久久综合| 久久亚洲私人国产精品| 亚洲国产精品高清久久久| 亚洲乱码精品久久久久..| 18岁日韩内射颜射午夜久久成人| 亚洲?V乱码久久精品蜜桃 |