timothyfrasier / related

8 stars 7 forks source link

Related package does not load in R - solved? #4

Open jwelklin opened 4 years ago

jwelklin commented 4 years ago

Hi Tim,

I saw in a different thread that a couple users had trouble installing related for R. I just tried installing related for R 3.5.2 and also ran into a problem when loading the package. The installation worked fine, but then when I called library(related) I got this error:

Error: package or namespace load failed for ‘related’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/Library/Frameworks/R.framework/Versions/3.5/Resources/library/related/libs/related.so': dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/related/libs/related.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/3.1/Resources/lib/libR.dylib Referenced from: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/related/libs/related.so Reason: image not found

It looks like related.so is looking for R version 3.1 instead of 3.5. I never had installed version 3.1, but I went ahead and made the 3.1/Resources/lib/ folders and copied the libR.dylib file from version 3.5 into there and then it worked.

Hope this can help others!

Joe

timothyfrasier commented 4 years ago

Hi Joe:

Thanks for this - glad you got it working!

-Tim


Timothy R. Frasier Coordinator - Forensic Sciences Program Associate Professor - Department of Biology Saint Mary's University 923 Robie Street Halifax, NS B3H 3C3, Canada Email: timothy.frasier@smu.ca Tel: (902) 491-6382 www.frasierlab.ca http://frasierlab.ca/

On May 12, 2020, at 10:55 AM, Joe Welklin notifications@github.com wrote:

CAUTION: This email is from an external sender. Do not click on links or open attachments unless you trust the sender. Please forward suspected phishing emails to reportphishing@smu.ca

Hi Tim,

I saw in a different thread that a couple users had trouble installing related for R. I just tried installing related for R 3.5.2 and also ran into a problem when loading the package. The installation worked fine, but then when I called library(related) I got this error:

Error: package or namespace load failed for ‘related’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/Library/Frameworks/R.framework/Versions/3.5/Resources/library/related/libs/related.so': dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/related/libs/related.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/3.1/Resources/lib/libR.dylib Referenced from: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/related/libs/related.so Reason: image not found

It looks like related.so is looking for R version 3.1 instead of 3.5. I never had installed version 3.1, but I went ahead and made the 3.1/Resources/lib/ folders and copied the libR.dylib file from version 3.5 into there and then it worked.

Hope this can help others!

Joe

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/timothyfrasier/related/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA3NYWLKOQFD47TX3FJ7NVLRRFIMJANCNFSM4M63D6OA.

sarah-nichols commented 4 years ago

Hi Tim,

I was able to install the related package in the same way on my personal computer. However, as the analysis can take a long time to run on my computer I was hoping to be able to run it on my group's server. I don't want to mess around with renaming working directories on the server though and so was wondering if this problem is going to be resolved in the future or whether there is another fix I could use?

Many thanks,

Sarah

timothyfrasier commented 4 years ago

Hi Sarah:

I’m glad you were able to get it running on a server. I’m afraid that I will not be able to resolve this in the near future.

Sincerely, Tim Frasier


Timothy R. Frasier Coordinator - Forensic Sciences Program Associate Professor - Department of Biology Saint Mary's University 923 Robie Street Halifax, NS B3H 3C3, Canada Email: timothy.frasier@smu.ca Tel: (902) 491-6382 www.frasierlab.ca http://frasierlab.ca/

On Jul 13, 2020, at 6:34 AM, sarah-nichols notifications@github.com wrote:

CAUTION: This email is from an external sender. Do not click on links or open attachments unless you trust the sender. Please forward suspected phishing emails to reportphishing@smu.ca

Hi Tim,

I was able to install the related package in the same way on my personal computer. However, as the analysis can take a long time to run on my computer I was hoping to be able to run it on my group's server. I don't want to mess around with renaming working directories on the server though and so was wondering if this problem is going to be resolved in the future or whether there is another fix I could use?

Many thanks,

Sarah

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/timothyfrasier/related/issues/4#issuecomment-657444352, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA3NYWO77UZ6ZE4H5CCXG33R3LIK3ANCNFSM4M63D6OA.