Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks
I am trying to pack with pp on my macOS a script containing the module DBD::mySQL. The script may be as simple as:
use DBI; use DBD::mysql; print "Hello!\n"
I compile it with the following:
pp -o script script.pl
Running it on a second machine, it fires the following error:
Can't load '/var/folders/qn/ww36n76n3kldrwp2_zxxw6k40000gn/T/par-66637 +5/cache-2406952ca14394e9ceb0dfd842a9672270fd4d99/fcfedebf.bundle' for + module DBD::mysql: dlopen(/var/folders/qn/ww36n76n3kldrwp2_zxxw6k400 +00gn/T/par-666375/cache-2406952ca14394e9ceb0dfd842a9672270fd4d99/fcfe +debf.bundle, 1): Library not loaded: /usr/local/opt/mysql/lib/libmysq +lclient.21.dylib Referenced from: /var/folders/qn/ww36n76n3kldrwp2_zxxw6k40000gn/T//p +ar-666375/cache-2406952ca14394e9ceb0dfd842a9672270fd4d99/fcfedebf.bun +dle Reason: image not found at /Users/de/perl5/perlbrew/perls/perl-5.26. +1/lib/5.26.1/darwin-2level/DynaLoader.pm line 197. at /Users/de/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/PA +R/Heavy.pm line 123. Compilation failed in require at script/SQL.pl line 3. BEGIN failed--compilation aborted at script/SQL.pl line 3.
The obvious problem is that libmysqlclient.21.dylib is missing. Less obvious to me is hot to solve the problem, as the following is not working too
pp -o script --lib=/usr/local/opt/mysql/lib/libmysqlclient.21.dylib s +cript.pl
Any suggestions
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Par pp DBD::mySQL macOS
by marto (Cardinal) on Jul 03, 2018 at 13:21 UTC | |
by Anonymous Monk on Jul 04, 2018 at 08:16 UTC | |
by marto (Cardinal) on Jul 04, 2018 at 08:32 UTC | |
by Anonymous Monk on Jul 04, 2018 at 09:01 UTC |