Dia not starting under Mac OS X El Capitan (10.11.1)
Free drawing software for Windows, Mac OS X, and Linux
Brought to you by:
zbrown
Dia Version is 0.97.2-7 installed via Homebrew Cask dia. Have installed XQuartz 2.7.8 via Homebrew Cask too.
If I try to run dia it crashes. If I run it from commandline the following output is created:
Warning: AppleCollationOrder setting not found, using AppleLocale.
Setting Language: en.UTF8
dyld: Library not loaded: @executable_path/../lib/dia/libdia.dylib
Referenced from: /Users/[username]/Applications/Dia.app/Contents/Resources/bin/dia-bin
Reason: image not found
[1] 13492 trace trap ./dia
The Mac OS X error report has the following information:
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
Library not loaded: @executable_path/../lib/dia/libdia.dylib
Referenced from: /opt/homebrew-cask/*/Dia.app/Contents/Resources/bin/dia-bin
Reason: image not found
Binary Images:
0x7fff6755e000 - 0x7fff67594f5f dyld (360.17) <03673B53-B8B7-34D1-ADCE-F449E78E39CC> /usr/lib/dyld
Hope someone knows what is going on here.
Thank you for your time.
I am seeing the same issue. Homebrew, El Capitan, XQuartz 2.7.8, Dia 0.97.2-7.
Note that the unloadable library is being sought at @executable_path/../lib/dia/libdia.dylib.
The distribution does not have a lib/dia/libdia.dylib. There is lib/libdia.dylib and dia/libdia.dylib.
I will be happy to provide any further assistance.
I can confirm that the recent DIA version does not start if you upgrade to El Capitan. Before DIA was working as intended.
This solution is working for me:
http://appledigg.com/t/awesome-trick-to-fix-dia-diagram-errors-in-mac-os-x-el-capitan-yosemite/302
I can confirm that DIA starts again if you add
export DISPLAY=:0
after line 39 of the DIA app.
Let's see how stable the program will be.
Does not work for me on macOS Sierra Version 10.12.2, XQuartz 2.7.11:
Last edit: Stephen Starkey 2017-01-03
Seems I was using a broken version (from homebrew). Downloading the latest 0.97.2 direct seems to work without any changes at all.
[Mac OS 10.13.2, with Xquartz 2.7.9, Dia-0.97.2-7.dmg]
I can't run Dia via its icon. To run it from the terminal, I first need to 'export DISPLAY=:0' before running /Applications/Dia.app/Content/Resources/bin/dia
Last edit: Nap 2017-12-31
To run it from the icon in LaunchPad, the bin/dia script needs to be modified to export DISPLAY=:0 before the test in line 27.
The reason for the failure seems to be due to the fact that $DISPLAY already contains a value; on my system it is: /private/tmp/com.apple.launchd.ltexsnZtF4/org.macosforge.xquartz:0.
In either case, there is no DIA icon in the Launch Bar while DIA is running. Though there is an X11 icon.
I upgraded my Xquartz 2.7.11, and now I have a Dia icon, but it 'bounces' the entire time that Dia is open.
Working for me and would work on any Mac OS X version; just follow these steps:
- Do not run any of them.
Last edit: Alexander Abreu 2019-01-11
Well this script seems a little bit outdated, I don't see any reason to export
DISPLAYin this script. There is also a second error preventing console usage for genereting images from diagrams. Arguments to script are not passed to dia binary. Proposed solution gets rid off both.