From araven at stanford.edu Mon Feb 24 06:40:32 2014 From: araven at stanford.edu (Alison Ravenscraft) Date: Sun, 23 Feb 2014 21:40:32 -0800 (PST) Subject: [Sedar-commits] how to install packfor? Message-ID: <970024421.10307740.1393220432088.JavaMail.zimbra@stanford.edu> Hi all, I am trying to install the package "packfor," but can't get it to load. I have tried: install.packages("packfor", repos="http://r-forge.r-project.org") install.packages('~/Downloads/packfor_0.0-8.tar', repos = NULL, type="source") Neither command works. The second command generates a long string of errors and warnings, which I have pasted at the end of this message. Could someone please advise me how to get this package installed? I am on a Mac OS 10.9.1 and I'm using the most current version of R (3.0.2). Many apologies if this question has been asked before, Alison > install.packages('~/Downloads/packfor_0.0-8.tar', repos = NULL, type="source") * installing *source* package ?packfor? ... ** libs clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -fPIC -mtune=core2 -g -O2 -c forward.c -o forward.o forward.c:411:3: warning: implicit declaration of function 'dgesvd_' is invalid in C99 [-Wimplicit-function-declaration] F77_CALL(dgesvd)(&jobu, &jobvt,&size, &size,A, &size, D,U,&size,V,&size,&work1, &lwork,&error); ^ /Library/Frameworks/R.framework/Resources/include/R_ext/RS.h:82:22: note: expanded from macro 'F77_CALL' # define F77_CALL(x) x ## _ ^ :205:1: note: expanded from here dgesvd_ ^ forward.c:421:43: warning: data argument not used by format string [-Wformat-extra-args] fprintf(stderr, "error in dinvG: ", error); ~~~~~~~~~~~~~~~~~~ ^ /Library/Frameworks/R.framework/Resources/include/R_ext/Error.h:51:15: note: expanded from macro 'error' #define error Rf_error ^ 2 warnings generated. clang -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib -L/usr/local/lib -o packfor.so forward.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/usr/local/lib/gcc/i686-apple-darwin8/4.2.3/x86_64 -L/usr/local/lib/x86_64 -L/usr/local/lib/gcc/i686-apple-darwin8/4.2.3 -lgfortran -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation ld: warning: directory not found for option '-L/usr/local/lib' ld: warning: Warning message: In install.packages("~/Downloads/packfor_0.0-8.tar", repos = NULL, : installation of package ?/Users/alison/Downloads/packfor_0.0-8.tar? had non-zero exit status directory not found for option '-L/usr/local/lib' ld: warning: directory not found for option '-L/usr/local/lib/gcc/i686-apple-darwin8/4.2.3/x86_64' ld: warning: directory not found for option '-L/usr/local/lib/x86_64' ld: warning: directory not found for option '-L/usr/local/lib/gcc/i686-apple-darwin8/4.2.3' ld: library not found for -lgfortran clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [packfor.so] Error 1 ERROR: compilation failed for package ?packfor? * removing ?/Library/Frameworks/R.framework/Versions/3.0/Resources/library/packfor?