tokami / TropFishR

Tropical Fisheries Analysis with R
24 stars 19 forks source link

Bug in Z_CPUE #37

Closed tokami closed 3 years ago

tokami commented 3 years ago

noted by Hadi:

havuviet commented 3 years ago

Dear All,

When I install package “TropFishR”, the errors are as below, could anyone help me to solve it. Many thanks

Vu Viet Ha —

install.packages("TropFishR") trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.1/TropFishR_1.6.2.tgz' Content type 'application/x-gzip' length 1751795 bytes (1.7 MB)

downloaded 1.7 MB

The downloaded binary packages are in /var/folders/8s/c8rnm4qx40v5qd80vgzpml5c0000gp/T//RtmpJmwWcK/downloaded_packages

library(TropFishR) Error: package or namespace load failed for ‘TropFishR’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/Library/Frameworks/R.framework/Versions/4.1/Resources/library/gmm/libs/gmm.so': dlopen(/Library/Frameworks/R.framework/Versions/4.1/Resources/library/gmm/libs/gmm.so, 6): Library not loaded: /usr/local/gfortran/lib/libgomp.1.dylib Referenced from: /Library/Frameworks/R.framework/Versions/4.1/Resources/library/gmm/libs/gmm.so Reason: image not found

On 31 Jul 2021, at 17:46, Tobias Mildenberger @.***> wrote:

noted by Hadi:

remove CPUE[4] <- sum(CPUE[4:length(CPUE)]) in Heincke and Chapman method replace sum_CPUE.H.n <- sum(CPUE[2:length(CPUE)]) with sum_CPUE.H.n <- sum(CPUE[2:length(CPUE)] * 1:(length(CPUE)-1)) — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tokami/TropFishR/issues/37, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARD7WSFQUUZWUPBGMUY7DXTT2PH6XANCNFSM5BJ44A4A.

tokami commented 3 years ago

Dear @havuviet,

I assume you have a macintosh? Please install Xcode and try again!

Hope this helps, Tobias

havuviet commented 3 years ago

Hi,

I have installed Xcod then run Rstudio, however the errors are still not solved. Please continous to advice me to solve these errors, Many thanks,

On 31 Jul 2021, at 22:33, Tobias Mildenberger @.***> wrote:

Dear @havuviet https://github.com/havuviet,

I assume you have a macintosh? Please install Xcode and try again!

Hope this helps, Tobias

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tokami/TropFishR/issues/37#issuecomment-890365359, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARD7WSA3OFS7HIXJL6O7ER3T2QJWLANCNFSM5BJ44A4A.

tokami commented 3 years ago

Do you have these developer tools installed? https://cran.r-project.org/bin/macosx/tools/

If you have Xcode and all of these tools installed and still get the same messages, then you might need to manually create a link, see e.g. https://stackoverflow.com/questions/57207357/dyld-library-not-loaded-usr-local-gfortran-lib-libgfortran-3-dylib-reason-im