回答編集履歴

4

変更

2017/03/14 08:33

投稿

A.Ichi
A.Ichi

スコア4070

test CHANGED
@@ -42,7 +42,7 @@
42
42
 
43
43
 
44
44
 
45
- make install
45
+ sudo make install
46
46
 
47
47
 
48
48
 

3

修正

2017/03/14 08:33

投稿

A.Ichi
A.Ichi

スコア4070

test CHANGED
@@ -32,9 +32,17 @@
32
32
 
33
33
  cd postgresql-9.2.19
34
34
 
35
+
36
+
35
37
  ./configure --prefix=/usr/local/pgsql
36
38
 
39
+
40
+
37
41
  make
42
+
43
+
44
+
45
+ make install
38
46
 
39
47
 
40
48
 

2

追加

2017/03/14 08:32

投稿

A.Ichi
A.Ichi

スコア4070

test CHANGED
@@ -17,3 +17,27 @@
17
17
  pg_ctl -D /usr/local/pgsql/data2 -l /tmp/pg_logfile start
18
18
 
19
19
  psql -f mydb_dump.sql
20
+
21
+
22
+
23
+
24
+
25
+ 同じ環境でコンパイルしてみました Cent6.5
26
+
27
+ wget https://ftp.postgresql.org/pub/source/v9.2.19/postgresql-9.2.19.tar.gz
28
+
29
+ rm -rf postgresql-9.2.19
30
+
31
+ tar xvfz postgresql-9.2.19.tar.gz
32
+
33
+ cd postgresql-9.2.19
34
+
35
+ ./configure --prefix=/usr/local/pgsql
36
+
37
+ make
38
+
39
+
40
+
41
+ しかしながら make: *** No rule to make targetのエラーがでませんでした。
42
+
43
+ ちなみにgccは、version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC)を使いました。

1

変更

2017/03/14 08:08

投稿

A.Ichi
A.Ichi

スコア4070

test CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  pg_ctl -D /usr/local/pgsql/data stop
14
14
 
15
- initdb --encoding=UTF8 --no-locale --pgdata=/usr/local/pgsql/data2 --auth=ident
15
+ initdb --encoding=UTF8 --no-locale --pgdata=/usr/local/pgsql/data2
16
16
 
17
17
  pg_ctl -D /usr/local/pgsql/data2 -l /tmp/pg_logfile start
18
18