Thursday, March 11, 2010

Re: [Rails] Re: trying to install postgres gem on fedora 12 ..

On Thu, 2010-03-11 at 12:28 -0800, Jedrin wrote:
> I deleted the directory as you mentioned and reran it. I have some of
> my debug print code in the make file utility here in that log file as
> well:
>
> /usr/bin/ruby extconf.rb
> checking for pg_config... my in check_for
> my postpone:mkmftmp1.log
> my open:mkmf.log
> step 2
> step 3
> #<File:mkmf.log>
> #<IO:0xb78d6f64>
> yes
> my check for header
> checking for libpq-fe.h... my in check_for
> my postpone:mkmftmp1.log
> my open:mkmf.log
> step 2
> step 3
> #<File:mkmf.log>
> #<IO:0xb78d6f64>
> no
> Can't find the 'libpq-fe.h header
> *** 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=/usr/bin/ruby
> --with-pg
> --without-pg
> --with-pg-config
> --without-pg-config
> --with-pg-dir
> --without-pg-dir
> --with-pg-include
> --without-pg-include=${pg-dir}/include
> --with-pg-lib
> --without-pg-lib=${pg-dir}/lib
> --enable-static-build
> --disable-static-build
> [root@458869-MITLL ~]#
----
I don't know if this will make you feel better or worse but on my f12
setup, it just installed no problemo...

# gem install pg
Building native extensions. This could take a while...
Successfully installed pg-0.9.0
1 gem installed
Installing ri documentation for pg-0.9.0...
Installing RDoc documentation for pg-0.9.0...

I'm wondering, do you have the gcc/build stuff installed? I'm asking
because this appears to be c and not a ruby build.

try yum install gcc-c++ autoconf make # that should probably be enough

Craig


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate