年末年始はRails3に挑戦するぞ(その3。MacにPostgreSQL9.0インストール編)

PostgreSQLインストール Macに一番楽して入れられそうな方法が、EnterpriseDBって会社が出してる All in One ホゲホゲ的なヤツっぽかったのでさっそくダウンロードしてみます。 Installer version は Version 9.0.2-1 にしてみます。 http://www.enterprisedb.com/products/pgdownload.do # この .do ってのもエンタープライズを感じさせるURLですなぁw   インストールはウィザードに従ってやる感じです。   文字コードとか。   プロセスは上がってるし、

$ ps -ef | grep postgres
  502   454   452   0   0:00.18 ??         0:00.24 postgres: logger process
  502   456   452   0   0:00.64 ??         0:01.17 postgres: writer process
  502   457   452   0   0:00.60 ??         0:00.81 postgres: wal writer process
  502   458   452   0   0:00.17 ??         0:00.23 postgres: autovacuum launcher process
  502   459   452   0   0:00.20 ??         0:00.22 postgres: stats collector process
  501  1124  1120   0   0:00.00 ttys000    0:00.00 grep postgres

ポートもリスンしてるみたいです。

$ netstat -an | grep 5432
tcp4       0      0  *.5432                 *.*                    LISTEN
tcp6       0      0  *.5432                 *.*                    LISTEN
 9109480 stream      0      0          c89fea4                0                0                0 /tmp/.s.PGSQL.5432

  DBのインストールが終わったら、付属品入れられたりするみたい。   phpPgAdminとか入れとこうかな的な。   で、プロジェクト作ろうとしたらまたNetbeansに怒られました、、と。   で、またpgっていうgemを入れたりしつつ、、

bash-3.2$ export PATH=/Library/PostgreSQL/9.0/bin:$PATH
bash-3.2$ export ARCHFLAGS='-arch x86_64'
bash-3.2$ sudo gem install pg
Building native extensions.  This could take a while...
Successfully installed pg-0.10.0
1 gem installed
Installing ri documentation for pg-0.10.0...
Installing RDoc documentation for pg-0.10.0...

  やっぱ何かめんどくせーなって事で、rubyのバージョン1.9にして、 sqlite3でサクサクやるのがいいんじゃないかと。。