Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install problems #193

Closed
dicook opened this issue Aug 27, 2019 · 4 comments
Closed

install problems #193

dicook opened this issue Aug 27, 2019 · 4 comments

Comments

@dicook
Copy link

dicook commented Aug 27, 2019

Seems that a fortran library is needed for MacOS

install.packages("fable", repos = "https://tidyverts.org/")
trying URL 'https://tidyverts.org/bin/macosx/el-capitan/contrib/3.6/fable_0.1.0.tgz'
Content type 'application/octet-stream' length 636212 bytes (621 KB)
==================================================
downloaded 621 KB

library(fable)
Loading required package: fabletools
Error: package or namespace load failed for ‘fable’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/fable/libs/fable.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/fable/libs/fable.so, 6): Library not loaded: /usr/local/lib/libgfortran.2.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.6/Resources/library/fable/libs/fable.so
Reason: image not found

@mitchelloharawild
Copy link
Member

Can you try to install from GitHub again? I've made some changes which may fix this issue.

remotes::install_github("tidyverts/fable")

@csnikitin
Copy link

csnikitin commented Sep 4, 2019

I also have problems with installation.

install.packages("fable", repos = "https://tidyverts.org/")

ERROR: dependencies ‘fabletools’, ‘RcppArmadillo’ are not available for package ‘fable’

After installing the above two packages, I get

ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0'
ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [fable.so] Error 1
ERROR: compilation failed for package ‘fable’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/fable’
Warning in install.packages :
installation of package ‘fable’ had non-zero exit status

@csnikitin
Copy link

Solved the issue by following this article. Had to download gfortran 8.2 from here and change the entry in Makevars accordingly (mine was FLIBS=-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm).

I also used remotes::install_github("robjhyndman/fpp3-package") to install everything at once.

@mitchelloharawild
Copy link
Member

fable is now available on CRAN 🎉
Hopefully this resolves all installation issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants