Executing TISEAN binaries from within Matlab on Mac OS X 10.6.8

조회 수: 4 (최근 30일)
dave
dave 2013년 5월 14일
Hello,
I downloaded TISEAN binaries for Mac, but unfortunately I just can't get it working on my Mac OSX 10.6.8. Everytime I want to run a tisean command from Matlab (e.g.: system([tiseanPath,'stp usdchf.txt -d6200 -m3 -o stp.txt']);) it gives me an error saying:
dyld: Library not loaded: /usr/local/gfortran/lib/libgfortran.3.dylib Referenced from: /Users/ak/Desktop/Tisean-4/./stp Reason: no suitable image found. Did find: /Applications/MATLAB_R2012b.app/sys/os/maci64/libgfortran.3.dylib: mach-o, but wrong architecture /usr/local/lib/libgfortran.3.dylib: mach-o, but wrong architecture /Users/ak/Desktop/Tisean-4/./stp usdchf.txt -d6200 -m3 -o stp.txt: Trace/breakpoint trap
I have already tried to install Xcode Tools 3.2 but Matlab still throws this error.
Any idea why it doesn't work?

답변 (1개)

Ken Atwell
Ken Atwell 2013년 5월 15일
It looks like you need Fortran libraries to run TISEAN (which I've never heard of) that cannot be found. Xcode won't help with this problem. MATLAB happens to include Fortran libraries, and it looks like TISEAN is trying to use those -- but failing because of a "wrong architecture". I'll speculate that TISEAN is an older 32-bit Mac application, while MATLAB is a 64-bit application, so TISEAN won't be able to use any libraries it happens to find MATLAB.
Does TISEAN work when run from outside of MATLAB? I would confirm that works from a Terminal window before adding the complex for running it from within MATLAB.
  댓글 수: 1
dave
dave 2013년 5월 15일
편집: dave 2013년 5월 15일
Ok, I just tried to execute a TISEAN binary from the terminal and got a similar error:
dyld: Library not loaded: /usr/local/gfortran/lib/libgfortran.3.dylib Referenced from: /Users/ak/Desktop/Tisean-4/stp Reason: no suitable image found. Did find: /usr/local/lib/libgfortran.3.dylib: mach-o, but wrong architecture Trace/BPT trap

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by