A question about macports perl and apple perl and versions and locations
Daniel J. Luke
dluke at geeklair.net
Mon Dec 14 08:55:12 PST 2015
On Dec 14, 2015, at 5:15 AM, Robert Chalmers <robert at chalmers.com.au> wrote:
> Because yesterday I archived the existing perl binaries in /usr/bin, and put links to /opt/local/bin/perl*
don't do that.
> So obviously what happened was this.
> The macports perl wanted to talk to macports mysql - and couldn’t. It’s not even running. A different mysql is running. So macports perl5-22 relies on having macports mysql installed in the /opt hierarchy somewhere.
no, it just has a default path (that used to be correct, and now isn't for your particular setup).
> So now I have to figure out if it’s worth moving to macports mysql, and how??? so then I can hopefully also switch perl versions…. or just leave well enough alone.
just configure your scripts to start up with the perl interpreter that you want (change the #! line), and configure your connection string to point to the mysql that you want it to connect to (http://search.cpan.org/dist/DBD-mysql/lib/DBD/mysql.pm - look for mysql_socket)
--
Daniel J. Luke
+========================================================+
| *---------------- dluke at geeklair.net ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
| Opinions expressed are mine and do not necessarily |
| reflect the opinions of my employer. |
+========================================================+
More information about the macports-users
mailing list