Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation from source file failed #3

Closed
zhaoni153 opened this issue Aug 15, 2014 · 3 comments
Closed

installation from source file failed #3

zhaoni153 opened this issue Aug 15, 2014 · 3 comments

Comments

@zhaoni153
Copy link

Dear Fabian,

When I tried to install from source file in my linux machine using
install.packages("PATH/RLRsim_3.0.tar.gz", repos = NULL, type="source")
Error message reported as

*** arch - i386
ERROR: compilation failed for package 'RLRsim'

However, intallation using the windows binary works for my windows machine. What might be the reason?

Thanks a lot.
Ni

@fabian-s
Copy link
Owner

weird...

can you send the sessionInfo() before this happens and the complete output of

install.packages("PATH/RLRsim_3.0.tar.gz", repos = NULL, type="source")

@zhaoni153
Copy link
Author

Sure.

sessionInfo()
R version 2.14.0 (2011-10-31)
Platform: x86_64-unknown-linux-gnu (64-bit)

locale:
[1] LC_CTYPE=en_US.iso885915 LC_NUMERIC=C
[3] LC_TIME=en_US.iso885915 LC_COLLATE=en_US.iso885915
[5] LC_MONETARY=en_US.iso885915 LC_MESSAGES=en_US.iso885915
[7] LC_PAPER=C LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.iso885915 LC_IDENTIFICATION=C

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

And the complete output:

inferring 'repos = NULL' from the file name

  • installing source package 'RLRsim' ...
    ** package 'RLRsim' successfully unpacked and MD5 sums checked
    ** libs
    g++ -I/nas02/apps/r-2.14.0/lib64/R/include -I/usr/local/include
    -I"/nas02/apps/r-2.14.0/lib64/R/library/Rcpp/include" -fpic -g -O2 -c
    RLRsim.cpp -o RLRsim.o
    g++ -I/nas02/apps/r-2.14.0/lib64/R/include -I/usr/local/include
    -I"/nas02/apps/r-2.14.0/lib64/R/library/Rcpp/include" -fpic -g -O2 -c
    RcppExports.cpp -o RcppExports.o
    RcppExports.cpp: In function 'SEXPREC* RLRsim_RLRsimCpp(SEXPREC_, SEXPREC_,
    SEXPREC_, SEXPREC_, SEXPREC_, SEXPREC_, SEXPREC_, SEXPREC_, SEXPREC_,
    SEXPREC_, SEXPREC_)':
    RcppExports.cpp:15: error: 'input_parameter' is not a member of
    'Rcpp::traits'
    RcppExports.cpp:15: error: expected primary-expression before 'int'
    RcppExports.cpp:15: error: expected ;' before 'int' RcppExports.cpp:16: error: 'input_parameter' is not a member of 'Rcpp::traits' RcppExports.cpp:16: error: expected primary-expression before 'int' RcppExports.cpp:16: error: expected;' before 'int'
    RcppExports.cpp:17: error: 'input_parameter' is not a member of
    'Rcpp::traits'
    RcppExports.cpp:17: error: expected primary-expression before 'int'
    RcppExports.cpp:17: error: expected ;' before 'int' RcppExports.cpp:18: error: 'input_parameter' is not a member of 'Rcpp::traits' RcppExports.cpp:18: error: expected primary-expression before 'int' RcppExports.cpp:18: error: expected;' before 'int'
    RcppExports.cpp:19: error: 'input_parameter' is not a member of
    'Rcpp::traits'
    RcppExports.cpp:19: error: expected primary-expression before 'int'
    RcppExports.cpp:19: error: expected ;' before 'int' RcppExports.cpp:20: error: 'input_parameter' is not a member of 'Rcpp::traits' RcppExports.cpp:20: error: expected primary-expression before 'int' RcppExports.cpp:20: error: expected;' before 'int'
    RcppExports.cpp:21: error: 'input_parameter' is not a member of
    'Rcpp::traits'
    RcppExports.cpp:21: error: expected primary-expression before '>' token
    RcppExports.cpp:21: error: '::type' has not been declared
    RcppExports.cpp:21: error: expected ;' before 'mu' RcppExports.cpp:22: error: 'input_parameter' is not a member of 'Rcpp::traits' RcppExports.cpp:22: error: expected primary-expression before '>' token RcppExports.cpp:22: error: '::type' has not been declared RcppExports.cpp:22: error: expected;' before 'lambda'
    RcppExports.cpp:23: error: 'input_parameter' is not a member of
    'Rcpp::traits'
    RcppExports.cpp:23: error: expected primary-expression before 'double'
    RcppExports.cpp:23: error: expected ;' before 'double' RcppExports.cpp:24: error: 'input_parameter' is not a member of 'Rcpp::traits' RcppExports.cpp:24: error: expected primary-expression before '>' token RcppExports.cpp:24: error: '::type' has not been declared RcppExports.cpp:24: error: expected;' before 'xi'
    RcppExports.cpp:25: error: 'input_parameter' is not a member of
    'Rcpp::traits'
    RcppExports.cpp:25: error: expected primary-expression before 'bool'
    RcppExports.cpp:25: error: expected `;' before 'bool'
    RcppExports.cpp:26: error: 'p' was not declared in this scope
    RcppExports.cpp:26: error: 'k' was not declared in this scope
    RcppExports.cpp:26: error: 'n' was not declared in this scope
    RcppExports.cpp:26: error: 'nsim' was not declared in this scope
    RcppExports.cpp:26: error: 'g' was not declared in this scope
    RcppExports.cpp:26: error: 'q' was not declared in this scope
    RcppExports.cpp:26: error: 'mu' was not declared in this scope
    RcppExports.cpp:26: error: 'lambda' was not declared in this scope
    RcppExports.cpp:26: error: 'lambda0' was not declared in this scope
    RcppExports.cpp:26: error: 'xi' was not declared in this scope
    RcppExports.cpp:26: error: 'REML' was not declared in this scope
    make: *_* [RcppExports.o] Error 1
    ERROR: compilation failed for package 'RLRsim'
  • removing '/netscr/nzhao/Dissertation/Rlib/RLRsim'
    Warning message:
    In
    install.packages("/netscr/nzhao/Dissertation/software/RLRsim_3.0.tar.gz", :
    installation of package
    '/netscr/nzhao/Dissertation/software/RLRsim_3.0.tar.gz' had non-zero exit
    status

Weirdly I successfully installed the package using my husband's laptop,
which is also a linux machine. Here I attached the sessionInfor for that
machine (which successfully installed the package):

R version 3.1.1 (2014-07-10)
Platform: x86_64-unknown-linux-gnu (64-bit)

locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

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

other attached packages:
[1] RLRsim_3.0

loaded via a namespace (and not attached):
[1] Rcpp_0.11.2

Thanks a lot for your quick response.

Ni

On Fri, Aug 15, 2014 at 9:27 AM, Fabian Scheipl notifications@github.com
wrote:

weird...

can you send the sessionInfo() before this happens and the complete output
of

install.packages("PATH/RLRsim_3.0.tar.gz", repos = NULL, type="source")


Reply to this email directly or view it on GitHub
#3 (comment).

@fabian-s
Copy link
Owner

Seems like RLRSim needs a more recent Rcpp than the one you have, and that, in turn, means you'll need to install a more recent R with version > 3.0.0, I'm afraid. You're on 2.14.1, CRAN is at 3.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants