[R] dyn.load problem under linux

Domenico Vistocco vistocco at unicas.it
Fri Feb 9 21:31:16 CET 2007


Dear HelpeRs,
I am trying to use an thirdy-part library under Linux  (the library is 
developed
both for Windows and for Linux).

I have tried different solutions (with the library developer) but we are 
not able to
solve the problem. So I try to ask for your help in order to escape from 
the full stop
where we are at the moment.

The problem looks to depend on the dyn.load function (technical details 
are below).

Thanks a lot for your work (it is an invaluable resource).
Best,
domenico

The library is called POP.R. I installed it but I have the following 
error when
I try to load it:
---------------------------------------------------------------------------------------------------------------------------------------------
 > library(POP.R)
Error in dyn.load(x, as.logical(local), as.logical(now)) :
        unable to load shared library 
'/usr/lib/R/library/POP.R/libs/ezlic20.so':
  libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file 
or directory
Error in library(POP.R) : .First.lib failed for 'POP.R'
---------------------------------------------------------------------------------------------------------------------------------------------

Nevertheless the file exists:
---------------------------------------------------------------------------------------------------------------------------------------------
 > file.exists("/usr/lib/R/library/POP.R/libs/ezlic20.so")
[1] TRUE
---------------------------------------------------------------------------------------------------------------------------------------------

I tried also directly using the dyn.load function on the command line
(without and with the local flag):
---------------------------------------------------------------------------------------------------------------------------------------------
 > dyn.load("/usr/lib/R/library/POP.R/libs/ezlic20.so",local=FALSE)
Error in dyn.load(x, as.logical(local), as.logical(now)) :
        unable to load shared library 
'/usr/lib/R/library/POP.R/libs/ezlic20.so':
  libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file 
or directory
 > dyn.load("/usr/lib/R/library/POP.R/libs/ezlic20.so",local=TRUE)
Error in dyn.load(x, as.logical(local), as.logical(now)) :
        unable to load shared library 
'/usr/lib/R/library/POP.R/libs/ezlic20.so':
  libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file 
or directory
---------------------------------------------------------------------------------------------------------------------------------------------

In the lib directory there is also another library, for which I have a 
different error
message using the dyn.load function (I have the same message using 
local=FALSE):
---------------------------------------------------------------------------------------------------------------------------------------------
 > dyn.load("/usr/lib/R/library/POP.R/libs/pop_BurSt.so")
Error in dyn.load(x, as.logical(local), as.logical(now)) :
        unable to load shared library 
'/usr/lib/R/library/POP.R/libs/pop_BurSt.so':
  /usr/lib/R/library/POP.R/libs/pop_BurSt.so: undefined symbol: 
getChainedKeyId
---------------------------------------------------------------------------------------------------------------------------------------------

My operating system is Ubuntu 6.10 -  Edgy.

Follow the answers to version and sessionInfo:
--------------------------------------------------------------------------------------------------
 > version
               _                          
platform       i486-pc-linux-gnu          
arch           i486                       
os             linux-gnu                  
system         i486, linux-gnu            
status                                    
major          2                          
minor          4.1                        
year           2006                       
month          12                         
day            18                         
svn rev        40228                      
language       R                          
version.string R version 2.4.1 (2006-12-18)

 > sessionInfo()
R version 2.4.1 (2006-12-18)
i486-pc-linux-gnu

locale:
LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C

attached base packages:
[1] "stats"     "graphics"  "grDevices" "utils"     "datasets"  "methods" 
[7] "base"    
--------------------------------------------------------------------------------------------------

Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com



More information about the R-help mailing list