Saturday, 24 August 2013

Chef install PostgreSql Ubuntu PG load error

Chef install PostgreSql Ubuntu PG load error

Does anyone know a good workaround for the error where Chef is unable to
install PG libs
Cannot load such file -- pg
I have done a lot of research on this and it seem the problem for many who
have had this issue is that the ruby executable is linked against one
version of OpenSSL whereas the PostgreSQL client libraries are linked
against another version.
There are some workarounds like stackoverflow but all this does is move
all the gems from lib to lib_rvm, not a very elegant solution. Or another
solution to edit the database recipe edit the database recipe but for
every recipe release you would have to re-edit your own recipe.
This is a Chef question as I know how to resolve the missing libs I just
want to figure out how to get chef to do this upfront.
thanks in advance

No comments:

Post a Comment