chris2511 / xca

X Certificate and Key management
http://xca.hohnstaedt.de
Other
1.54k stars 204 forks source link

XCA for OS X depends on hardcoded location/version of mariadb from homebrew, and it was recently updated #285

Open exabrial opened 3 years ago

exabrial commented 3 years ago

First, I just want to say thanks. Open source work goes mostly unthanked, and I appreciate the time and passion you've poured into XCA.

Recently homebrew updated mariadb-connector-c to 3.1.13. If you run a brew update then attempt to open a remote mysql database, XCA will kick you an error saying it can't find version 3.1.12:

The following error occurred:
Plugin caching_sha2_password could not be loaded: dlopen(/usr/local/Cellar/mariadb-connector-c/3.1.12/lib/mariadb/plugin/caching_sha2_password.so, 2): image not found QMYSQL: Unable to connect

It's hilariously hard to install an older version of a package with homebrew. I'm working on trying to get the older version of mariadb-connector-c installed, but I figure I'd put this on your radar.

chris2511 commented 3 years ago

Did you install XCA via homebrew or via my DMG?

At least the DMG variant should not have external dependencies: $ otool -L xca.app/Contents/PlugIns/sqldrivers/libqsqlmysql.dylib | grep mariadb @executable_path/../Frameworks/libmariadb.3.dylib (compatibility version 3.0.0, current version 3.0.0)

exabrial commented 3 years ago

I tried both. I just downloaded from your website, version 2.4.0 and when connecting to a Digital Ocean hosted MySQL8 database, got this error: Screen Shot 2021-05-17 at 1 05 14 PM

Are you able to reproduce this? Kinda crazy.

Tobix99 commented 3 years ago

Hey, I thought to hijack this thread: On the Downloads Page the install command is wrong: "brew cask install xca" instead of "brew install cask xca".

anignatev commented 3 years ago

Confirm problem, in version xca-2.4.0.dmg hard link to the mariadb-connector-c version 3.1.12 in the file /Applications/xca.app/Contents/Frameworks/libmariadb.3.dylib. Connection to MySQL DB doesn't work (( Screenshot in attachments Снимок экрана 2021-10-20 в 18 36 20 .

anignatev commented 2 years ago

We temporarily fixed this problem, forked and sent commit request to the author. Here is version of the application without this problem, tested in Big Sur.

https://github.com/infsysgroup/xca/releases/tag/RELEASE.2.4.1