Giter Club home page Giter Club logo

Comments (9)

RunsFor avatar RunsFor commented on July 30, 2024

+1

from postgresql.

jeremyolliver avatar jeremyolliver commented on July 30, 2024

Are you on ubuntu, or debian? Can you check if the package libpq-dev got installed by the recipe correctly?

from postgresql.

namtzigla avatar namtzigla commented on July 30, 2024

Hi, I have the same problem on ubuntu 12.04 LTS. and I have libpq-dev installed.
If you run /opt/chef/embedded/bin/gem install pg it fails but if I install ruby1.9.1-dev and I'm trying to install it in the local environment it works.

If you look on mkmf.log the error seems to be:

"gcc -o conftest -I/opt/chef/embedded/include/ruby-1.9.1/i686-linux -I/opt/chef/embedded/include/ruby-1.9.1/ruby/backward -I/opt/chef/embedded/include/ruby-1.9
.1 -I. -I/usr/include/postgresql  -D_FILE_OFFSET_BITS=64  -I/opt/chef/embedded/include -I/opt/chef/embedded/include -O3 -g -pipe -fPIC conftest.c  -L. -L/opt/c
hef/embedded/lib -Wl,-R/opt/chef/embedded/lib -L/usr/lib -Wl,-R/usr/lib -L/opt/chef/embedded/lib -Wl,-R/opt/chef/embedded/lib -L. -Wl,-rpath,/opt/chef/embedded
/lib -L/opt/chef/embedded/lib -rdynamic -Wl,-export-dynamic -L/opt/chef/embedded/lib  -Wl,-R/opt/chef/embedded/lib      -Wl,-R -Wl,/opt/chef/embedded/lib -L/op
t/chef/embedded/lib -lruby -lpq  -lpthread -lrt -ldl -lcrypt -lm   -lc"
conftest.c: In function ‘t’:
conftest.c:6:1: error: too few arguments to function ‘PQconnectdb’
/usr/include/postgresql/libpq-fe.h:243:16: note: declared here
checked program was:
/* begin */
 1: #include "ruby.h"
 2:
 3: #include <libpq-fe.h>
 4:
 5: /*top*/
 6: int t() { PQconnectdb(); return 0; }
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     printf("%p", &t);
11:   }
12:
13:   return 0;
14: }
/* end */

I tried to install various versions of pg gem but I have the same results, so I suspect it might be related with the version of ruby that's embedded with chef.

At this moment I have no workaround.

from postgresql.

radekg avatar radekg commented on July 30, 2024

Exactly the same problem.

from postgresql.

nicholasklick avatar nicholasklick commented on July 30, 2024

+1 Same here.

from postgresql.

radekg avatar radekg commented on July 30, 2024

It's interesting, there's a new version of this cookbook containing postgresql::ruby recipe. That one works fine.

from postgresql.

michaelkirk avatar michaelkirk commented on July 30, 2024

@amrnt are you still having an issue here?

from postgresql.

amrnt avatar amrnt commented on July 30, 2024

@michaelkirk No issues here!

from postgresql.

lock avatar lock commented on July 30, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from postgresql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.