Hans-Peter Suter
2008-Sep-22 19:18 UTC
[R] Building binary package fails because of missing dependent package
On an (Intel Leopard) Mac I try to build a package (mxFinance) which depends on another package (mxGraphics). The dependendy is 1) a 'Depends:' in DESCRIPTION and 2) an import in NAMESPACE. - The build fails if the dependent package (mxGraphics) is not installed in the R.framework Do I need to have installed all packages which are required by packages to be built binary (source builds are ok)? Cheers, Hans-Peter ----------------------- Macintosh:mxFinance chappi$ R CMD BUILD --binary mxFinance * checking for file 'mxFinance/DESCRIPTION' ... OK * preparing 'mxFinance': * checking DESCRIPTION meta-information ... OK * cleaning src * removing junk files * checking for LF line-endings in source and make files * checking for empty or unneeded directories * building binary distribution * Installing *source* package 'mxFinance' ... ** libs ** arch - i386 gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/i386 -msse3 -fPIC -g -O2 -march=nocona -c init.c -o init.o gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names -mmacosx-version-min=10.4 -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib -o mxFinance.so init.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation ld: warning, duplicate dylib /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.1.dylib ** arch - ppc gcc -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/ppc -I/usr/local/include -fPIC -g -O2 -c init.c -o init.o gcc -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names -mmacosx-version-min=10.4 -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib -o mxFinance.so init.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation ld: warning, duplicate dylib /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.1.dylib ** R ** data ** preparing package for lazy loading Loading required package: mxGraphics Warning in library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc) : there is no package called 'mxGraphics' Error: package 'mxGraphics' could not be loaded Execution halted ERROR: lazy loading failed for package 'mxFinance' ** Removing '/var/folders/xr/xr01D7JAEtGe4S5uaDQSg++++TI/-Tmp-/Rinst881133514/mxFinance' ERROR * installation failed
Uwe Ligges
2008-Sep-23 08:03 UTC
[R] Building binary package fails because of missing dependent package
Hans-Peter Suter wrote:> On an (Intel Leopard) Mac I try to build a package (mxFinance) which > depends on another package (mxGraphics). The dependendy is 1) a > 'Depends:' in DESCRIPTION and 2) an import in NAMESPACE. > > - The build fails if the dependent package (mxGraphics) is not > installed in the R.framework > > Do I need to have installed all packages which are required by > packages to be built binary (source builds are ok)?You *may* have to install them depending on the strength of the dependency - such as in the case you reported below. Uwe Ligges> Cheers, > Hans-Peter > > > ----------------------- > Macintosh:mxFinance chappi$ R CMD BUILD --binary mxFinance > * checking for file 'mxFinance/DESCRIPTION' ... OK > * preparing 'mxFinance': > * checking DESCRIPTION meta-information ... OK > * cleaning src > * removing junk files > * checking for LF line-endings in source and make files > * checking for empty or unneeded directories > * building binary distribution > * Installing *source* package 'mxFinance' ... > ** libs > ** arch - i386 > gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk > -mmacosx-version-min=10.4 -std=gnu99 > -I/Library/Frameworks/R.framework/Resources/include > -I/Library/Frameworks/R.framework/Resources/include/i386 -msse3 > -fPIC -g -O2 -march=nocona -c init.c -o init.o > gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk > -mmacosx-version-min=10.4 -std=gnu99 -dynamiclib > -Wl,-headerpad_max_install_names -mmacosx-version-min=10.4 -undefined > dynamic_lookup -single_module -multiply_defined suppress > -L/usr/local/lib -o mxFinance.so init.o > -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework > -Wl,CoreFoundation > ld: warning, duplicate dylib > /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.1.dylib > ** arch - ppc > gcc -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk > -mmacosx-version-min=10.4 -std=gnu99 > -I/Library/Frameworks/R.framework/Resources/include > -I/Library/Frameworks/R.framework/Resources/include/ppc > -I/usr/local/include -fPIC -g -O2 -c init.c -o init.o > gcc -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk > -mmacosx-version-min=10.4 -std=gnu99 -dynamiclib > -Wl,-headerpad_max_install_names -mmacosx-version-min=10.4 -undefined > dynamic_lookup -single_module -multiply_defined suppress > -L/usr/local/lib -o mxFinance.so init.o > -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework > -Wl,CoreFoundation > ld: warning, duplicate dylib > /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.1.dylib > ** R > ** data > ** preparing package for lazy loading > Loading required package: mxGraphics > Warning in library(pkg, character.only = TRUE, logical.return = TRUE, > lib.loc = lib.loc) : > there is no package called 'mxGraphics' > Error: package 'mxGraphics' could not be loaded > Execution halted > ERROR: lazy loading failed for package 'mxFinance' > ** Removing '/var/folders/xr/xr01D7JAEtGe4S5uaDQSg++++TI/-Tmp-/Rinst881133514/mxFinance' > ERROR > * installation failed > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.