Displaying 20 results from an estimated 2000 matches similar to: "Postgres adapter issues with Rails 2.1: ruby-pg is the answer!"
2011 Oct 26
4
Help wanted: pg vs. postgres-pr gems
Hi all,
I installed Rails 3.0 + PostgreSQL 8.4.
Installed the gem postgre-pr
I added " gem ''postgres-pr'' " to my Gemfile
I defined my database.yml with:
# PostgreSQL 8.4
development:
adapter: postgresql
encoding: unicode
database: testdb
pool: 5
username: test
password: ******
I run rails server which starts, but application environment returns
this error:
2012 Dec 04
3
Unable to install pg gem file on CENT OS
please help me in this... I am unable to install pg gem file
[root@vdimc04 ~]# gem install pg -v ''0.12.0''
/usr/local/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>'':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
Fetching: rake-compiler-0.8.1.gem (100%)
Fetching:
2012 Sep 18
13
pg gem error
gem install pg give the following error, please help how can i solve this
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/home/saravanan/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for pg_config... yes
Using config values from /usr/bin/pg_config
checking for libpq-fe.h... yes
checking for
2010 Mar 11
14
trying to install postgres gem on fedora 12 ..
I get these errors :
gem install pg -- --with-pgsql-include-dir=''/usr/include/pgsql'' --
with-pgsql-lib-dir=''/usr/lib/pgsql''
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb --with-pgsql-include-dir=/usr/include/pgsql --
with-pgsql-lib-dir=/usr/lib/pgsql
2007 May 05
1
Asterisk 1.4.4 and Custom Postgres 8.2.4 (checking for PQexec in -lpq... no)
Dear All,
Why does my configure fail like so:
checking for pg_config... /usr/local/pgsql/8.2.4/bin/pg_config
checking for PQexec in -lpq... no
configure: ***
configure: *** The PostgreSQL installation on this system appears to be broken.
configure: *** Either correct the installation, or run configure
configure: *** including --without-postgres
Configure options are:
env CC=/usr/local/bin/gcc
2012 Mar 07
6
Can't find the PostgreSQL client library (libpq)
When i try it start my ruby server i get a error that looks like
rails server Could not find pg-0.12.2 in any of the sources
Run `bundle install` to install missing gems.
I dont know what to do
Thanks for all the help
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
2012 Oct 10
1
Rubymine Install Missing Gems
Hello All,
I am using JRuby in Linux Ubuntu 10.10.
In Rubymine IDE, I am getting as "Install Missing Gems" link. After
clicking on that link, I am getting this error :-
Installing pg (0.14.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native
extension.
checking for pg_config... yes
Using config values from /usr/bin/pg_config
2012 Oct 05
2
heroku rake db:drop error PG::Error: FATAL: permission denied for database "postgres"
How to empty DB in heroku<http://stackoverflow.com/questions/4820549/how-to-empty-db-in-heroku>
I have a Postgres database on Heroku. It is one of the free beta ones.
Locally, when testing, I often run rake db:drop && rake db:create && rake
db:migrate as a way to reset the database.
However, when I try to run this on Heroku, I get the error:\[code\]Couldn''t
drop
2010 Jul 21
1
Package RPostgreSQL_0.1-6.tar.gz has been checked and built
Hi Dirk
I think there are problems with pg_config, the configure script of
RPostgreSQL checks for pg_config and got ¡°checking for pg_config...
/usr/bin/pg_config¡±. In Solaris 10u7 X64, three versions of PostgreSQL are
installed, there are in /usr/postgres/8.2(8.2.9) and
/usr/postgres/8.3(8.3.3), the corresponding bin files are in
/usr/postgres/<version>/bin and
2009 Apr 24
3
Query configuration parameters
Hi,
PostgreSQL has a tool pg_config that returns the parameters the
./configure script was called with.
$ pg_config --libdir
/usr/local/lib
$ pg_config --includedir
/usr/local/include
Does Samba have a similar feature and how do I call it?
Sorry, but this is impossible to google for.
Bertram
--
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de
2010 Mar 15
1
Installing cdr_pgsql on asterisk 1.6.0.26
Hi folks,
I am struggling to install cdr_pgsql in asterisk 1.6.0.26. When I do the
./configure, it complains about the function PQescapeStringConn not
existing in -lpq, so when I do a make menuconfig, I can't select the
cdr_pgsql module.
I am using CentOS 5.4 with the yum PGDG repository for 8.4 version. Some
of the installed packages are postgresql-libs, compat-postgresql-libs,
2009 Aug 28
1
RPostgreSQL libpq problem
Dear all,
I am stuck trying to get RPostgreSQL running on my Mac. PostgreSQL
itself does work fine as it is able to connect with various other apps.
Unfortunately the RPostgreSQL package is not available as a binary for
MAC OS. Thus I?ve been trying to compile the source for quite some
time now - unfortunately without success (or at least very limited
success).
First, running
2010 Oct 13
3
using pg on snow leopard
I have a macbook running snow leopard. I recently installed postgresql
9.0 on it. I also installed pg with the following command:
sudo env ARCHFLAGS=''-arch x86_64'' gem install pg
The result was fine:
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
2011 Aug 03
2
FYI: Heroku Cedar, pg, openssl, omniauth, troubles and a solution
Hi guys,
I found a really nasty issue that affects people running on Heroku''s cedar
stack. We are using Rails 3.1.rc5, pg 11, omniauth 2.6. Ruby is 1.9.2.180p
Basically there is an incompatibility between the http, pg and OpenSSL
modules which segfaults when making https calls, for example to log in
through twitter. Now pg is a required gem when using Heroku cedar stack so
leaving that
2012 Nov 22
1
problems with RPostgreSQL compilation
Hello,
I am trying to install RPostgreSQL, but without success at the moment, getting an errormessage - see below.
My OS is Fedora 17, R version 2.15.2, PostgreSQL 9.2.1 with Postgis 2.0.1 spatial extension.
Thank You for any help, advice or hint in advance.
Regards
Tomas
> install.packages("RPostgreSQL", dependencies=TRUE)
trying URL
PG gem behaves strange. It requires live DB connection to only generate a model. How to turn it off?
2013 May 01
3
PG gem behaves strange. It requires live DB connection to only generate a model. How to turn it off?
I used MySQL as a backend before. Now I had to move to PG since Heroku
doesn''t have MySQL and forces everyone to use their Heroku-PG database.
But PG virsion of Rails works diffidently. I cannot generate a model
without PG server running:
>> C:\ruby\Heroku\App>rails generate model Products
>>
>> C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-
2007 Jul 13
1
PHP doesn't connect to PG with SELinux
I just migrated my FC4 server to CentOS 5 and had some problems with DB
connections from PHP to a PG server (remote server). The thing is that I
couldn't get an error, until I disabled SELinux. At that time, the PG
connections started working.
Are there any instructions on how to work with SELinux enabled and
multiple applications connecting one with another?
--
select
2009 May 19
1
Missing perl-DBD-Pg security update
Hi,
Any news when we may expect the missing perl-DBD-Pg security update for
CentOS 5 from last week?
https://rhn.redhat.com/errata/RHSA-2009-0479.html
It came out the same day as the poppler security update that CentOS
pushed 2 days later so I'm wondering why the perl-DBD-Pg security update
still hasn't appeared. Is there an issue? Did it just get missed? Should
we wait longer?
2013 Jul 24
2
[LLVMdev] Program compiled with Clang -pg and -O crashes with SEGFAULT
Hi,
I am trying to compile a simple program with Clang 3.3 on Linux and used -pg and -O2 option. The program would crash with segfault. Interestingly if I compile it with -pg option only it works. Do you have any idea why it crashes? And any workaround?
$ cat myprog.c
int main() {
return 0;
}
$ clang -v -pg -O2 myprog.c
clang version 3.3 (tags/RELEASE_33/final)
Target:
2013 Jul 24
0
[LLVMdev] Program compiled with Clang -pg and -O crashes with SEGFAULT
Hi Qiao,
On 24/07/13 08:23, Qiao Yang wrote:
> Hi,
>
> I am trying to compile a simple program with Clang 3.3 on Linux and used -pg and -O2 option. The program would crash with segfault. Interestingly if I compile it with -pg option only it works. Do you have any idea why it crashes? And any workaround?
>
> $ cat myprog.c
> int main() {
> return 0;
> }
>
> $