
Download and install MacPorts, install details here 3. At the moment I still don’t recommend installing El Cap on a ‘work’ machine which you can’t afford to lose. MacPorts has been updated and supports El Cap, though as always a reinstall of all ports is needed for a major OS update. Available Ports for The MacPorts Project Install and upgrade open source software on macOS. Download and install XCode (MacPorts depends on it) 2. How much this affects you depends on how much you use Office.
#Harms of installing macports mac os x
Heres what I had to do to install to Mac OS X 10.5.7 (Leopard) 1. The client section affects all clients, such as mysql and mysqldump they can also be specified separately if desired. I say almost excellent because installation wasnt completely glitch free. The MacPorts Project is an open-source community initiative to design an easy-to-use system for compiling, installing, and upgrading either command-line. And if we wanted to compile stuff, we wouldn’t be using MacPorts!Įdit /opt/local/etc/mysql5/my.cnf to add these commands: We’ll fix this problem by telling MySQL to put the socket file somewhere else you can’t tell mysqlnd where to put it, without recompiling PHP. Now that the library is part of PHP, things have changed. The reason this used to work is that the older client library was actually part of MySQL so the defaults for both were the same.

In this case, mysqlnd seems to be checking /tmp/mysql.sock, even though the MacPorts MySQL likes to use /opt/local/var/run/mysql5/mysqld.sock. Then, in the Jamroot of the sample directory, add: using darwin : 4.5.3 : g++-mp-4.5 The darwin import is derived from the gcc import, so you can give it pretty much the same options. I got around these by installing MacPorts port for gcc45. PHP Warning: mysqli::mysqli(): (HY000/2002): No such file or directory in /Users/mike/Sites/database.php on line 13īy default, any connections to “localhost” are handled through UNIX sockets, which are referred to by file names. These come from a conflict with newer definitions in pyports.h that are designed to handle UTF-8.

PHP Warning: mysqli::mysqli(): No such file or directory (trying to connect via unix:///tmp/mysql.sock) in /Users/mike/Sites/database.php on line 13
