Skip Menu |

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

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

People
Owner: dwheeler [...] cpan.org
Requestors: adamwizon [...] me.com
Cc:
AdminCc:

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 [...] rt.cpan.org
From: adamwizon <adamwizon [...] me.com>
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/DynaLoader.pm 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: [rt.cpan.org #117082] Relative path issue
Date: Tue, 28 Mar 2017 18:47:44 -0700
To: bug-DBD-Pg [...] rt.cpan.org
From: "David E. Wheeler" <dwheeler [...] cpan.org>
Is this due to the rootless feature introduced in OS X? http://openradar.appspot.com/radar?id=4963276488179712 D
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?
Added a quick note to the README file until we can find a proper fix.
Marking as stalled until we get a better fix from someone with Mac experience / access