An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20091112/703190aa/attachment.pl>
package installation issues
11 messages · Steve Lianoglou, Michael Barnett, David Winsemius +1 more
Hi Michael,
On Nov 12, 2009, at 12:34 PM, Michael Barnett wrote:
Hi R Mac list - I'm a newcomer to R and recently installed the new 2.10 version. I had to uninstall it and go back to 2.9 because I couldn't run the igraph package, it gave me an error. Also, I found that I couldn't load the rrgobi package into the new version either and there's an error message on the CRAN package site for the Mac version of rggobi as well. I just wanted to report this error, I'm happy with 2.9 for now.
While I can't speak to using rrgobi, I definitely use igraph everyday, and I'm using R 2.10 Could you elaborate on the error you were getting when trying to "run" (load?) igraph? -steve -- Steve Lianoglou Graduate Student: Computational Systems Biology | Memorial Sloan-Kettering Cancer Center | Weill Medical College of Cornell University Contact Info: http://cbio.mskcc.org/~lianos/contact
I apologize for not being more precise. I'm pasting the printout I get
below:
*****
> install.packages("igraph")
trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.10/igraph_0.5.2-2.tgz'
Content type 'application/x-gzip' length 3312372 bytes (3.2 Mb)
opened URL
==================================================
downloaded 3.2 Mb
The downloaded packages are in
/var/folders/7J/7JpbFNySGACoH3teAShOLE+++TM/-Tmp-//RtmpXG1NQC/
downloaded_packages
> library(igraph)
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared library '/Library/Frameworks/R.framework/
Resources/library/igraph/libs/x86_64/igraph.so':
dlopen(/Library/Frameworks/R.framework/Resources/library/igraph/
libs/x86_64/igraph.so, 10): Symbol not found: ___gmpz_clear
Referenced from: /Library/Frameworks/R.framework/Resources/library/
igraph/libs/x86_64/igraph.so
Expected in: dynamic lookup
Error : .onLoad failed in 'loadNamespace' for 'igraph'
Error: package/namespace load failed for 'igraph'
******
What's different between my set-up and yours, Steve? I'm on a 13"
MacBook 2.4Ghz 4GB RAM running OS X 10.5.8
-Michael
On Nov 12, 2009, at 12:38 PM, Steve Lianoglou wrote:
Hi Michael, On Nov 12, 2009, at 12:34 PM, Michael Barnett wrote:
Hi R Mac list - I'm a newcomer to R and recently installed the new 2.10 version. I had to uninstall it and go back to 2.9 because I couldn't run the igraph package, it gave me an error. Also, I found that I couldn't load the rrgobi package into the new version either and there's an error message on the CRAN package site for the Mac version of rggobi as well. I just wanted to report this error, I'm happy with 2.9 for now.
While I can't speak to using rrgobi, I definitely use igraph everyday, and I'm using R 2.10 Could you elaborate on the error you were getting when trying to "run" (load?) igraph? -steve -- Steve Lianoglou Graduate Student: Computational Systems Biology | Memorial Sloan-Kettering Cancer Center | Weill Medical College of Cornell University Contact Info: http://cbio.mskcc.org/~lianos/contact
Heh ...
On Nov 12, 2009, at 12:45 PM, Michael Barnett wrote:
I apologize for not being more precise. I'm pasting the printout I get below: *****
install.packages("igraph")
trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/ contrib/2.10/igraph_0.5.2-2.tgz' Content type 'application/x-gzip' length 3312372 bytes (3.2 Mb) opened URL ================================================== downloaded 3.2 Mb The downloaded packages are in /var/folders/7J/7JpbFNySGACoH3teAShOLE+++TM/-Tmp-//RtmpXG1NQC/ downloaded_packages
library(igraph)
Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared library '/Library/Frameworks/R.framework/ Resources/library/igraph/libs/x86_64/igraph.so': dlopen(/Library/Frameworks/R.framework/Resources/library/igraph/ libs/x86_64/igraph.so, 10): Symbol not found: ___gmpz_clear Referenced from: /Library/Frameworks/R.framework/Resources/library/ igraph/libs/x86_64/igraph.so Expected in: dynamic lookup Error : .onLoad failed in 'loadNamespace' for 'igraph' Error: package/namespace load failed for 'igraph' ******
... that's really funny. I just tried to re-install igraph like you
did, and now I got the same error :-)
Do you have XCode installed? Installing the package from source seems
to do the trick:
install.packages('igraph', type='source')
... lots of compile info ...
Now loading igraph works (I had to restart R ... I guess having tried
to load the original compiled package hose the workspace, somehow).
I typically install most packages from source, anyway, so I guess this
is why I didn't see this before.
Does this work for you?
-steve
btw - I'm on a mac pro w/ snow leopard, not that I'm sure that matters
now ...
--
Steve Lianoglou
Graduate Student: Computational Systems Biology
| Memorial Sloan-Kettering Cancer Center
| Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact
12 days later
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20091124/9e4fee0d/attachment.pl>
On Nov 24, 2009, at 3:41 PM, Michael Barnett wrote:
Hi everyone - I'm having the same package installation issues with igraph, despite installing Xcode. I don't really know what to do. I'll paste the bug I get below - is there an easy fix for my problem? It seems to be an issue with the fact that R can't find a C compiler I'm guessing since I know that this package uses C code. I installed Xcode, but I'm not terribly informed about how to fix these issues. Any guidance? -Michael *****not from source
install.packages("igraph")
The default for install.packages might be for binary installation.
(What does getOption("pkgType") report? If you took that effort to
install Xcode, then you must have been thinking of building from
"source".
?install.packages
David > trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.10/igraph_0.5.3.tgz' > Content type 'application/x-gzip' length 3277777 bytes (3.1 Mb) > opened URL > ================================================== > downloaded 3.1 Mb > > > The downloaded packages are in > /var/folders/7J/7JpbFNySGACoH3teAShOLE+++TM/-Tmp-//RtmpFip5QZ/ > downloaded_packages >> library("igraph") > Error in dyn.load(file, DLLpath = DLLpath, ...) : > unable to load shared library '/Library/Frameworks/R.framework/ > Resources/library/igraph/libs/x86_64/igraph.so': > dlopen(/Library/Frameworks/R.framework/Resources/library/igraph/ > libs/x86_64/igraph.so, 10): Symbol not found: ___gmpz_clear > Referenced from: /Library/Frameworks/R.framework/Resources/library/ > igraph/libs/x86_64/igraph.so > Expected in: dynamic lookup > > Error : .onLoad failed in 'loadNamespace' for 'igraph' > Error: package/namespace load failed for 'igraph' > > *****from source >> install.packages("igraph", type="source") > trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/igraph_0.5.3.tar.gz' > Content type 'application/x-gzip' length 1211771 bytes (1.2 Mb) > opened URL > ================================================== > downloaded 1.2 Mb > > * installing *source* package ?igraph? ... > checking for gcc... no > checking for cc... no > checking for cl.exe... no > configure: error: in `/private/var/folders/7J/7JpbFNySGACoH3teAShOLE++ > +TM/-Tmp-/Rtmptn2nFy/R.INSTALL10d63af1/igraph': > configure: error: no acceptable C compiler found in $PATH > See `config.log' for more details. > ERROR: configuration failed for package ?igraph? > * removing ?/Library/Frameworks/R.framework/Versions/2.10/Resources/ > library/igraph? > * restoring previous ?/Library/Frameworks/R.framework/Versions/2.10/ > Resources/library/igraph? > > The downloaded packages are in > ?/private/var/folders/7J/7JpbFNySGACoH3teAShOLE+++TM/-Tmp-/ > RtmpFip5QZ/ > downloaded_packages? > Updating HTML index of packages in '.Library' > Warning message: > In install.packages("igraph", type = "source") : > installation of package 'igraph' had non-zero exit status > On Nov 12, 2009, at 12:53 PM, Steve Lianoglou wrote: > >> Heh ... >> >> On Nov 12, 2009, at 12:45 PM, Michael Barnett wrote: >> >>> I apologize for not being more precise. I'm pasting the printout I >>> get below: >>> >>> ***** >>>> install.packages("igraph") >>> trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.10/igraph_0.5.2-2.tgz' >>> Content type 'application/x-gzip' length 3312372 bytes (3.2 Mb) >>> opened URL >>> ================================================== >>> downloaded 3.2 Mb >>> >>> >>> The downloaded packages are in >>> /var/folders/7J/7JpbFNySGACoH3teAShOLE+++TM/-Tmp-//RtmpXG1NQC/ >>> downloaded_packages >>>> library(igraph) >>> Error in dyn.load(file, DLLpath = DLLpath, ...) : >>> unable to load shared library '/Library/Frameworks/R.framework/ >>> Resources/library/igraph/libs/x86_64/igraph.so': >>> dlopen(/Library/Frameworks/R.framework/Resources/library/igraph/ >>> libs/x86_64/igraph.so, 10): Symbol not found: ___gmpz_clear >>> Referenced from: /Library/Frameworks/R.framework/Resources/library/ >>> igraph/libs/x86_64/igraph.so >>> Expected in: dynamic lookup >>> >>> Error : .onLoad failed in 'loadNamespace' for 'igraph' >>> Error: package/namespace load failed for 'igraph' >>> ****** >> >> ... that's really funny. I just tried to re-install igraph like you >> did, and now I got the same error :-) >> >> Do you have XCode installed? Installing the package from source >> seems to do the trick: >> >> install.packages('igraph', type='source') >> ... lots of compile info ... >> >> Now loading igraph works (I had to restart R ... I guess having >> tried to load the original compiled package hose the workspace, >> somehow). >> >> I typically install most packages from source, anyway, so I guess >> this is why I didn't see this before. >> >> Does this work for you? >> >> -steve >> >> btw - I'm on a mac pro w/ snow leopard, not that I'm sure that >> matters now ... >> >> -- >> Steve Lianoglou >> Graduate Student: Computational Systems Biology >> | Memorial Sloan-Kettering Cancer Center >> | Weill Medical College of Cornell University >> Contact Info: http://cbio.mskcc.org/~lianos/contact >> > > > [[alternative HTML version deleted]] > > _______________________________________________ > R-SIG-Mac mailing list > R-SIG-Mac at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/r-sig-mac David Winsemius, MD Heritage Laboratories West Hartford, CT
On Nov 24, 2009, at 15:41 , Michael Barnett wrote:
Hi everyone - I'm having the same package installation issues with igraph, despite installing Xcode. I don't really know what to do. I'll paste the bug I get below - is there an easy fix for my problem? It seems to be an issue with the fact that R can't find a C compiler I'm guessing since I know that this package uses C code. I installed Xcode, but I'm not terribly informed about how to fix these issues. Any guidance?
The error is on my side (Fortran disappeared for some builds on the
Leopard build machine), you don't really need Xcode at all - please
just re-install igraph using
install.packages("igraph",,"http://r.urbanek.info")
(CRAN mirrors should pick up the updated binary within a day or two
but the above will work immediately).
In fact there are several other packages affected, so I'd recommend
update.packages(checkBuilt=TRUE) to all users (in a day or two or use
the above master repository).
Thanks,
Simon
*****not from source
install.packages("igraph")
trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.10/igraph_0.5.3.tgz' Content type 'application/x-gzip' length 3277777 bytes (3.1 Mb) opened URL ================================================== downloaded 3.1 Mb The downloaded packages are in /var/folders/7J/7JpbFNySGACoH3teAShOLE+++TM/-Tmp-//RtmpFip5QZ/ downloaded_packages
library("igraph")
Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared library '/Library/Frameworks/R.framework/ Resources/library/igraph/libs/x86_64/igraph.so': dlopen(/Library/Frameworks/R.framework/Resources/library/igraph/ libs/x86_64/igraph.so, 10): Symbol not found: ___gmpz_clear Referenced from: /Library/Frameworks/R.framework/Resources/library/ igraph/libs/x86_64/igraph.so Expected in: dynamic lookup Error : .onLoad failed in 'loadNamespace' for 'igraph' Error: package/namespace load failed for 'igraph' *****from source
install.packages("igraph", type="source")
trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/igraph_0.5.3.tar.gz' Content type 'application/x-gzip' length 1211771 bytes (1.2 Mb) opened URL ================================================== downloaded 1.2 Mb * installing *source* package ?igraph? ... checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: in `/private/var/folders/7J/7JpbFNySGACoH3teAShOLE++ +TM/-Tmp-/Rtmptn2nFy/R.INSTALL10d63af1/igraph': configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. ERROR: configuration failed for package ?igraph? * removing ?/Library/Frameworks/R.framework/Versions/2.10/Resources/ library/igraph? * restoring previous ?/Library/Frameworks/R.framework/Versions/2.10/ Resources/library/igraph? The downloaded packages are in ?/private/var/folders/7J/7JpbFNySGACoH3teAShOLE+++TM/-Tmp-/ RtmpFip5QZ/ downloaded_packages? Updating HTML index of packages in '.Library' Warning message: In install.packages("igraph", type = "source") : installation of package 'igraph' had non-zero exit status On Nov 12, 2009, at 12:53 PM, Steve Lianoglou wrote:
Heh ... On Nov 12, 2009, at 12:45 PM, Michael Barnett wrote:
I apologize for not being more precise. I'm pasting the printout I get below: *****
install.packages("igraph")
trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.10/igraph_0.5.2-2.tgz' Content type 'application/x-gzip' length 3312372 bytes (3.2 Mb) opened URL ================================================== downloaded 3.2 Mb The downloaded packages are in /var/folders/7J/7JpbFNySGACoH3teAShOLE+++TM/-Tmp-//RtmpXG1NQC/ downloaded_packages
library(igraph)
Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared library '/Library/Frameworks/R.framework/ Resources/library/igraph/libs/x86_64/igraph.so': dlopen(/Library/Frameworks/R.framework/Resources/library/igraph/ libs/x86_64/igraph.so, 10): Symbol not found: ___gmpz_clear Referenced from: /Library/Frameworks/R.framework/Resources/library/ igraph/libs/x86_64/igraph.so Expected in: dynamic lookup Error : .onLoad failed in 'loadNamespace' for 'igraph' Error: package/namespace load failed for 'igraph' ******
... that's really funny. I just tried to re-install igraph like you
did, and now I got the same error :-)
Do you have XCode installed? Installing the package from source
seems to do the trick:
install.packages('igraph', type='source')
... lots of compile info ...
Now loading igraph works (I had to restart R ... I guess having
tried to load the original compiled package hose the workspace,
somehow).
I typically install most packages from source, anyway, so I guess
this is why I didn't see this before.
Does this work for you?
-steve
btw - I'm on a mac pro w/ snow leopard, not that I'm sure that
matters now ...
--
Steve Lianoglou
Graduate Student: Computational Systems Biology
| Memorial Sloan-Kettering Cancer Center
| Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact
[[alternative HTML version deleted]]
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20091124/04150199/attachment.pl>
On Nov 24, 2009, at 5:34 PM, Michael Barnett wrote:
Simon - I appreciate your help very much. Unfortunately I did exactly what you said and got an error again :(
Ooops -- I'll need to have a look - it is an issue in the 64-bit
binary (I was checking 32-bit and that was fine) .. I'll keep you
posted. In the meantime you can try
install.packages("igraph",type='source')
Thanks,
Simon
******snip******
install.packages("igraph",,"http://r.urbanek.info")
trying URL 'http://r.urbanek.info/bin/macosx/leopard/contrib/2.10/ igraph_0.5.3.tgz' Content type 'application/x-tar' length 3280864 bytes (3.1 Mb) opened URL ================================================== downloaded 3.1 Mb The downloaded packages are in /var/folders/7J/7JpbFNySGACoH3teAShOLE+++TM/-Tmp-//RtmptZ63yS/ downloaded_packages
library("igraph")
Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared library '/Library/Frameworks/R.framework/ Resources/library/igraph/libs/x86_64/igraph.so': dlopen(/Library/Frameworks/R.framework/Resources/library/igraph/ libs/x86_64/igraph.so, 10): Symbol not found: ___gmpz_clear Referenced from: /Library/Frameworks/R.framework/Resources/library/ igraph/libs/x86_64/igraph.so Expected in: dynamic lookup Error : .onLoad failed in 'loadNamespace' for 'igraph' Error: package/namespace load failed for 'igraph' ********* -Michael On Nov 24, 2009, at 4:57 PM, Simon Urbanek wrote:
install.packages("igraph",,"http://r.urbanek.info")
Ok, I found the problem -- it's GMP. We have only 32-bit GMP on the build machine so igraph is trying to use it but doesn't get it for 64- bit. So this is really not related to the Fortran issue after all. I'll put 64-bit GMP on the CRAN machine tomorrow and keep you posted. If you don't need 64-bit just use 32-bit R in the meantime (R --arch i386) -- that will work. Thanks, Simon
On Nov 24, 2009, at 6:37 PM, Simon Urbanek wrote:
On Nov 24, 2009, at 5:34 PM, Michael Barnett wrote:
Simon - I appreciate your help very much. Unfortunately I did exactly what you said and got an error again :(
Ooops -- I'll need to have a look - it is an issue in the 64-bit
binary (I was checking 32-bit and that was fine) .. I'll keep you
posted. In the meantime you can try
install.packages("igraph",type='source')
Thanks,
Simon
******snip******
install.packages("igraph",,"http://r.urbanek.info")
trying URL 'http://r.urbanek.info/bin/macosx/leopard/contrib/2.10/ igraph_0.5.3.tgz' Content type 'application/x-tar' length 3280864 bytes (3.1 Mb) opened URL ================================================== downloaded 3.1 Mb The downloaded packages are in /var/folders/7J/7JpbFNySGACoH3teAShOLE+++TM/-Tmp-//RtmptZ63yS/ downloaded_packages
library("igraph")
Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared library '/Library/Frameworks/R.framework/ Resources/library/igraph/libs/x86_64/igraph.so': dlopen(/Library/Frameworks/R.framework/Resources/library/igraph/ libs/x86_64/igraph.so, 10): Symbol not found: ___gmpz_clear Referenced from: /Library/Frameworks/R.framework/Resources/library/ igraph/libs/x86_64/igraph.so Expected in: dynamic lookup Error : .onLoad failed in 'loadNamespace' for 'igraph' Error: package/namespace load failed for 'igraph' ********* -Michael On Nov 24, 2009, at 4:57 PM, Simon Urbanek wrote:
install.packages("igraph",,"http://r.urbanek.info")
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac
1 day later
64-bit GMP is now on the CRAN machine and I have re-compiled igraph so it should be fine (install from r.urbanek.info or wait for CRAN to synchronize). I'm checking other packages that may depend on GMP as well and will update them when seen. Thanks, Simon
On Nov 24, 2009, at 8:49 PM, Simon Urbanek wrote:
Ok, I found the problem -- it's GMP. We have only 32-bit GMP on the build machine so igraph is trying to use it but doesn't get it for 64-bit. So this is really not related to the Fortran issue after all. I'll put 64-bit GMP on the CRAN machine tomorrow and keep you posted. If you don't need 64-bit just use 32-bit R in the meantime (R --arch i386) -- that will work. Thanks, Simon On Nov 24, 2009, at 6:37 PM, Simon Urbanek wrote:
On Nov 24, 2009, at 5:34 PM, Michael Barnett wrote:
Simon - I appreciate your help very much. Unfortunately I did exactly what you said and got an error again :(
Ooops -- I'll need to have a look - it is an issue in the 64-bit
binary (I was checking 32-bit and that was fine) .. I'll keep you
posted. In the meantime you can try
install.packages("igraph",type='source')
Thanks,
Simon
******snip******
install.packages("igraph",,"http://r.urbanek.info")
trying URL 'http://r.urbanek.info/bin/macosx/leopard/contrib/2.10/ igraph_0.5.3.tgz' Content type 'application/x-tar' length 3280864 bytes (3.1 Mb) opened URL ================================================== downloaded 3.1 Mb The downloaded packages are in /var/folders/7J/7JpbFNySGACoH3teAShOLE+++TM/-Tmp-//RtmptZ63yS/ downloaded_packages
library("igraph")
Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared library '/Library/Frameworks/R.framework/ Resources/library/igraph/libs/x86_64/igraph.so': dlopen(/Library/Frameworks/R.framework/Resources/library/igraph/ libs/x86_64/igraph.so, 10): Symbol not found: ___gmpz_clear Referenced from: /Library/Frameworks/R.framework/Resources/library/ igraph/libs/x86_64/igraph.so Expected in: dynamic lookup Error : .onLoad failed in 'loadNamespace' for 'igraph' Error: package/namespace load failed for 'igraph' ********* -Michael On Nov 24, 2009, at 4:57 PM, Simon Urbanek wrote:
install.packages("igraph",,"http://r.urbanek.info")
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac