[R-SIG-Mac] Failed to install R package in Mac

Christofer Bogaso bog@@o@chr|@to|er @end|ng |rom gm@||@com
Thu Aug 18 12:20:24 CEST 2022


Hi,

I was to trying to install a package called tseries on my Mac desktop
but got below error message

Warning: Unused variable 'i' declared at (1) [-Wunused-variable]

dsumsl.f:2841:36:


 2841 |       LOGICAL FUNCTION DSTOPX(IDUMMY)

      |                                    1

Warning: Unused dummy argument 'idummy' at (1) [-Wunused-dummy-argument]

clang -mmacosx-version-min=10.13
-I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG
-I/usr/local/include   -fPIC  -Wall -g -O2  -c formats.c -o formats.o

clang -mmacosx-version-min=10.13
-I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG
-I/usr/local/include   -fPIC  -Wall -g -O2  -c garch.c -o garch.o

clang -mmacosx-version-min=10.13
-I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG
-I/usr/local/include   -fPIC  -Wall -g -O2  -c init.c -o init.o

clang -mmacosx-version-min=10.13
-I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG
-I/usr/local/include   -fPIC  -Wall -g -O2  -c ppsum.c -o ppsum.o

clang -mmacosx-version-min=10.13
-I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG
-I/usr/local/include   -fPIC  -Wall -g -O2  -c tsutils.c -o tsutils.o

clang -mmacosx-version-min=10.13 -dynamiclib
-Wl,-headerpad_max_install_names -undefined dynamic_lookup
-single_module -multiply_defined suppress
-L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o
tseries.so arma.o bdstest.o boot.o cfuncs.o dsumsl.o formats.o garch.o
init.o ppsum.o tsutils.o
-L/Library/Frameworks/R.framework/Resources/lib -lRblas
-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0
-L/usr/local/gfortran/lib -lgfortran -lquadmath -lm
-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0
-L/usr/local/gfortran/lib -lgfortran -lquadmath -lm
-F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework
-Wl,CoreFoundation

ld: warning: directory not found for option
'-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0'

ld: warning: directory not found for option '-L/usr/local/gfortran/lib'

ld: warning: directory not found for option
'-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.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: *** [tseries.so] Error 1

ERROR: compilation failed for package ‘tseries’

* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/tseries’


The downloaded source packages are in

‘/private/var/folders/kk/prk1_r356_bfx33vn4cnmls00000gp/T/Rtmp29ceBu/downloaded_packages’

Warning message:

In install.packages("tseries") :

  installation of package ‘tseries’ had non-zero exit status

Could you please help to resolve this



More information about the R-SIG-Mac mailing list