• ベストアンサー

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"として通してもやっぱり納得がいきません・・・ いったいまず何を見たらいいのでしょうか?

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

  • ベストアンサー
  • xjd
  • ベストアンサー率63% (1021/1612)
回答No.5

こんばんは。 >configure: error: readline library not found パッケージ版のreadlineを利用して、Postgresqlをコンパイルするのなら、 開発用ヘッダファイルなどを含む、readline-develパッケージもインストールしてください。 (#4で回答しているのですが。。。) yumコマンドを使えば、ネットからダウンロードしてくれます。 # yum install readline-devel ちなみに、PostgreSQL8.3の正式リリースはまだ先ですので、何か不具合があっても 自己解決してください。

その他の回答 (4)

  • xjd
  • ベストアンサー率63% (1021/1612)
回答No.4

こんばんは。 >"configure: error: readline library not found"となるので、 こちらは、CentOS5 と、Postgresql8.2.4 ですが、 ソースからコンパイルしてインストールしています。 Readlineの問題は、CentOSのパッケージをインストールしています。 # rpm -qa | grep readline readline-5.1-1.1 readline-devel-5.1-1.1 参考にしてください。

sa7s0ylx
質問者

補足

いろいろ試してみたのですが、一度OSを再インストールを行いました。 何もしていない状態で"ldconfig -p | grep readline"とすると libreadline.so.5 (libc6) => /usr/lib/libreadline.so.5 となります。 PATHが通っているように思えます。 がしかし、"./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. となります。 完全にハマってしまっています。どうか助けてください。

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

ldconfig はあくまで実行時のパスを追加するものであって、コンパイル時のパスを追加するものではありません。コンパイル時にパスを追加する必要がある場合は、 export LDFLAGS="-L/usr/local/lib" としてから configure スクリプトを実行する必要があります。 余談ながら --enable-multibyte は枯れたオプションであり、./configure --help としても出てこないので指定しても意味がないと思いますが・・・。(最近のバージョンでは無条件で enable-multibyte が有効になっていたと思います)

noname#246547
noname#246547
回答No.2

>いったいまず何を見たらいいのでしょうか? ldconfig -p | grep readline でキャッシュに登録されているか確認してください。 出てこなければldconfigで読み込まれていません 次にreadlineは ./configure --enable-multibyte でやってみてください

noname#39970
noname#39970
回答No.1

readlineの場所を指定するconfigureオプションは無い?

関連するQ&A

  • 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です。

  • 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です。 宜しくお願いします

  • 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のインストール

    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 このようなエラーが出力されます。 なにうえ初心者な者でよろしくお願い致します。

  • PostgreSQLのインストール

    OSはwindows2000です。  windowsからPostgreSQLをインストールしたく本を見ながら 作業をしてみました。  まず、CygwinをインストールしてUnixライクな環境にして、 make-3.79,gcc-2.95.2,cygipc-1.11-1-src, PostgreSQL-7.1.3をダウンロードして、 cygwin/usr/src/で解凍させて Cygwinを起動させて、 cd /usr/src/postgres-7.1.3 と入力して次に ./configure --enable-multibyte=EUC_JP と入力したら loading cache ./config.cache checking host system type... i686-pc-cygwin checking which template to use... win checking whether to build with locale support... no checking whether to build with recode support... no checking whether to build with multibyte character support... yes, default EUC_J P checking whether to build with Unicode conversion support... no checking for default port number... 5432 checking for default soft limit on number of connections... 32 checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes using CFLAGS=-O2 checking whether the C compiler (gcc -O2 ) works... no configure: error: installation or configuration problem: C compiler cannot creat e executables. と出てしまうのですが原因がわかりません。 何がいけないんでしょうか?  

  • あるソフトをインストールするときのエラー

    OSはubuntu8.04です。 c++とpythonを用いて作られた、 あるソフトをインストールしたいのですが、 make時にエラーが出て困っています。 configureは特にエラーがないのですが、 makeで以下のようなエラーがでます。 /usr/bin/ld: cannot find -lboost_python collect2: ld はステータス 1 で終了しました error: command 'g++' failed with exit status 1 これを見てやってみたことは以下の2点です。 1.g++ 4.xはバグがある。例えば  http://d.hatena.ne.jp/higepon/20081114/1226645373  このソフトの推奨バージョンは3.xだったので、  3.xでやってみた。→変わらず 2.boost_pythonは/usr/lib/にあるっぽい。  そこで、  https://forums.ubuntulinux.jp/viewtopic.php?id=3199  にならって、  /etc/ld.so.conf.d/ 以下に パスを書いた hoge.conf を作り sudo ldconfig する  としてみた。→変わらず ということで、どうしたらいいか見当もつきません。 どなたかアドバイスをお願い致します。

  • phpのインストールが上手く行きません

    お世話になります。 phpのインストールが上手く行きません。 make install で下記メッセージが出力し停止します。 [activating module `php4' in /usr/local/apache/conf/httpd.conf] cp libs/libphp4.so /usr/local/apache/libexec/libphp4.so cp: cannot stat `libs/libphp4.so': そのようなファイルやディレクトリはありません apxs:Break: Command failed with rc=1 make[1]: *** [install-sapi] エラー 1 make[1]: 出ます ディレクトリ `/usr/local/src/php-4.2.2' make: *** [install-recursive] エラー 1 phpインストールにあたり下記を実施いたしました。 OSはRedHat7.2です。 > apache1.3.24インストール # ./configure --enable-shared=max --enable-module=so # make # make install # /usr/local/apache/bin/httpd -l Compiled-in modules:  http_core.c  mod_so.c suexec: enabled; valid wrapper /usr/sbin/suexec > php4.2.2インストール $ tar xvzf php-4.2.2.tar.gz $ cd php-4.2.2/ext $ cp /****/php4_mbregex-1.3.1.tar.gz . $ tar xvzf php4_mbregex-1.3.1.tar.gz $ cd .. $ rm configure $ ./buildconf $ ./configure --with-pgsql \ --enable-track-vars \ --with-apxs=/usr/local/apache/bin/apxs \ --enable-versioning \ --enable-trans-sid \ --enable-mbstring \ --enable-mbstr-enc-trans \ --enable-mbregex $ make $ su # make install 最後のmake installが上記エラーをはいて停止してしまいます。 apacheを入れ直したりphpのバージョンを変えて試しましたが駄目でした。 apxsも/usr/local/apache/bin/の中にあります。 なにが悪いのか私ではさっぱり解りませんので どなたかご教授して頂ければと思います。。。 宜しくお願い致します。m(__)m

    • ベストアンサー
    • PHP
  • ./configureがうまくできない

    昨日、Fedora Core 1をワークステーションタイプでインストールしました。 そのPCにシーラカンス本を見ながらPstgresql7.1.1をインストールしようとし、 ./configure --enable-multibyte=EUC_JP --enable-syslog をしたところ。やたら...noという表示が流れ最後に checking types of arguments for accept()... configure: error: could not determine argument types と出てきました。 makeをしてみると、 You need to run the 'configure' program first. See the file と表示されます。 どうすればこの状況を回避できるのでしょうか? よろしくおねがします。

  • Apacheの質問:./apachectl configtestに影響をあたえるファイル

    ./apachectl configtestに影響を あたえるファイルはどのファイルでしょうか? /etc/httpd/conf/httpd.conf の記述が間違っていたら、影響を あたえるのでしょうか? 現在、以下のようなエラーが出ています。 ./apachectl configtest ./apachectl: line 65: 30786 セグメンテーション違反です $HTTPD -t インストールは、以下をおこなっただけです。 /etc/httpd/conf/httpd.confを設定しないと エラーがでるのでしょうか? # tar zxvf httpd-2.0.46.tar.gz # cd httpd-2.0.46 # ./configure --enable-shared=yes # make # make install

  • CentOS Apatche2.2.9インストール 質問

    Linux入門者です。 CentOS5.2にApatch2.2.9をインストールをしようとしたところ エラーになり先に進めません。 (httpd-2.2.9.tar.gzをダウンロードしました。) どなたかインストールの解決方法をご教授いただけないでしょうか。 よろしくお願いいたしますm(_ _)m # cd /usr/local/src/httpd-2.0.59 # ./configure --enable-rewrite --enable-so --enable-ssl # make;make install make: *** ターゲットが指定されておらず、makefile も見つかりません. 中止. make: *** ターゲット 'install’が指定されておらず、makefileも見つかりません. 中止.