Joelgranados / EcoIP

Scripts to Analyze Color Data
GNU General Public License v3.0
4 stars 0 forks source link

Problems installing on Windows #14

Closed egraham closed 12 years ago

egraham commented 12 years ago

Updated to R version 2.15.0. Then tried to follow instructions. My comments are in [brackets], commands I tried follow the ">" prompt, output follows immediately:

source("F:/CENS/Projects/EcoIP/ecoip.R", chdir=TRUE) Error in library(getopt) : there is no package called ‘getopt’

ecoip_exec("--rinstall") Error: could not find function "ecoip_exec"

[So, went to Packages > Install Package(s) > getopt. Installed fine.]

source("F:/CENS/Projects/EcoIP/ecoip.R", chdir=TRUE) Error in library(EBImage) : there is no package called ‘EBImage’ Make sure you call source with chdir=TURE Loading required package: fields === R MUST HAVE fields and digest INSTALLED === Loading required package: EBImage === Install EBImage. Consider instructions at http://www.bioconductor.org/packages/release/bioc/html/EBImage.html === Warning messages: 1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : there is no package called ‘fields’ 2: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : there is no package called ‘EBImage’

source("http://bioconductor.org/biocLite.R") biocLite("EBImage")

[Installed fine.]

source("F:/CENS/Projects/EcoIP/ecoip.R", chdir=TRUE) Loading required package: abind Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared object 'C:/Program Files/R/R-2.15.0/library/EBImage/libs/i386/EBImage.dll': LoadLibrary failure: The specified procedure could not be found.

Error : package/namespace load failed for ‘EBImage’ Make sure you call source with chdir=TURE Loading required package: fields === R MUST HAVE fields and digest INSTALLED === Loading required package: EBImage Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared object 'C:/Program Files/R/R-2.15.0/library/EBImage/libs/i386/EBImage.dll': LoadLibrary failure: The specified procedure could not be found.

In addition: Warning message: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : there is no package called ‘fields’ === Install EBImage. Consider instructions at http://www.bioconductor.org/packages/release/bioc/html/EBImage.html ===

ecoip_exec("--rinstall") Error in getopt(optMat, opt = cmdArgs) : long flag "rinstall" is invalid

[Hm. I will download the program Process Explorer to find out if EBImage.dll is being loaded. It exists in the specified subdirectory, just don't know why it's not loading.]

Joelgranados commented 12 years ago

Hey Eric.

Do you have GTK+ and ImageMagick installed? You need to have both to run EBImage. Do you get a allert pop-up from R? Thx for the report. There needs to be a way to install getopt without using getopt. I'll work on a bootstrapping mechanism.

On Wed, Apr 11, 2012 at 12:51 AM, egraham < reply@reply.github.com

wrote:

Updated to R version 2.15.0. Then tried to follow instructions. My comments are in [brackets], commands I tried follow the ">" prompt, output follows immediately:

source("F:/CENS/Projects/EcoIP/ecoip.R", chdir=TRUE) Error in library(getopt) : there is no package called ‘getopt’

ecoip_exec("--rinstall") Error: could not find function "ecoip_exec"

[So, went to Packages > Install Package(s) > getopt. Installed fine.]

source("F:/CENS/Projects/EcoIP/ecoip.R", chdir=TRUE) Error in library(EBImage) : there is no package called ‘EBImage’ Make sure you call source with chdir=TURE Loading required package: fields === R MUST HAVE fields and digest INSTALLED === Loading required package: EBImage === Install EBImage. Consider instructions at http://www.bioconductor.org/packages/release/bioc/html/EBImage.html === Warning messages: 1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : there is no package called ‘fields’ 2: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : there is no package called ‘EBImage’

source("http://bioconductor.org/biocLite.R") biocLite("EBImage")

[Installed fine.]

source("F:/CENS/Projects/EcoIP/ecoip.R", chdir=TRUE) Loading required package: abind Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared object 'C:/Program Files/R/R-2.15.0/library/EBImage/libs/i386/EBImage.dll': LoadLibrary failure: The specified procedure could not be found.

Error : package/namespace load failed for ‘EBImage’ Make sure you call source with chdir=TURE Loading required package: fields === R MUST HAVE fields and digest INSTALLED === Loading required package: EBImage Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared object 'C:/Program Files/R/R-2.15.0/library/EBImage/libs/i386/EBImage.dll': LoadLibrary failure: The specified procedure could not be found.

In addition: Warning message: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : there is no package called ‘fields’ === Install EBImage. Consider instructions at http://www.bioconductor.org/packages/release/bioc/html/EBImage.html ===

ecoip_exec("--rinstall") Error in getopt(optMat, opt = cmdArgs) : long flag "rinstall" is invalid

[Hm. I will download the program Process Explorer to find out if EBImage.dll is being loaded. It exists in the specified subdirectory, just don't know why it's not loading.]


Reply to this email directly or view it on GitHub: https://github.com/Joelgranados/EcoIP/issues/14

Joel Andrés Granados IT University of Copenhagen Copenhagen, Denmark.

Joelgranados commented 12 years ago

I change this a bit: Now the installation of getopt and friends is done automatically without the user having to interact. when the user executes source('ecoip.R', chdir=T), the needed packages are checked and installed if needed. After the source command, the user should be able to use ecoip_exec. There might be a situation where the user does not have permissions to install, in these cases the command tells the user to login as administrator. I tested this on Windows XP (works for me) :).

The errors that are caused by not installing GTK+ nor ImageMagick are not handled by this command.

Next version is available : ) https://github.com/downloads/Joelgranados/EcoIP/EcoIP-0.1.20120411-Linux.zip