お世話になります。
Cygwin(ver:1.7.10-1)でPostgreSQL(ver:8.3.13)をインストールしたいのですが、make all時に以下のエラーが発生します。
Cygwinパッケージの不足等があるのでしょうか?何かアドバイスをいただけるとありがたいです。
======================================================
rm -f thread.c && ln -s ../../../../src/port/thread.c .
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../include -I../../../../src/interfaces/ecpg/include -I../../../../src/interfaces/libpq -I../../../../src/port -I../../../../src/include -DBUILDING_DLL -c -o thread.o thread.c
dlltool --export-all --output-def ecpg.def execute.o typename.o descriptor.o data.o error.o prepare.o memory.o connect.o misc.o path.o pgstrcasecmp.o thread.o
dllwrap -Wl,--enable-auto-import -o cygecpg.dll --dllname cygecpg.dll --def ecpg.def execute.o typename.o descriptor.o data.o error.o prepare.o memory.o connect.o misc.o path.o pgstrcasecmp.o thread.o -L../pgtypeslib -L../../../../src/interfaces/libpq -L../../../../src/port -L/usr/local/lib -lpgtypes -lpq -lm
execute.o:execute.c:(.text+0x20e1): undefined reference to `_libintl_setlocale'
execute.o:execute.c:(.text+0x2107): undefined reference to `_libintl_setlocale'
execute.o:execute.c:(.text+0x251b): undefined reference to `_libintl_setlocale'
execute.o:execute.c:(.text+0x255b): undefined reference to `_libintl_setlocale'
execute.o:execute.c:(.text+0x262f): undefined reference to `_libintl_setlocale'
execute.o:execute.c:(.text+0x26fb): more undefined references to `_libintl_setlocale' follow
collect2: ld はステータス 1 で終了しました
dllwrap: gcc exited with status 1
../../../../src/Makefile.shlib:314: recipe for target `libecpg.a' failed
make[4]: *** [libecpg.a] Error 1
make[4]: ディレクトリ `/home/nabe/postgresql-8.3.13/src/interfaces/ecpg/ecpglib' から出ます
Makefile:6: recipe for target `all' failed
make[3]: *** [all] Error 2
make[3]: ディレクトリ `/home/nabe/postgresql-8.3.13/src/interfaces/ecpg' から出ます
Makefile:20: recipe for target `all' failed
make[2]: *** [all] Error 2
make[2]: ディレクトリ `/home/nabe/postgresql-8.3.13/src/interfaces' から出ます
Makefile:17: recipe for target `all' failed
make[1]: *** [all] Error 2
make[1]: ディレクトリ `/home/nabe/postgresql-8.3.13/src' から出ます
GNUmakefile:12: recipe for target `all' failed
make: *** [all] Error 2
A 回答 (1件)
- 最新から表示
- 回答順に表示
No.1
- 回答日時:
configure時に--enable-nlsとか付けていません?
付けているのであれば、事前にgettextとlibiconvのインストールが必要です。
entreeさん、ご回答ありがとうございます。
確認したところ、libiconvはver1.14-2、gettextはver0.18.1.1-2をインストールしていました。
当方で行っている作業手順は
1.cygwinのインストール
2.cygwinコンソールでPostgreSQLのダウンロード(ver8.3.13)
3.ダウンロードファイルの展開(tar jxvf postgre・・・・)
4.展開したディレクトリへ移動(cd postgre・・・)
5.PostgreSQLの設定(./configure --enable-nls=ja)
6.PostgreSQLのコンパイル(make all)
です。
昨日も色々と調べて、libintlのバージョンが0.18の場合、Windowsでは不具合が起きるかも・・・
という情報を見つけて、c:\cygwin\home\owner\postedsql-8.3.13\src\includeにある
port.hというファイルを以下の通り変更して、上記の操作を行いましたが、
現象は変わりませんでした。
============== 変更部分 ここから ================
#undef printf
#endif
@@@@@@@@@ここから追加@@@@@@@@
/*
* Versions of libintl >= 0.18? try to replace setlocale() with a macro
* to their own versions. Disable the macro, if it exists.
*/
#if defined(setlocale) && defined(WIN32)
#undef setlocale
#endif
@@@@@@@@@ここまで追加@@@@@@@@
extern intpg_vsnprintf(char *str, size_t count, const char *fmt, va_list args);
extern int
============== 変更部分 ここまで ================
ちなみに参考にしたサイトは
http://archives.postgresql.org/message-id/4D416D …
http://archives.postgresql.org/pgsql-hackers/201 …
です。
申し訳ありませんが、上記の手順等でお気づきの点や、
ほかに対応すべき点がありましたら、ご教授いただけるとありがたいです。
よろしくお願いします。
お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!
似たような質問が見つかりました
- MySQL 参考書に従って入力したつもりでしたが、最後はエラーがでました。 1 2022/09/28 03:45
- JavaScript jQueryでのドラッグアンドドロップについて 1 2022/07/07 21:04
- JavaScript GoogleChart 階層ごとのブロックの長さを個別に設定したい 1 2022/07/06 14:27
- Ruby Ruby / passenger のインストールについて 1 2023/01/30 18:31
- Windows 10 VirtualBox 7のゲストOSでの物理HDDパーティションのマウント方法 2 2023/05/04 13:01
- 英語 英語の質問です。 When I taught in high school, I wanted to 4 2023/08/19 16:10
- その他(プログラミング・Web制作) python fbprophetについて 1 2022/09/29 19:44
- その他(SNS・コミュニケーションサービス) 自分のpcがハッキングされたようなメールが来たのですがどうすればいいですか? 4 2022/10/02 16:14
- JavaScript 1日1回引けるJavaScriptおみくじについて 1 2022/12/12 22:28
- 英語 英文構造を教えてください But the reasons for the trend vary en 3 2023/01/26 19:38
関連するカテゴリからQ&Aを探す
おすすめ情報
デイリーランキングこのカテゴリの人気デイリーQ&Aランキング
-
PostgreSQLの標準文字コードをS...
-
PostgreSQLをC言語でアクセスし...
-
postgresqlの接続ポート5432か...
-
windows版postgresql 異なるバ...
-
CASEの中にCASE
-
IPアドレスでアクセス制限
-
postgresqlでのトランザクショ...
-
phpmyadminで左ペインのメニュ...
-
pgpassが有効にならない?
-
PostgreSQLで集約関数をネスト...
-
Access フォーム「使用可能」...
-
sqlにて0無しの月をフォーマッ...
-
phpPgAdminでログインできません
-
SQLServer サイレントインストール
-
RPMの削除
-
リスナーが起動しません
-
Oracle9i Clientのアンインスト...
-
MySQLとPostgresの同時使用
-
phpmyadminで作成したデータベ...
-
Oracleインストールについて HP-UX
マンスリーランキングこのカテゴリの人気マンスリーQ&Aランキング
-
POSTGRESのデータの格納場所は...
-
PostgreSQL14.6のSSL対応について
-
PostgreSQLの標準文字コードをS...
-
PostgreSQLで"pg_dumpall -f da...
-
Cプログラミング内でのPostgre...
-
日本語入力について
-
PostgreSQLをC言語でアクセスし...
-
initdb: command not find...
-
PostgreSQL インストール 起動...
-
PostgreSQLのinitdbでエラーが...
-
Cコンパイル時にポスグレのライ...
-
PostgreSqlインストールで
-
PostgreSQLを初期化できない
-
接続出来ない その2
-
postgreSQLが初期化できないの...
-
CygwinでPostgreSQL makeエラー
-
postgresqlの接続ポート5432か...
-
windows版postgresql 異なるバ...
-
MySQLとPostgresの同時使用
-
Windows10でQuickTimeがインス...
おすすめ情報