sbmlteam / libsbml

LibSBML is a native library for reading, writing and manipulating files and data streams containing the Systems Biology Markup Language (SBML). It offers language bindings for C, C++, C#, Java, JavaScript, MATLAB, Perl, PHP, Python, R and Ruby.
https://sbml.org/software/libsbml
Other
41 stars 29 forks source link

issues about "--enable-fbc --enable-groups" in Mac M1 #337

Closed yxr123321 closed 1 year ago

yxr123321 commented 1 year ago

How to use the configure options "--enable-fbc --enable-groups? double click the configure file? or change the configure file

luciansmith commented 1 year ago

Those are command-line options passed to cmake (or, potentially, options you select when you run 'cmake-guil').

I assume you're trying to build libsbml? What instructions are you looking at?

yxr123321 commented 1 year ago

Yes, I am looking at this docs(https://github.com/cran/sybilSBML/blob/master/inst/INSTALL)

luciansmith commented 1 year ago

Got it! OK, the libsbml installation instructions are at

https://synonym.caltech.edu/software/libsbml/5.18.0/docs/formatted/python-api/libsbml-installation.html

As you follow those instructions, just make sure that you turn on 'enable-fbc' and 'enable-groups' as you go.

yxr123321 commented 1 year ago

OK. Thank you very much! I successfully installed the libSBML in R, because I can successfully library(libSBML). But currently my question is that I cannot install sybilSBML when using the command of R CMD INSTALL sybilSBML_3.1.3.tar.gz. Here is the error. Would you please help me again? 15 warnings and 2 errors generated. make: *** [sybilSBML.o] Error 1 ERROR: compilation failed for package ‘sybilSBML’

yxr123321 commented 1 year ago

This is the details.

/usr/local/include/sbml/packages/fbc/sbml/FluxObjective.h:1177:1: error: unknown type name 'FbcVariableType_t' FbcVariableType_t ^ /usr/local/include/sbml/packages/fbc/sbml/FluxObjective.h:1401:31: error: unknown type name 'FbcVariableType_t'

luciansmith commented 1 year ago

It looks like you are not the only person having installation problems with sybilSBML:

https://cran.r-project.org/web/packages/sybilSBML/index.html

In fact, development of sybil itself seems to have stopped, to the point where it no longer works:

https://cran.r-project.org/web/packages/sybil/index.html

As such, it looks to me like you can either just use an older computer (or Docker image) with a working version of sybil and sybilSBML, or switch to just using libsbml directly, or find a different flux balance analysis package in R that works with SBML. Sorry about that! It's possible that @bgoli has a suggestion here? I don't know what people who used to use sybil are switching to.

yxr123321 commented 1 year ago

Sorry to disturb. I wonder know how to load the model data with SBML format? It seems like only TSV format is supported to load in SYBIL package

skeating commented 1 year ago

we are not the editors of the SYBIL package and can't really help with this any more than Lucian has already done