stefano-meschiari / Systemic2

Systemic is a C library for modeling exoplanetary radial velocities, with an R binding and a full GUI IDE.
http://www.stefanom.org/?systemic
GNU General Public License v3.0
54 stars 17 forks source link

Libsystemic shared library issue #19

Open IreneJi0407 opened 8 years ago

IreneJi0407 commented 8 years ago

Error in value[3L] :


Systemic could not find the libsystemic shared library (a file that is usually called "libsystemic.so" or "libsystemic.dylib").

A few possible solutions:

export LD_LIBRARY_PATH="/path/to/systemic:$LD_LIBRARY_PATH"

from your shell, before running R.

@@libnotfound@@ Calls: source ... tryCatch -> tryCatchList -> tryCatchOne -> Execution halted

Hi, I'm having the above issues when booting up systemic2. I can find the "libsystemic.dylib" file in my Systemic folder, but still getting this issue. Can anybody help me please? Thank you very much! Irene

R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree" Mac OS X version 10.10.5

stefano-meschiari commented 8 years ago

Irene,

Could you try this version and let me know if it boots up for you?

http://www.stefanom.org/d/systemic2/systemic_mac_2.2000.tar.gz

stefano-meschiari commented 8 years ago

Pasted the wrong link in my previous comment, use http://www.stefanom.org/d/systemic2/systemic_mac_2.2000.tar.gz

JohnMCollins commented 8 years ago

I'm getting exactly the same problem on Scientific Linux 7. The libsystemic.so file is in the same directory but it's not picking it up.

JohnMCollins commented 8 years ago

Tried this in Fedura as well, problem won't go away. Even tried copying the libsystemic.so into /lib64 but it still says it can't find it.

JohnMCollins commented 8 years ago

Tried it on a 32 bit VM, still can't find libsystemic.so.

mdwarfgeek commented 8 years ago

I just had a similar issue on linux. I ran strace and verified the library was in fact being loaded... after hacking the rdyncall package to print out what dlerror says the problem was easily tracked down - gd.o isn't linked in the Makefile.linux. Here's a quick patch borrowing from the Makefile.osx patch-libsystemic-error.diff.txt that fixes the problem for me.

stefano-meschiari commented 8 years ago

Sorry everyone for dropping the ball on this, just started a new job. @mdwarfgeek, I'll test your patch and push it as soon as I get a chance. I think the bug was not evident on Mac OS X due to dynamic linking differences.

ajtribick commented 7 years ago

I verify that the patch from @mdwarfgeek resolves this issue for me (Kubuntu 16.10, R 3.3.1)

mdwarfgeek commented 7 years ago

Should be able to apply using the patch utility, e.g. patch -p0 < patch-libsystemic-error.diff.txt while changed into the same directory as the makefiles.

watersnake1 commented 7 years ago

I tried applying the patch to a freshly downloaded, un compiled version of Systemic, then I tried compiling, only to see that the same error mentioned above (not finding libsystemic.so) persists. Am I doing something wrong here? Ubuntu 16.04 LTS

pabloquark commented 6 years ago

The same problem... No solution!!!

GuillaumeCraig commented 6 years ago

Hi Stefano,

I'm having the same problem on Mac OS X. I tried pretty much everything I could, but could not get past that problem. Do you think you could make a patch equivalent to that of @mdwarfgeek for Mac users? I would really love to use Systemic 2 in my graduate exoplanet course I'm taking this semester!

Guillaume

mdwarfgeek commented 6 years ago

In theory, Mac OS X should be okay without any need to patch, the patch was to correct a missing entry in the Linux Makefile that was already present in the OS X Makefile. I haven't tested this, however, I don't have a Mac running any kind of up to date OS.

KeavinMoore commented 6 years ago

Hi Stefano,

I'm having the same problem as well on Mac OS X. There doesn't seem to be any workaround I can find to get Systemic to work with this error, even though I can see the libsystemic.dylib files in both the Systemic and Systemic/R folders. Is there some way to manually assign where these libraries are when Systemic is looking for them?

Thanks,

Keavin