[R-SIG-Mac] LogicReg package problems

BEES INC bees.inc at gmail.com
Mon Jan 16 08:57:45 CET 2012


Hey there

I am having a bit of trouble getting this working, I had to do a bit
of fiddling with makefiles to get it to find the right gfortran, but
it builds & links without error, however the install gives the
following error:

Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object
'/Library/Frameworks/R.framework/Versions/2.14/Resources/library/LogicReg/libs/i386/LogicReg.so':
  dlopen(/Library/Frameworks/R.framework/Versions/2.14/Resources/library/LogicReg/libs/i386/LogicReg.so,
6): no suitable image found.  Did find:
	/Library/Frameworks/R.framework/Versions/2.14/Resources/library/LogicReg/libs/i386/LogicReg.so:
out of address space

Full install is as follows:

$ R CMD INSTALL --no-multiarch LogicReg_1.4.11.tar.gz
* installing to library
‘/Library/Frameworks/R.framework/Versions/2.14/Resources/library’
* installing *source* package ‘LogicReg’ ...
** package ‘LogicReg’ successfully unpacked and MD5 sums checked
** Creating default NAMESPACE file
** libs
*** arch - i386
gfortran   -fPIC  -g -O2 -c My_own_scoring.f -o My_own_scoring.o
gfortran   -fPIC  -g -O2 -c external.f -o external.o
gfortran   -fPIC  -g -O2 -c slogic.f -o slogic.o
gcc-4.2 -arch i386 -std=gnu99
-I/Library/Frameworks/R.framework/Resources/include
-I/Library/Frameworks/R.framework/Resources/include/i386
-I/usr/local/include    -fPIC  -g -O2 -c swrite.c -o swrite.o
gcc-4.2 -arch i386 -std=gnu99 -dynamiclib
-Wl,-headerpad_max_install_names -single_module -multiply_defined
suppress -L/usr/local/lib
-L/usr/local/gfortran/lib/gcc/i686-apple-darwin9/4.6.2 -o LogicReg.so
My_own_scoring.o external.o slogic.o swrite.o -lgfortran
-F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework
-Wl,CoreFoundation
installing to /Library/Frameworks/R.framework/Versions/2.14/Resources/library/LogicReg/libs/i386
** R
** data
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object
'/Library/Frameworks/R.framework/Versions/2.14/Resources/library/LogicReg/libs/i386/LogicReg.so':
  dlopen(/Library/Frameworks/R.framework/Versions/2.14/Resources/library/LogicReg/libs/i386/LogicReg.so,
6): no suitable image found.  Did find:
	/Library/Frameworks/R.framework/Versions/2.14/Resources/library/LogicReg/libs/i386/LogicReg.so:
out of address space
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Library/Frameworks/R.framework/Versions/2.14/Resources/library/LogicReg’
$

Any ideas?

Thanks



More information about the R-SIG-Mac mailing list