• ベストアンサー

postgresql-7.3.11のconfigre時のエラー

postgresql-7.3.11を以下の手順で作業実施後ですがエラーが帰ってきますので教えて欲しいのですが。 #tar xfz postgresql-7.3.11.tar.gz #./configure --enable-multibyte=EUC_JP --enabl エラーは以下の通りです。 configure: WARNING: *** Without Bison you will not be able to build PostgreSQL from CVS or *** change any of the parser definition files. You can obtain Bison from *** a GNU mirror site. (If you are using the official distribution of *** PostgreSQL then you do not need to worry about this because the Bison *** output is pre-generated.) To use a different yacc program (possible, *** but not recommended), set the environment variable YACC before running configure: error: readline library not found If you have readline already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory. Use --without-readline to disable readline support. VineLinux3.1です。 宜しくお願いします

質問者が選んだベストアンサー

  • ベストアンサー
  • entree
  • ベストアンサー率55% (405/735)
回答No.2

> configure: error: readline library not found NINJA104 さんが 指摘されているように readline がインストールされていないためです。readline は bash などにも付属している履歴参照機能を提供するライブラリです。「↑」「↓」キーによって履歴が参照できるのは readline によるものです。configure 時に --without-readline を指定することでコンパイルすることは可能になりますが、もし、psql を利用して操作をされるようでしたら、是非 readline をインストールされることをお勧めします。 ちなみに、上の WARNING は bison がインストールされていないために表示されているものと思われますが (今回のエラーとは直接関係はありません)、もし今後もいろんなソースコードをコンパイルようでしたら、必要になることもあるパッケージですので、インストールしておかれると良いかと思います。

その他の回答 (1)

  • NINJA104
  • ベストアンサー率43% (133/306)
回答No.1

> configure: error: readline library not found 「readlineライヴラリが見付かりません。」 エラーメッセージの通りです。 readlineライヴラリを利用しない場合は、configure実行時のオプションに --without-readline を指定します。

参考URL:
http://www.sraoss.co.jp/PostgreSQL/7.3/install.html

関連するQ&A

  • linuxにPostgreSQL8.3インストールについて

    CentOS5にpostgreSQL8.3をtarからインストールしようとしているのですが、"./configure --enable-multibyte=EUC_JP"とすると "configure: error: readline library not found"となるので、 readlineを # ./configure # make # make install # ldconfig としたのですが、再び同じエラーとなります。 ld.so.confにも"/usr/local/lib"と加えてあらためてldconfigとしてもダメでした… readlineインストール時に "install: you may need to run ldconfig"と出るのでreadlineはちゃんとインストールできていると思っているのですが、無理やり"./configure --enable-multibyte=EUC_JP --without-readline"として通してもやっぱり納得がいきません・・・ いったいまず何を見たらいいのでしょうか?

  • PostgreSQLのインストール

    ./configureすると configure: error: readline library not found If you have readline already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory. Use --without-readline to disable readline support. というエラーが出ます。 この先make できません。 どう対処したらいいかわからず困っています。

  • postgreSQLのinitdb

    postgreSQL7.2.3のインストールを行いました。 % tar vxfz postgresql-7.2.3.tar.gz % cd postgresql-7.2.3 % ./configure --enable-locale --enable-multibyte=EUC_JP |& tee Configure.out % make | & tee Make.out % su # tcsh % make install | &tee Make_install.out % chown -R postgres:postgres /usr/local/pgsql ここまでは何も問題なく終わったのですが、 次に initdb を実行したところ以下エラーが出ます。 % su postgres % /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data ld.so.1: /usr/local/pgsql/bin/pg_encoding: 重大なエラー: libgcc_s.so.1: open に 失敗しました: ファイルもディレクトリもありません。 initdb: pg_encoding failed Perhaps you did not configure PostgreSQL for multibyte support or the program was not successfully installed. ↑ここまで 「マルチバイトサポートしていません」 「インストールに失敗しています」というような内容なのですが、 何がダメだったのでしょうか? ちなみにOSは Solaris9/02です。

  • configureエラー

    http://samuraism.jp/diary/2007/04/14/1176560157667.html 上記のサイトのとおりにOCRopusのインストールを行ったのですが、ocropusの「./configure」をおこなうと、 checking for err_exit in -ltesseract_full... no configure: error: Could not find tesseract! Choose --without-tesseract if you do not want to use it. のように出てうまくいきません。このようなエラーはどのようにすれば解決するのでしょうか? tesseractというやつもきちんとコンパイルしたはずなんですが・・・ 使用したOSはubuntu10.04です。 回答よろしくお願いします。

  • Postgres9インストールFlexが古い?

    お世話になります。 Centos5.8 64bitにPostgres9.0.8をソースからインストールしようとしていますが、./configure 実行時、以下のようなFlexの警告が表示されます。 どこに問題があるのかご存知の方教えていただけませんでしょうか? $ cd /usr/local/src/postgresql-9.0.8 $ ./configure checking for flex... configure: WARNING: *** The installed version of Flex, /usr/bin/flex, is too old to use with PostgreSQL. *** Flex version 2.5.31 or later is required, but this is /usr/bin/flex version 2.5.4. configure: WARNING: *** The installed version of Flex, /usr/bin/lex, is too old to use with PostgreSQL. *** Flex version 2.5.31 or later is required, but this is /usr/bin/lex version 2.5.4. no configure: WARNING: *** Without Flex you will not be able to build PostgreSQL from Git nor *** change any of the scanner definition files. You can obtain Flex from *** a GNU mirror site. (If you are using the official distribution of *** PostgreSQL then you do not need to worry about this because the Flex *** 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... none required checking for library containing crypt... -lcrypt checking for library containing fdatasync... none required checking for library containing gethostbyname_r... none required checking for library containing shmget... none required checking for -lreadline... no checking for -ledit... no configure: error: readline library not found If you have readline already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory. Use --without-readline to disable readline support. インストールされているバージョンは古くないと思っているのですが、どうずればインストールを進めることができるでしょうか? $ rpm -qa | grep flex flex-2.5.4a-41.fc6 $ which flex /usr/bin/flex どうぞ宜しくお願い致します。

  • make でエラー

    勉強中の身です。 環境 fedora 2 postgresqlをインストールして (postgresql-8.2.1) make コンパイルがうまくいきません [postgres@localhost postgresql-8.2.1]$ ./configure checking build system type... i686-pc-linux-gnuoldld checking host system type... i686-pc-linux-gnuoldld checking which template to use... linux checking whether to build with 64-bit integer date/time support... no checking whether NLS is wanted... no checking for default port number... 5432 checking for gcc... no checking for cc... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. [postgres@localhost postgresql-8.2.1]$ make You need to run the 'configure' program first. See the file 'INSTALL' for installation instructions. make: *** [all] エラー 1 $ make とすると上記のようにエラーがでます。 ./configure -オプション が必要なのでしょうか? よろしくおねがいします。

  • postgresqlのインストール

    php、POSTGRESQLを使ってプログラムを作成して遊んでいるものです。今まである会社から環境をお借りしていたのですが今回自宅で環境を作ってみようと思っています。Apache+phpは動作しています。ここに POSTGRESQLを導入しようと思っています。 OSがWINDOWSのためcygwinやipcデーモンをどうにかこうにか乗り越えてやっとPOSTGRESQLのインストールまでやってきましたがついに止まってしまいました。下記のエラーが出ているのですがどうすれば次に進めるのやら???分かる方よろしくお願い致します。 CYGWINに $ ./configure --enable-multibyte=EUC_JP --enable-syslog を入力したところ checking build system type...i686-pc-cygwin checking host system type...i686-pc-cygwin checking whichi template to use...win checking whether to build with 64-bit integer date/time support...no checking whether to build with recode support...no checking whether NSL is wanted...no checking for default port number...5432 checking for default soft limit on number of connections...32 checking for gcc...no checking for cc...no configure: error: no acceptable C compiler found in $PATH このようなエラーが出力されます。 なにうえ初心者な者でよろしくお願い致します。

  • wgetインストールconfigure:error

    ○質問の主旨 Linux(CentOS6.5)のサーバーにおいて、 ファイルをダウンロードするするための、 wgetのバージョンを、 下記のコマンドで1.12から 1.16にアップデートさせたいと考えています。 $sudo wget http://ftp.gnu.org/gnu/wget/wget-1.16.tar.gz $sudo tar zxfv wget-1.16.tar.gz $cd wget-1.16 $sudo chmod +x ./configure $sudo ./configure $sudo make $sudo make install ところが、 $sudo ./configureのところで、 configure: error: --with-ssl=gnutls was given, but GNUTLS is not available. というエラーが出ます。 このエラーを出さずに、後に続く make,make installコマンドを実行するためには どうすれば良いでしょうか? ○質問の補足 $sudo ./configure以外にも、次の2つのコマンドを実行しましたが、 やはりエラーが出ます。 1. $ sudo ./configure --with-ssl=openssl configure: error: --with-ssl=gnutls was given, but GNUTLS is not available. 2. $ sudo ./configure --with-ssl=openssl --with-libssl-prefix=/usr/local/ssl configure: error: --with-ssl=openssl was given, but SSL is not available. ちなみに、 opensslとgnultsのインストール状況は以下の通りです。 $ rpm -qa | grep openssl openssl-1.0.1e-16.el6_5.15.x86_64 $ rpm -qa | grep gnutls gnutls-2.8.5-14.el6_5.x86_64 以上、よろしくお願いします。

  • postgres9のconfigureでエラー

    Solaris10にpostgres9.0.5をインストールしようとしています。 Solarisには現時点での最新パッチが当たっている状態です(詳細はちょっと不明) 以下のオプションでconfigureを行うと、エラーになります。 ./configure --prefix=/usr/local/postgres --without-readline --enable-thread-safety 以下エラー --------------------------------------------------------------- checking thread safety of required library functions... no configure: error: thread test program failed This platform is not thread-safe. Check the file 'config.log' or compile and run src/test/thread/thread_test for the exact reason. Use --disable-thread-safety to disable thread safety. --------------------------------------------------------------- config.logの中のエラーの内容 --------------------------------------------------------------- configure:28765: checking thread safety of required library functions configure:28798: gcc -m64 -o conftest -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wend if-labels -fno-strict-aliasing -fwrapv -pthreads -pthreads -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -D IN_CONFIGURE conftest.c -lz -lnsl -lsocket -lm -lpthread -lpthread >&5 Undefined first referenced symbol in file sched_yield /var/tmp//ccVp73Io.o collect2: ld returned 1 exit status ld: fatal: symbol referencing errors. No output written to conftest configure:28802: $? = 1 configure: program exited with status 1 --------------------------------------------------------------- thread-safetyを無効にすれば正常にインストールできます。 このエラーを回避するにはどうすればよいでしょうか? あまり参考にはならない情報かもしれませんが、9.0.4/9.1.1でも同様のエラーが出ます。

  • Wine起動時のエラーについて

    教えてください!! Vine Linux 4.1上で、WindowsのIEを起動させるために、以下の手順でWine-0.9.42をインストールしました。 手順:ソースからwine-0.9.42.tar.bz2 をダウンロードして、 # tar xjvf wine-0.9.42.tar.bz2 # cd wine-0.9.42 # ./configure --prefix=/usr/local/wine-0.9.42 # make depend && make # make install # ln -s /usr/local/wine-0.9.42/bin/* /usr/local/bin しかし、#winecfgで起動したところ、以下のエラーが出て、うまく起動することができませんでした。 エラー: glibc >= 2.3 without NPTL or TLS is not a supported combination. It will most likely crash. Please upgrade to a glibc with NPTL support. これは、NPTLに対応したglibcをアップグレードしなさいということなのでしょうか?多くのサイトで探してみましたが、その方法がよくわかりませんでした。 このエラーを回避して、Wineを起動させる方法を、どなたか教えていただけないでしょうか。 ちなみに、現在のLinuxのカーネルのバージョンは2.6.16-0vl66で、glibcは2.3.4-2vl3.1です。 宜しくお願い致します。