Hi,

I'm using the puppetlabs-postgresql module and it works very well, but I 
want to make it work with a non-standard version of postgresql (from Red 
Hat Software Collections) because I would like to use Postgresql 9.6 on 
RHEL 7.  Almost everything is working, but I get errors from some commands 
that cannot find a shared object.  This is caused by the fact that Software 
Collections package use non-standard paths for their files.  For example, 
postgresql binaries are in opt/rh/rh-postgresql96/root/usr/bin/ than 
/usr/bin/.  Here's the kind of errors I get:

/opt/rh/rh-postgresql96/root/usr/bin/psql: error while loading shared 
libraries: libpq.so.rh-postgresql96-5: cannot open shared object file: No 
such file or directory

The modules allows for setting a path for the binaries, but not for the 
libraries, so it finds the binary, but I would need to set 
the LD_LIBRARY_PATH.  Since puppet cannot use bash built-in commands, I 
tried using /bin/bash -c 'export LD_LIBRARY_PATH= but it doesn't work. I 
guess it a shell of its own and the export doesn't propagate to the 
original environment.

Does anyone has an idea of what I can do before I ask the maintainers of 
the module?

Thanks,

Ugo

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/331a9074-61ac-4b41-baf0-4ab483655fe8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to