[R] shared libraries on FreeBSD 4.*

Kurt Hornik Kurt.Hornik at ci.tuwien.ac.at
Wed Oct 31 20:02:27 CET 2001


>>>>> Prof Brian Ripley writes:

> On Wed, 31 Oct 2001, loren mccarter wrote:
>> I've used R for a couple of years on FreeBSD with few problems. Recently,
>> a couple of the contributed packages seem to have difficulty finding
>> symbols in the shared libraries. Currently, I'm running R 1.3.1 on FreeBSD
>> 4.4. I've tried setting LD_LIBRARY_PATH to /usr/local/lib
>> and some other things. The packages I've had trouble with are:
>> 
>> Matrix 0.3.15
>> RODBC 0.8.3
>> RSPython 0.3
>> 
>> Matrix could not find my BLAS library:
>> 
>> checking for dgemm_ in -lcomplib.sgimath... no
>> checking for zherk in -lblas... no
>> checking for dgemm_ in -lblas... no
>> could not find your BLAS library
>> ERROR: Configuration failed for package `Matrix'
>> 
>> I solved the problem with Matrix by adding -L/usr/local/lib to the 'FLIBS'
>> variable in $RHOME/etc/Makeconf. Then, it found the library and installed
>> just fine.

>> RODBC gives me the following error:
>> 
>> Installing source package `RODBC' ...
>> creating cache ./config.cache
>> checking for library containing SQLTables... no
>> configure: error: no ODBC driver manager found
>> ERROR: Configuration failed for package `RODBC'
>> 
>> I have unixODBC and libiodbc installed in /usr/local/lib and "nm
>> -g" returns the symbol SQLTables in libiodbc.so, libodbc.so,
>> libodbcpsql.so, libpsqlodbc.so. -L/usr/local/lib is in the FLIBS
>> statement so that is not the problem.

> I think it is. FLIBS refers to Fortran, and this is looking for C
> libraries.  (Also, the configure script for RODBC is not looking for
> FLIBS in $RHOME/etc/Makeconf.)  I think you need to set LIBS to
> (not FLIBS) to -L/usr/local/lib -R/usr/local/lib (or whatever the
> FreeBSD equivalent is) before running these configure scripts.

> That said, on all my platforms having LD_LIBRARY_PATH set correctly
> works.

In theory, all the stuff in /usr/local/lib should be picked up
automatically: configure adds -L/usr/local/lib to LIBS and everything in
LIBS to the R LD_LIBRARY_PATH (or platform equivalent).

If you find that configure does not work as expected pls let me know.

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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