[R] shared libraries on FreeBSD 4.*

loren mccarter lorenmc at socrates.berkeley.edu
Wed Oct 31 20:29:16 CET 2001


Thanks for your help. As was suggested by Prof Ripley, the problem appears
to be related to the environment variables for FLIB, LIBS and
LD_LIBRARY_PATH. I was able to solve the problem with RODBC by setting the
LIBS variable in the current shell immediately before the install (LIBS
was already set correctly in $RHOME/etc/Makeconf but RODBC must not
have been reading it). Below is a log that might be useful for
understanding the issue. It uses a modified version of the RODBC/configure
script that simply prints to screen the relevant environment variables
before AC_SEARCH_LIBS is invoked. I have yet to figure out what's
happening with RSPython, but that is probably more approporate for
omegahat-help if Prof Ripley's suggestion does not work. Thanks!

Loren


/* First showing that build does not work despite correct settings in  
 * LD_LIBRARY_PATH  
 * Note that LIBS='' despite correct settings in $RHOME/etc/Makeconf
 */

$ R INSTALL RODBC
Installing source package `RODBC' ...
LD_LIBRARY_PATH=/usr/local/lib/R/bin:/usr/local/lib:/usr/X11R6/lib:/usr/libexec/elf:/usr/libexec:/usr/lib
LIBS=
creating cache ./config.cache
checking for library containing SQLTables... no
configure: error: no ODBC driver manager found
ERROR: Configuration failed for package `RODBC'


/* Now, I set the LIBS variable in the current shell and all goes well.
 */

$ setenv LIBS -L/usr/local/lib

$ R INSTALL RODBC
Installing source package `RODBC' ...
LD_LIBRARY_PATH=/usr/local/lib/R/bin:/usr/local/lib:/usr/X11R6/lib:/usr/libexec/elf:/usr/libexec:/usr/lib
LIBS=-L/usr/local/lib
loading cache ./config.cache
checking for library containing SQLTables... -lodbc
updating cache ./config.cache
creating ./config.status
creating src/Makevars
 libs
gcc -I/usr/local/lib/R/include  -I/usr/local/include -mieee-fp  -fPIC  -g
-O2 -c RODBC.c -o RODBC.o
gcc -shared  -o RODBC.so RODBC.o -L/usr/local/lib -lodbc -L/usr/local/lib 
 R
 help
 >>> Building/Updating help pages for package `RODBC'
     Formats: text html latex example 
...


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list