in reply to Re^2: Par pp DBD::mySQL macOS
in thread Par pp DBD::mySQL macOS

In your last example you used --lib to add a library, that's not what it does -I,-lib=DIR:

"Add the given directory to the perl module search path. May be specified multiple times."

You're not trying to add a perl module, this is a mySQL library. use --link --link=FILE|LIBRARY:

"Add the given shared library (a.k.a. shared object or DLL) into the packed file. Also accepts names under library paths; i.e. -l ncurses means the same thing as -l libncurses.so or -l /usr/local/lib/libncurses.so in most Unixes. May be specified multiple times."

Replies are listed 'Best First'.
Re^4: Par pp DBD::mySQL macOS
by Anonymous Monk on Jul 04, 2018 at 09:01 UTC

    Good point, Marto! It seems to work. I had to add some other libraries since they are - I guess - expected by the mySQL library

    pp -x -o script --link=/usr/local/opt/mysql/lib/libmysqlclient.21.dyli +b --link=/usr/local/opt/openssl/lib/libssl.1.0.0.dylib --link=/usr/lo +cal/opt/openssl/lib/libcrypto.1.0.0.dylib script.pl

    The executable created this way doesn't complain on a second machine.