yep susah+amit2, nginstall ruby postgres he he, apalagi daku terus2-an gagal
install postgre via macport, dan akhirnya berhasil via fink

namun frustasi ndak berhenti sampe di situ, nginstall gemnya juga error

sudo gem install postgres , karena entah kenapa, ketika compile, sepertinya
gem itu nyari2 folder/file postgresql berada

padahal udah sy coba masuk ke folder gem postgrenya yg mana di kompie sy
berada di /opt/local/lib/ruby/gems/1.8/gems/postgres-0.7.1
setelah itu coba  execute ruby extconf.rb--with-pgsql-lib-dir=/usr/local/pgsql

dan

ruby extconf.rb --with-pgsql-lib-dir=/usr/local/pgsql
checking for cygwin32_socket() in -lwsock32... no
checking for socket() in -lsocket... no
checking for gethostbyname() in -linet... no
checking for gethostbyname() in -lnsl... no
checking for sys/un.h... yes
checking for socket()... yes
checking for hsterror()... no
checking for gethostname()... yes
Using PostgreSQL lib directory: /usr/local/pgsql
checking for PQsetdbLogin() in -lpq... no
Could not find PostgreSQL libraries: Makefile not created
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/opt/local/bin/ruby
        --with-pgsql-dir
        --without-pgsql-dir
        --with-pgsql-include
        --without-pgsql-include=${pgsql-dir}/include
        --with-pgsql-lib
        --without-pgsql-lib=${pgsql-dir}/lib
        --with-wsock32lib
        --without-wsock32lib
        --with-socketlib
        --without-socketlib
        --with-inetlib
        --without-inetlib
        --with-nsllib
        --without-nsllib
        --with-pgsql-include-dir
        --without-pgsql-include-dir
        --with-pgsql-lib-dir
        --with-pqlib
        --without-pqlib

iseng2 coba baca readmenya...... dan keliatan banget "matz" super sibuk
(atau males ?, kekekek masa matz males, emangnye daku :) ), coz gem tsb
belon support postgres versi 8, entah kapan codenya bakal diapdet oleh matz,
so aku simpulkan gem tsb ndak bisa diinstall gara2 itu

sampai sini MENYERAH, coba cari alternatif laen, dan sy juga sm dengan oom
arie, ketemu tulisan second editionnya robbyonrails.. dan berhasil ho ho ho

cuma ada yg sedikit mengganjel, karena kalo pake mysql dah kebiasaaan pake
web interface (phpmyadmin), nah di postgres juga rasanya gak nyaman kalo
nggak pake phppgadmin, coba install dan ndak berhasil karena php ku ndak
support postgres hiks, mesti compile ulang dgn dukungan ke postgress
arrrrrrgggh, maleeeees (padahal mah gak bisa kekekkekeke )


eniwei, kalo oom arie, client posgresql-nya pake apah, phppgadmin kah ?,
atau ...dari console ? ...

*berdoa mudah2an mbukan pakek console* ^_^


On 9/22/07, Arie Kusuma Atmaja <[EMAIL PROTECTED]> wrote:
>
>   catatan tercecer arie 2 bulan yang lalu
>
> disini ada yang kesulitan pakai postgres dengan ruby? bisa bagi-bagi
> dukanya
> dengan saya? dulu saya pernah.... tapi bukan pakai gem ruby-postgres yang
> ini,
> tapi yang selainnya (sori lupa namanya saya), pokoknya eeerrooor
> teruuuus...
> sampai akhirnya tulisan si robby ini diupdate gara2x ada yg kasih comment
> cara
> gampang dan sukses.
>
>
> http://www.robbyonrails.com/articles/2007/06/19/installing-ruby-on-rails-and-postgresql-on-os-x-second-edition
>
> id-ruby:~ arie$ psql --version
> psql (PostgreSQL) 8.2.1
> contains support for command-line editing
>
> id-ruby:~ arie$ sudo gem install ruby-postgres -y -r --rdoc --no-ri
> Password:
> Bulk updating Gem source index for: http://gems.rubyforge.org
> Select which gem to install for your platform (powerpc-darwin8.9.0)
> 1. ruby-postgres 0.7.1.2006.04.06 (ruby)
> 2. ruby-postgres 0.7.1.2006.04.06 (mswin32)
> 3. ruby-postgres 0.7.1.2006.04.05 (mswin32)
> 4. ruby-postgres 0.7.1.2006.04.05 (ruby)
> 5. Skip this gem
> 6. Cancel installation
> > 1
> Building native extensions. This could take a while...
> Successfully installed ruby-postgres-0.7.1.2006.04.06
> Installing RDoc documentation for ruby-postgres-0.7.1.2006.04.06...
> id-ruby:~ arie$ irb
> irb(main):001:0> require 'rubygems'
> => true
> irb(main):002:0> require 'postgres'
> => true
> irb(main):003:0> exit
> id-ruby:~ arie$
>
> --
> $ ruby-19 -e "puts ({name:'arie', blog:'
> http://ariekusumaatmaja.wordpress.com',
> community:%w(http://groups.yahoo.com/groups/id-ruby
> http://www.linkedin.com/in/ariekeren)}).is_a?(Hash).to_s.concat(' erl ghc
> z')"
> true erl ghc z
>
>  
>



-- 
blog : http://adityakircon.blogsome.com
ym : kirconboy
skype : adit_skype

Freedom is the right of all sentient beings (Optimus Prime)


[Non-text portions of this message have been removed]

Kirim email ke