Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » sbml-interoperability » Problem in installing MATLAB bindings
Show: Today's Posts  :: Message Navigator
| Subscribe to topic 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
fbergman


Posts: 122
Registered:
February 2010
Re: Problem in installing MATLAB bindings 07 May '12 10:08 Go to previous messageGo to previous message

Ok, this error means that after compiling the bindings they failed to start on your system. Please change into the directory src/bindings/matlab (from within matlab) and try the bindings and report all messages that you get when you type

TranslateSBML('test.xml')

if the error mentions something like an incompatibility with the standard c++ library, you might want to set the LD_PRELOAD environment variable to its location to be sure that one is loaded first.

http://sbml.org/Software/libSBML/docs/cpp-api/libsbml-issues.html#matlab-linux

best
Frank

On May 7, 2012, at 4:35 PM, ayesha wrote:

>
> Hi Frank
>
> Thanks for the tip. I ran buildSBML.m from inside MATLAB and this is output I get
>
> * Doing preliminary checks of runtime environment ...
> - This appears to be MATLAB and not Octave.
> - MATLAB reports the OS is 64-bit Linux.
>
> Constructing the libSBML MATLAB interface.
>
> * Trying to establish our location ...
> - We are in the libSBML subdirectory for Matlab.
> - We appear to be in the libSBML source tree.
> - We have write access here! That makes us happy.
> * Locating libSBML library and include files ...
> - Found /home/ayesha/Downloads/SOFTWARE/libsbml-5.4.1/src/.libs/libsbml.so
> - Root of includes is /home/ayesha/Downloads/SOFTWARE/libsbml-5.4.1/src
> * Creating mex files in /home/ayesha/Downloads/SOFTWARE/libsbml-5.4.1/src/bindings/matlab
> - Building TranslateSBML ...
>
> Warning: You are using gcc version "4.6.1-9ubuntu3)". The version
> currently supported with MEX is "4.3.4".
> For a list of currently supported compilers see:
> http://www.mathworks.com/support/compilers/current_release/
>
> - Building OutputSBML ...
>
> Warning: You are using gcc version "4.6.1-9ubuntu3)". The version
> currently supported with MEX is "4.3.4".
> For a list of currently supported compilers see:
> http://www.mathworks.com/support/compilers/current_release/
>
> OutputSBML.c: In function ‘mexFunction’:
> OutputSBML.c:193:14: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
>
> Successfully finished. If appropriate, please run "installSBML" next.
>
>
>
> Next, I ran installSBML.m, and this is what I get
>
>
> Installing the libSBML MATLAB interface.
>
> * Doing preliminary checks of runtime environment ...
> - This appears to be MATLAB and not Octave.
> - MATLAB reports the OS is 64-bit Linux.
> Checking for executables ...
> Executables found
> * Trying to establish our location ...
> - We are in the libSBML subdirectory for Matlab.
> - We appear to be in the libSBML source tree.
> - We have write access here! That makes us happy.
> Checking for libraries ...
> adding /home/ayesha/Downloads/SOFTWARE/libsbml-5.4.1/src/bindings/matlab to the path
>
> Testing the installation.
>
> checking for TranslateSBML
> Installation failed - MATLAB cannot find all the libraries
> Add the path to the libraries to your path
> If this fails please contact the libsbml-team@caltech.edu
>
>
>
> These are files which are present in the /src/bindings/matlab folder
>
> AUTHORS.txt Contents.m isoctave.m matlab-tags-regexp.txt mexopts-R2009-R2010.sh README.txt TranslateSBML.m
> buildSBML.m ConvertFormulaToMathML.m isSBML_Model.m mexopts-lion.sh OutputSBML.c test TranslateSBML.mexa64
> CheckAndConvert.m FindMatlab.cmake Makefile mexopts-R2007.sh OutputSBML.m test.xml
> CMakeLists.txt installSBML.m Makefile.in mexopts-R2008.sh OutputSBML.mexa64 TranslateSBML.c
>
>
> Just to be sure that I understand this right, when I do
> echo $LD_LIBRARY_PATH
>
> I do see, :/usr/local/lib
>
> and when I navigate to the above dir, I see
>
>
> -rwxr-xr-x 1 root root 5535924 2012-05-07 09:14 libsbml.so.5.4.1
> lrwxrwxrwx 1 root root 16 2012-05-07 09:14 libsbml.so.5 -> libsbml.so.5.4.1
> lrwxrwxrwx 1 root root 16 2012-05-07 09:14 libsbml.so -> libsbml.so.5.4.1
> -rwxr-xr-x 1 root root 840 2012-05-07 09:14 libsbml.la
> -rw-r--r-- 1 root root 16252668 2012-05-07 09:14 libsbml.a
> -rwxr-xr-x 1 root root 6594823 2012-05-07 09:14 libsbmlj.so
>
>
> Any suggestion here would be helpful.
>
> Thanks!
> ~Ayesha
> ____________________________________________________________
> To manage your sbml-interoperability list subscription, visit
> https://utils.its.caltech.edu/mailman/listinfo/sbml-interoperability
>
> For a web interface to the sbml-interoperability mailing list, visit
> http://sbml.org/Forums/
>
> For questions or feedback about the sbml-interoperability list,
> contact sbml-team@caltech.edu

____________________________________________________________
To manage your sbml-interoperability list subscription, visit
https://utils.its.caltech.edu/mailman/listinfo/sbml-interoperability

For a web interface to the sbml-interoperability mailing list, visit
http://sbml.org/Forums/

For questions or feedback about the sbml-interoperability list,
contact sbml-team@caltech.edu

      

SubjectPosterDate
Read Message   Problem in installing MATLAB bindings ayesha04 May '12 13:58
Read Message   Re: Problem in installing MATLAB bindings fbergman06 May '12 22:53
Read Message   Re: Problem in installing MATLAB bindings ayesha07 May '12 06:15
Read Message   Re: Problem in installing MATLAB bindings  fbergman07 May '12 10:08
Read Message   Re: Problem in installing MATLAB bindings ayesha07 May '12 10:01
Read Message   Re: Problem in installing MATLAB bindings fbergman07 May '12 11:34
Read Message   Re: Problem in installing MATLAB bindings ayesha07 May '12 15:28
Read Message   Re: Problem in installing MATLAB bindings Sagar22 Jun '12 06:22
Previous Topic:libsbml-5.5.0 & python 3+
Next Topic:addendum to installing libsbml with alternative python binding
Go to forum:
-=] Back to Top [=-

Powered by FUDforum. (Copyright Advanced Internet Designs Inc.)

Please use our issue tracking system for any questions or suggestions about this website.