Entering edit mode
7.4 years ago
roschlec
•
0
Hi!
I'm having some issues installing the package sybilSBML
in R to load metabolic models in *.sbml format. I've checked other threads but I can't seem to find the right way to solve my problem.
When I try to install the package, I get the following error:
Error: package or namespace load failed for ‘sybilSBML’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/sybilSBML/libs/sybilSBML.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/sybilSBML/libs/sybilSBML.so, 6): Library not loaded: libsbml.5.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/sybilSBML/libs/sybilSBML.so
Reason: image not found
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/sybilSBML’
Warning in install.packages :
installation of package ‘sybilSBML’ had non-zero exit status
I have already installed libSBML
. What I understand is that the path to the library is not correct? I've found that DYLD_LIBRARY_PATH
plays a role somehow. Also, I have no clue where this libsbml.5.dylib
is.
Please consider that I'm not a savvy in coding. I'm a regular -basic to intermediate- R user.
Thank you in advance!
How are you installing the package? What is path of your libSBML?
Are you following everything like https://cran.r-project.org/web/packages/sybilSBML/INSTALL
?
Hi, Besides trying on R, I've tried with the suggested option 1 from the terminal (btw, macOS sierra user here). The path I've been using is:
But in that directory is only the libSBML.so file, which is not a core file as far as I understand, based on http://sbml.org/Software/libSBML/5.15.0/docs//cpp-api/libsbml-installation.html#unix-universal (not in /usr/local/ either)
Thanks!
This is a bit of a shot in the dark so I'm hesitant to post it as an answer, but if you try this in the shell:
Add the below lines to it:
Exit and run:
Does that help at all?
You can combine assignment and export to one statement so:
export DYLD_LIBRARY_PATH=/path/to/libSBML
Hi! thanks for your reply. I tried setting the PATH but I still get the same error while installing sybilSBML.
On the other hand, I found the missing library libsbml.5.dylib but I still can't link it
Cheers! Rudolf