a71e83c30508f8e59f523b495c263902c397aa3c max Mon Jun 16 07:22:55 2025 -0700 a warning for installs on osx, reported by chris, no redmine diff --git src/product/installer/browserSetup.sh src/product/installer/browserSetup.sh index 629cda927ea..403687afb50 100755 --- src/product/installer/browserSetup.sh +++ src/product/installer/browserSetup.sh @@ -1430,30 +1430,40 @@ # install clang, brew and configure Apple's Apache, so we can build the tree on OSX function setupBuildOsx () { # install clang installOsxDevTools which -s brew > /dev/null if [[ $? != 0 ]] ; then echo2 Homebrew not found. Installing now. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" else brew update fi + + if brew list --formula | grep -q "^mysql\$"; then + echo "MySQL is already installed via Homebrew. We need mariadb for the browser, but it is not easy to install mariadb "; + echo "when MySQL is already installed. Consider running 'brew uninstall mariadb' and then an rm command like this:" + echo "rm -rf /opt/homebrew/var/mysql /opt/homebrew/etc/my.cnf /opt/homebrew/etc/my.cnf.d /opt/homebrew/etc/my.cnf.default" + echo "Then run 'brew install mariadb' and see if you can connect using the mariadb command." + echo "Then restart this program." + exit 150 + fi + echo2 Installing homebrew packages libpng, openssl, mariadb, git brew install libpng openssl mariadb git freetype echo2 Allowing write access for all on Apple\'s Apache htdocs/cgi-bin directories. echo2 The chmod command requires sudo - please enter the admin password now: sudo chmod a+rw /Library/WebServer/CGI-Executables sudo chmod a+rw /Library/WebServer/Documents # create symlinks to Apple's paths so all our normal makefiles work if [ ! -e /usr/local/apache ]; then echo2 Creating /usr/local/apache to fill with symlinks later sudo mkdir -p /usr/local/apache sudo chmod a+rw /usr/local/apache touch "$APACHEDIR"/.madeByBrowserBuild fi