Skip to content

Errors loading gmp library

3 messages · Oscar Moreno, Simon Urbanek, Terry A. Cox

#
I am getting errors loading gmp library.

System: PowerPC G5, DP 1.8 GHz, 1.5 GB memory
OS: Mac OS 10.4.7 (latest update from yesterday.)
R.Version output:
$platform
[1] "powerpc-apple-darwin8.6.0"
$arch
[1] "powerpc"
$os
[1] "darwin8.6.0"
$system
[1] "powerpc, darwin8.6.0"
$status
[1] ""
$major
[1] "2"
$minor
[1] "3.1"
$year
[1] "2006"
$month
[1] "06"
$day
[1] "01"
$`svn rev`
[1] "38247"
$language
[1] "R"
$version.string
[1] "Version 2.3.1 (2006-06-01)"

Error after library(gmp):

Error in dyn.load(x, as.logical(local), as.logical(now)) :
	unable to load shared library '/Users/oscar/Library/R/library/gmp/ 
libs/ppc/gmp.so':
   dlopen(/Users/oscar/Library/R/library/gmp/libs/ppc/gmp.so, 6):  
Symbol not found: ___gmpz_import
   Referenced from: /Users/oscar/Library/R/library/gmp/libs/ppc/gmp.so
   Expected in: flat namespace
Error in library(gmp) : .First.lib failed for 'gmp'

I am using R.gui from:
R-GUI-3266-2.3-Deployment.dmg
from http://r.research.att.com/

Pleas advise on what to do?  TIA

Oscar
#
Oscar and Terry,

apparently this is the second report on gmp, but unfortunately I  
cannot reproduce it. I have tried on multiple machines, but it works  
for me.

Are you using the CRAN binary of R? Which version of gmp are you  
using? Where did you install it from?

Also in case this is a problem with a mirror, please try installing  
the package like this:
install.packages("gmp",,"http://R.research.att.com/")
and let me know whether it makes a difference. Additional question:  
did you install Xcode? (You don't need to, just checking..).

Thanks,
Simon
On Jul 2, 2006, at 3:31 PM, Oscar Moreno wrote:

            
#
gmp loads when installed from http://R.research.att.com; however,  
running some of the functions (nextprime(), factorize()) in the  
library crashes R, something that has never happened to me when using  
R before (5+ years of experience on Mac, Windows, and Linux). The  
function isprime() works OK. I have not tried anything else in the  
library. (I have installed Xcode 2.2.1, and as I noted before I  
installed the most recent GNU MP library).

TAC