Skip Menu |

This queue is for tickets about the DBD-Pg CPAN distribution.

Report information
The Basics
Id: 117082
Status: open
Priority: 0/
Queue: DBD-Pg

Owner: dwheeler [...]
Requestors: adamwizon [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: Relative path issue
Date: Sat, 20 Aug 2016 17:41:04 -0400
To: bug-dbd-pg [...]
From: adamwizon <adamwizon [...]>
I am running OS X 10.11.6 and Perl 5.18.2 with DBD::Pg-3.5.3. I am getting a relative path error from Pg.bundle with respect to libpq.5.dylib. There is a work-around using install_name_tool to change the path to libpq.5.dylib to be a full path name, but I think the module needs to be fixed if possible. Thanks. install_driver(Pg) failed: Can't load '/Library/Perl/5.18/darwin-thread-multi-2level/auto/DBD/Pg/Pg.bundle' for module DBD::Pg: dlopen(/Library/Perl/5.18/darwin-thread-multi-2level/auto/DBD/Pg/Pg.bundle, 1): Library not loaded: libpq.5.dylib Referenced from: /Library/Perl/5.18/darwin-thread-multi-2level/auto/DBD/Pg/Pg.bundle Reason: unsafe use of relative rpath libpq.5.dylib in /Library/Perl/5.18/darwin-thread-multi-2level/auto/DBD/Pg/Pg.bundle with restricted binary at /System/Library/Perl/5.18/darwin-thread-multi-2level/ line 194. at (eval 337) line 3. Compilation failed in require at (eval 337) line 3. Perhaps a required shared library or dll isn't installed where expected at /xxx/yyy/...
Subject: Re: [ #117082] Relative path issue
Date: Tue, 28 Mar 2017 18:47:44 -0700
To: bug-DBD-Pg [...]
From: "David E. Wheeler" <dwheeler [...]>
Download (untitled) / with headers
text/plain 117b
Is this due to the rootless feature introduced in OS X? D
Download (untitled) / with headers
text/plain 216b
This can be solved using something like the following command: sudo install_name_tool -change libpq.5.dylib /Library/PostgreSQL/11/lib/libpq.5.dylib ~/perl5/lib/perl5/darwin-thread-multi-2level/auto/DBD/Pg/Pg.bundle
So, is this something that is possible to be fixed on the DBD::Pg end or not?

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to