Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Mac binary release: Library not loaded.

Mac binary release: Library not loaded.

Hello,

I have a fresh installation of Mavericks with Xcode, Command line tools and Java.

First of all I had to export the bin directory, to be able to use omc:

Code:

export PATH=$PATH:/opt/openmodelica/bin/

When I try to run a model with the binary release for Mac OS X ( tagged openmodelica-devel 19459 ) there seems to be an issue with versions of libraries.

Code:

~ $ omc sim_BouncingBall.mos 

true
record SimulationResult
    resultFile = "",
    simulationOptions = "startTime = 0.0, stopTime = 3.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'BouncingBall', options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''",
    messages = "Simulation execution failed for model: BouncingBall
dyld: Library not loaded: /opt/openmodelica/lib/mpich-mp/libpmpich.10.dylib
  Referenced from: /opt/openmodelica/lib/libsundials_kinsol.1.dylib
  Reason: image not found
/bin/sh: line 1:   630 Trace/BPT trap: 5       ( /Users/guilherme/peno/BouncingBall )
",
    timeFrontend = 0.019687103,
    timeBackend = 0.03312385900000001,
    timeSimCode = 0.010583258,
    timeTemplates = 0.011603362,
    timeCompile = 0.266270421
end SimulationResult;
false

There is no version 10 of that library,

Code:

~/peno $ ls /opt/openmodelica/lib/mpich-mp/libpmpich.*

/opt/openmodelica/lib/mpich-mp/libpmpich.12.dylib    /opt/openmodelica/lib/mpich-mp/libpmpich.dylib
/opt/openmodelica/lib/mpich-mp/libpmpich.a

Hacking aroud I got omc and OMEdit to work:

Code:

$cd /opt/openmodelica/lib/mpich-mp

$sudo ln -s libmpich.12.dylib libmpich.10.dylib
$sudo ln -s libpmpich.12.dylib libpmpich.10.dylib

However libreadline is not there for OMShell ...

Code:

~/peno $ OMShell-terminal 

dyld: Library not loaded: /opt/openmodelica/lib/libreadline.6.2.dylib
  Referenced from: /opt/openmodelica/bin/OMShell-terminal
  Reason: image not found
Trace/BPT trap: 5

~/peno $ ls /opt/openmodelica/lib/libr*
ls: /opt/openmodelica/lib/libr*: No such file or directory

Can you please comment on this? I usually do not like to link things around... without knowing the consequences. Is there another binary version which I could download?

Best regards,
Guilherme

Edited by: guitorri - Mar-10-14 20:15:38

Re: Mac binary release: Library not loaded.

The macports version does work.  I think that they are probably using macports to do the build on the server as well, which is then packaged up as the nightly binary.  But, it looks like when it is packaged up the files are being installed into /opt/openmodelica, while by default they go into /opt/local.  All that to say, it is likely that there is a bug in how the packages are being made, and my suggestion is that you use the bug tracker to report it.  https://trac.openmodelica.org/OpenModelica  The developers tend to be very responsive, and that will make sure that they are aware of it, and will hopefully get it fixed.

There are 0 guests and 0 other users also viewing this topic
You are here: