Open vhpietil opened 7 years ago
What version of g++ is this?
On Tue, Oct 10, 2017 at 6:45 AM, vhpietil notifications@github.com wrote:
Summary:
I have downloaded all needed packages and try to install Rstan on a server (Red Hat Enterprise Linux Server release 6.6 (Santiago)) without internet access but it fails Description:
I have all packages in a folder (SOURCEFOLDER)
BH_1.65.0-1.tar.gz colorspace_1.3-2.tar.gz dichromat_2.0-0.tar.gz digest_0.6.12.tar.gz ggplot2_2.2.1.tar.gz gridExtra_2.3.tar.gz gtable_0.2.0.tar.gz inline_0.3.14.tar.gz labeling_0.3.tar.gz lattice_0.20-35.tar.gz lazyeval_0.2.0.tar.gz magrittr_1.5.tar.gz MASS_7.3-47.tar.gz Matrix_1.2-11.tar.gz munsell_0.4.3.tar.gz PACKAGES PACKAGES.gz plyr_1.8.4.tar.gz R6_2.2.2.tar.gz RColorBrewer_1.1-2.tar.gz Rcpp_0.12.13.tar.gz RcppEigen_0.3.3.3.0.tar.gz reshape2_1.4.2.tar.gz rlang_0.1.2.tar.gz rstan_2.16.2.tar.gz scales_0.5.0.tar.gz StanHeaders_2.16.0-1.tar.gz stringi_1.1.5.tar.gz stringr_1.2.0.tar.gz tibble_1.3.4.tar.gz viridisLite_0.2.0.tar.gz
I run tools::write_PACKAGES(SOURCEFOLDER).
I made ~/.R/Makevars -file and added following there. Found it in some similar error: " CXX_STD = CXX11
CXXFLAGS=-O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION "
Then I run install.packages("rstan", contriburl = "file://SOURCEFOLDER", lib = "mylibraryfolder", repos=NULL)
Then I get the following output
- installing source package ‘rstan’ ... package ‘rstan’ successfully unpacked and MD5 sums checked libs g++ -m64 -I/usr/include/R -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I""/usr/lib64/R/bin/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DFUSION_MAX_VECTOR_SIZE=12 -I/usr/local/include -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/Rcpp/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/RcppEigen/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/BH/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/StanHeaders/include" -fpic -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -c chains.cpp -o chains.o g++ -m64 -I/usr/include/R -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I""/usr/lib64/R/bin/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DFUSION_MAX_VECTOR_SIZE=12 -I/usr/local/include -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/Rcpp/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/RcppEigen/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/BH/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/StanHeaders/include" -fpic -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -c init.cpp -o init.o g++ -m64 -I/usr/include/R -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I""/usr/lib64/R/bin/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DFUSION_MAX_VECTOR_SIZE=12 -I/usr/local/include -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/Rcpp/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/RcppEigen/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/BH/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/StanHeaders/include" -fpic -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -c lang__ast_def.cpp -o langast_def.o In file included from /opt/sasdata/sasfolders/analysts/public/R/dev/ StanHeaders/include/src/stan/lang/ast.hpp:68, from /opt/sasdata/sasfolders/analysts/public/R/dev/ StanHeaders/include/src/stan/lang/ast_def.cpp:7, from langast_def.cpp:18: /opt/sasdata/sasfolders/analysts/public/R/dev/ StanHeaders/include/src/stan/lang/ast/node/conditional_op.hpp:40: error: ISO C++ forbids initialization of member ‘hasvar’ /opt/sasdata/sasfolders/analysts/public/R/dev/ StanHeaders/include/src/stan/lang/ast/node/conditional_op.hpp:40: error: making ‘hasvar’ static /opt/sasdata/sasfolders/analysts/public/R/dev/ StanHeaders/include/src/stan/lang/ast/node/conditional_op.hpp:40: error: ISO C++ forbids in-class initialization of non-const static member ‘hasvar’ make: *** [lang__ast_def.o] Error 1 ERROR: compilation failed for package ‘rstan’
I get the following output Reproducible Steps:
Please report steps to reproduce the issue. If it's not possible to reproduce, please include a description of how you discovered the issue.
If you have a reproducible example, please include it. R Version:
"R version 3.3.3 (2017-03-06)" Operating System:
Red Hat Enterprise Linux Server release 6.6 (Santiago)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/stan-dev/rstan/issues/457, or mute the thread https://github.com/notifications/unsubscribe-auth/ADOrqnht4fNnFn8gLf6bsPvOTzpf9cONks5sq0qugaJpZM4Pzurs .
gcc -v Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux Thread model: posix gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC)
On Tue, Oct 10, 2017 at 5:14 PM, bgoodri notifications@github.com wrote:
What version of g++ is this?
On Tue, Oct 10, 2017 at 6:45 AM, vhpietil notifications@github.com wrote:
Summary:
I have downloaded all needed packages and try to install Rstan on a server (Red Hat Enterprise Linux Server release 6.6 (Santiago)) without internet access but it fails Description:
I have all packages in a folder (SOURCEFOLDER)
BH_1.65.0-1.tar.gz colorspace_1.3-2.tar.gz dichromat_2.0-0.tar.gz digest_0.6.12.tar.gz ggplot2_2.2.1.tar.gz gridExtra_2.3.tar.gz gtable_0.2.0.tar.gz inline_0.3.14.tar.gz labeling_0.3.tar.gz lattice_0.20-35.tar.gz lazyeval_0.2.0.tar.gz magrittr_1.5.tar.gz MASS_7.3-47.tar.gz Matrix_1.2-11.tar.gz munsell_0.4.3.tar.gz PACKAGES PACKAGES.gz plyr_1.8.4.tar.gz R6_2.2.2.tar.gz RColorBrewer_1.1-2.tar.gz Rcpp_0.12.13.tar.gz RcppEigen_0.3.3.3.0.tar.gz reshape2_1.4.2.tar.gz rlang_0.1.2.tar.gz rstan_2.16.2.tar.gz scales_0.5.0.tar.gz StanHeaders_2.16.0-1.tar.gz stringi_1.1.5.tar.gz stringr_1.2.0.tar.gz tibble_1.3.4.tar.gz viridisLite_0.2.0.tar.gz
I run tools::write_PACKAGES(SOURCEFOLDER).
I made ~/.R/Makevars -file and added following there. Found it in some similar error: " CXX_STD = CXX11
CXXFLAGS=-O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION "
Then I run install.packages("rstan", contriburl = "file://SOURCEFOLDER", lib = "mylibraryfolder", repos=NULL)
Then I get the following output
- installing source package ‘rstan’ ... package ‘rstan’ successfully unpacked and MD5 sums checked libs g++ -m64 -I/usr/include/R -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I""/usr/lib64/R/bin/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DFUSION_MAX_VECTOR_SIZE=12 -I/usr/local/include -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/Rcpp/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/RcppEigen/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/BH/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/StanHeaders/include" -fpic -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -c chains.cpp -o chains.o g++ -m64 -I/usr/include/R -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I""/usr/lib64/R/bin/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DFUSION_MAX_VECTOR_SIZE=12 -I/usr/local/include -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/Rcpp/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/RcppEigen/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/BH/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/StanHeaders/include" -fpic -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -c init.cpp -o init.o g++ -m64 -I/usr/include/R -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I""/usr/lib64/R/bin/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DFUSION_MAX_VECTOR_SIZE=12 -I/usr/local/include -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/Rcpp/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/RcppEigen/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/BH/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/StanHeaders/include" -fpic -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -c lang__ast_def.cpp -o langast_def.o In file included from /opt/sasdata/sasfolders/analysts/public/R/dev/ StanHeaders/include/src/stan/lang/ast.hpp:68, from /opt/sasdata/sasfolders/analysts/public/R/dev/ StanHeaders/include/src/stan/lang/ast_def.cpp:7, from langast_def.cpp:18: /opt/sasdata/sasfolders/analysts/public/R/dev/ StanHeaders/include/src/stan/lang/ast/node/conditional_op.hpp:40: error: ISO C++ forbids initialization of member ‘hasvar’ /opt/sasdata/sasfolders/analysts/public/R/dev/ StanHeaders/include/src/stan/lang/ast/node/conditional_op.hpp:40: error: making ‘hasvar’ static /opt/sasdata/sasfolders/analysts/public/R/dev/ StanHeaders/include/src/stan/lang/ast/node/conditional_op.hpp:40: error: ISO C++ forbids in-class initialization of non-const static member ‘hasvar’ make: *** [lang__ast_def.o] Error 1 ERROR: compilation failed for package ‘rstan’
I get the following output Reproducible Steps:
Please report steps to reproduce the issue. If it's not possible to reproduce, please include a description of how you discovered the issue.
If you have a reproducible example, please include it. R Version:
"R version 3.3.3 (2017-03-06)" Operating System:
Red Hat Enterprise Linux Server release 6.6 (Santiago)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/stan-dev/rstan/issues/457, or mute the thread https://github.com/notifications/unsubscribe-auth/ ADOrqnht4fNnFn8gLf6bsPvOTzpf9cONks5sq0qugaJpZM4Pzurs .
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/stan-dev/rstan/issues/457#issuecomment-335486551, or mute the thread https://github.com/notifications/unsubscribe-auth/APOAA99w4ywVkeARwk-rl8h9ZbvLQ9hIks5sq3vhgaJpZM4Pzurs .
I would just open /opt/sasdata/sasfolders/analysts/public/R/dev/StanHeaders/include/src/stan/ lang/ast/node/conditional_op.hpp with a text editor and change line 40 to delete the "= false" assignment to hasvar.
However, you are going to need g++-4.9 or a similar version of clang++ to use Stan 2.18 and higher.
On Tue, Oct 10, 2017 at 11:59 AM, vhpietil notifications@github.com wrote:
gcc -v Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla. redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux Thread model: posix gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC)
On Tue, Oct 10, 2017 at 5:14 PM, bgoodri notifications@github.com wrote:
What version of g++ is this?
On Tue, Oct 10, 2017 at 6:45 AM, vhpietil notifications@github.com wrote:
Summary:
I have downloaded all needed packages and try to install Rstan on a server (Red Hat Enterprise Linux Server release 6.6 (Santiago)) without internet access but it fails Description:
I have all packages in a folder (SOURCEFOLDER)
BH_1.65.0-1.tar.gz colorspace_1.3-2.tar.gz dichromat_2.0-0.tar.gz digest_0.6.12.tar.gz ggplot2_2.2.1.tar.gz gridExtra_2.3.tar.gz gtable_0.2.0.tar.gz inline_0.3.14.tar.gz labeling_0.3.tar.gz lattice_0.20-35.tar.gz lazyeval_0.2.0.tar.gz magrittr_1.5.tar.gz MASS_7.3-47.tar.gz Matrix_1.2-11.tar.gz munsell_0.4.3.tar.gz PACKAGES PACKAGES.gz plyr_1.8.4.tar.gz R6_2.2.2.tar.gz RColorBrewer_1.1-2.tar.gz Rcpp_0.12.13.tar.gz RcppEigen_0.3.3.3.0.tar.gz reshape2_1.4.2.tar.gz rlang_0.1.2.tar.gz rstan_2.16.2.tar.gz scales_0.5.0.tar.gz StanHeaders_2.16.0-1.tar.gz stringi_1.1.5.tar.gz stringr_1.2.0.tar.gz tibble_1.3.4.tar.gz viridisLite_0.2.0.tar.gz
I run tools::write_PACKAGES(SOURCEFOLDER).
I made ~/.R/Makevars -file and added following there. Found it in some similar error: " CXX_STD = CXX11
CXXFLAGS=-O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION "
Then I run install.packages("rstan", contriburl = "file://SOURCEFOLDER", lib = "mylibraryfolder", repos=NULL)
Then I get the following output
- installing source package ‘rstan’ ...
package ‘rstan’ successfully unpacked and MD5 sums checked libs g++ -m64 -I/usr/include/R -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I""/usr/lib64/R/bin/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DFUSION_MAX_VECTOR_SIZE=12 -I/usr/local/include -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/Rcpp/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/RcppEigen/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/BH/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/StanHeaders/include" -fpic -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -c chains.cpp -o chains.o g++ -m64 -I/usr/include/R -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I""/usr/lib64/R/bin/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DFUSION_MAX_VECTOR_SIZE=12 -I/usr/local/include -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/Rcpp/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/RcppEigen/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/BH/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/StanHeaders/include" -fpic -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -c init.cpp -o init.o g++ -m64 -I/usr/include/R -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I""/usr/lib64/R/bin/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DFUSION_MAX_VECTOR_SIZE=12 -I/usr/local/include -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/Rcpp/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/RcppEigen/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/BH/include" -I"/opt/sasdata/sasfolders/ analysts/public/R/dev/StanHeaders/include" -fpic -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -c lang__ast_def.cpp -o langast_def.o In file included from /opt/sasdata/sasfolders/analysts/public/R/dev/ StanHeaders/include/src/stan/lang/ast.hpp:68, from /opt/sasdata/sasfolders/analysts/public/R/dev/ StanHeaders/include/src/stan/lang/ast_def.cpp:7, from langast_def.cpp:18: /opt/sasdata/sasfolders/analysts/public/R/dev/ StanHeaders/include/src/stan/lang/ast/node/conditional_op.hpp:40: error: ISO C++ forbids initialization of member ‘hasvar’ /opt/sasdata/sasfolders/analysts/public/R/dev/ StanHeaders/include/src/stan/lang/ast/node/conditional_op.hpp:40: error: making ‘hasvar’ static /opt/sasdata/sasfolders/analysts/public/R/dev/ StanHeaders/include/src/stan/lang/ast/node/conditional_op.hpp:40: error: ISO C++ forbids in-class initialization of non-const static member ‘hasvar’ make: *** [lang__ast_def.o] Error 1 ERROR: compilation failed for package ‘rstan’
I get the following output Reproducible Steps:
Please report steps to reproduce the issue. If it's not possible to reproduce, please include a description of how you discovered the issue.
If you have a reproducible example, please include it. R Version:
"R version 3.3.3 (2017-03-06)" Operating System:
Red Hat Enterprise Linux Server release 6.6 (Santiago)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/stan-dev/rstan/issues/457, or mute the thread https://github.com/notifications/unsubscribe-auth/ ADOrqnht4fNnFn8gLf6bsPvOTzpf9cONks5sq0qugaJpZM4Pzurs .
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/stan-dev/rstan/issues/457#issuecomment-335486551, or mute the thread https://github.com/notifications/unsubscribe-auth/APOAA99w4ywVkeARwk- rl8h9ZbvLQ9hIks5sq3vhgaJpZM4Pzurs .
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stan-dev/rstan/issues/457#issuecomment-335521665, or mute the thread https://github.com/notifications/unsubscribe-auth/ADOrqqujuQMwXHlcNIaHqoyCJs7rwie1ks5sq5RmgaJpZM4Pzurs .
Summary:
I have downloaded all needed packages and try to install Rstan on a server (Red Hat Enterprise Linux Server release 6.6 (Santiago)) without internet access but it fails
Description:
I have all packages in a folder (SOURCEFOLDER)
BH_1.65.0-1.tar.gz colorspace_1.3-2.tar.gz dichromat_2.0-0.tar.gz digest_0.6.12.tar.gz ggplot2_2.2.1.tar.gz gridExtra_2.3.tar.gz gtable_0.2.0.tar.gz inline_0.3.14.tar.gz labeling_0.3.tar.gz lattice_0.20-35.tar.gz lazyeval_0.2.0.tar.gz magrittr_1.5.tar.gz MASS_7.3-47.tar.gz Matrix_1.2-11.tar.gz munsell_0.4.3.tar.gz PACKAGES PACKAGES.gz plyr_1.8.4.tar.gz R6_2.2.2.tar.gz RColorBrewer_1.1-2.tar.gz Rcpp_0.12.13.tar.gz RcppEigen_0.3.3.3.0.tar.gz reshape2_1.4.2.tar.gz rlang_0.1.2.tar.gz rstan_2.16.2.tar.gz scales_0.5.0.tar.gz StanHeaders_2.16.0-1.tar.gz stringi_1.1.5.tar.gz stringr_1.2.0.tar.gz tibble_1.3.4.tar.gz viridisLite_0.2.0.tar.gz
I run tools::write_PACKAGES(SOURCEFOLDER).
I made ~/.R/Makevars -file and added following there. Found it in some similar error: " CXX_STD = CXX11
CXXFLAGS=-O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION "
Then I run install.packages("rstan", contriburl = "file://SOURCEFOLDER", lib = "mylibraryfolder", repos=NULL)
Then I get the following output
"/usr/lib64/R/bin/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"
" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DFUSION_MAX_VECTOR_SIZE=12 -I/usr/local/include -I"/opt/sasdata/sasfolders/analysts/public/R/dev/Rcpp/include" -I"/opt/sasdata/sasfolders/analysts/public/R/dev/RcppEigen/include" -I"/opt/sasdata/sasfolders/analysts/public/R/dev/BH/include" -I"/opt/sasdata/sasfolders/analysts/public/R/dev/StanHeaders/include" -fpic -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -c chains.cpp -o chains.o g++ -m64 -I/usr/include/R -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I""/usr/lib64/R/bin/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"
" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DFUSION_MAX_VECTOR_SIZE=12 -I/usr/local/include -I"/opt/sasdata/sasfolders/analysts/public/R/dev/Rcpp/include" -I"/opt/sasdata/sasfolders/analysts/public/R/dev/RcppEigen/include" -I"/opt/sasdata/sasfolders/analysts/public/R/dev/BH/include" -I"/opt/sasdata/sasfolders/analysts/public/R/dev/StanHeaders/include" -fpic -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -c init.cpp -o init.o g++ -m64 -I/usr/include/R -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I""/usr/lib64/R/bin/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"
" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DFUSION_MAX_VECTOR_SIZE=12 -I/usr/local/include -I"/opt/sasdata/sasfolders/analysts/public/R/dev/Rcpp/include" -I"/opt/sasdata/sasfolders/analysts/public/R/dev/RcppEigen/include" -I"/opt/sasdata/sasfolders/analysts/public/R/dev/BH/include" -I"/opt/sasdata/sasfolders/analysts/public/R/dev/StanHeaders/include" -fpic -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -c lang__ast_def.cpp -o langast_def.o In file included from /opt/sasdata/sasfolders/analysts/public/R/dev/StanHeaders/include/src/stan/lang/ast.hpp:68, from /opt/sasdata/sasfolders/analysts/public/R/dev/StanHeaders/include/src/stan/lang/ast_def.cpp:7, from langast_def.cpp:18: /opt/sasdata/sasfolders/analysts/public/R/dev/StanHeaders/include/src/stan/lang/ast/node/conditional_op.hpp:40: error: ISO C++ forbids initialization of member ‘hasvar’ /opt/sasdata/sasfolders/analysts/public/R/dev/StanHeaders/include/src/stan/lang/ast/node/conditional_op.hpp:40: error: making ‘hasvar’ static /opt/sasdata/sasfolders/analysts/public/R/dev/StanHeaders/include/src/stan/lang/ast/node/conditional_op.hpp:40: error: ISO C++ forbids in-class initialization of non-const static member ‘hasvar’ make: *** [lang__ast_def.o] Error 1 ERROR: compilation failed for package ‘rstan’I get the following output
Reproducible Steps:
Please report steps to reproduce the issue. If it's not possible to reproduce, please include a description of how you discovered the issue.
If you have a reproducible example, please include it.
R Version:
"R version 3.3.3 (2017-03-06)"
Operating System:
Red Hat Enterprise Linux Server release 6.6 (Santiago)