Unable to install CausalImpact on 64 Bit CentOs 6

1,004 views
Skip to first unread message

Jitendra Jain

unread,
Jan 14, 2015, 2:03:30 AM1/14/15
to causal...@googlegroups.com
Hi,

I get the following errors while installing the package on 64 Bit CentOS 6

make: *** [Models/Glm/HierarchicalPoissonRegression.o] Error 1
ERROR: compilation failed for package ‘Boom’
* removing ‘/usr/lib64/R/library/Boom’
ERROR: dependency ‘Boom’ is not available for package ‘BoomSpikeSlab’
* removing ‘/usr/lib64/R/library/BoomSpikeSlab’
ERROR: dependencies ‘BoomSpikeSlab’, ‘Boom’ are not available for package ‘bsts’
* removing ‘/usr/lib64/R/library/bsts’

The downloaded source packages are in
    ‘/tmp/Rtmp1r9EZn/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
'/usr/lib64/R/bin/R' --vanilla CMD INSTALL  \
  '/tmp/Rtmp1r9EZn/devtoolse5b61b480a4/google-CausalImpact-55e9b20'  \
  --library='/usr/lib64/R/library' --install-tests

ERROR: dependency ‘bsts’ is not available for package ‘CausalImpact’
* removing ‘/usr/lib64/R/library/CausalImpact’
Error: Command failed (1)
In addition: Warning messages:
1: In utils::install.packages(deps, dependencies = NA, Ncpus = threads) :
  installation of package ‘Boom’ had non-zero exit status
2: In utils::install.packages(deps, dependencies = NA, Ncpus = threads) :
  installation of package ‘BoomSpikeSlab’ had non-zero exit status
3: In utils::install.packages(deps, dependencies = NA, Ncpus = threads) :
  installation of package ‘bsts’ had non-zero exit status

Regards,
Jitendra Jain

Kay Brodersen

unread,
Jan 14, 2015, 4:42:24 AM1/14/15
to Jitendra Jain, causal...@googlegroups.com
Hi Jitendra,

The underlying problem seems to be:

ERROR: compilation failed for package ‘Boom’

CausalImpact depends on this package. For details, see:

Kay


--
You received this message because you are subscribed to the Google Groups "CausalImpact" group.
To unsubscribe from this group and stop receiving emails from it, send an email to causalimpact...@googlegroups.com.
To post to this group, send email to causal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/causalimpact/7d83d95e-3fd6-45ba-9649-ac4f4c5f7fbd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jitendra Jain

unread,
Jan 14, 2015, 6:53:16 AM1/14/15
to Kay Brodersen, causal...@googlegroups.com
Hi,

Downloaded the Boom package from link given by you in previous mail.
Tried to install with command "R CMD INSTALL Boom_0.2.tar.gz"
Giving following errors :-

In file included from ../inst/include/Models/Glm/HierarchicalPoissonRegression.hpp:24,
                 from Models/Glm/HierarchicalPoissonRegression.cpp:19:
../inst/include/Models/Glm/PoissonRegressionModel.hpp:74: error: ‘nullptr’ was not declared in this scope
../inst/include/Models/Glm/PoissonRegressionModel.hpp:75: error: ‘nullptr’ was not declared in this scope
Models/Glm/HierarchicalPoissonRegression.cpp: In copy constructor ‘BOOM::HierarchicalPoissonRegressionModel::HierarchicalPoissonRegressionModel(const BOOM::HierarchicalPoissonRegressionModel&)’:
Models/Glm/HierarchicalPoissonRegression.cpp:36: warning: comparison between signed and unsigned integer expressions
Models/Glm/HierarchicalPoissonRegression.cpp: In member function ‘virtual void BOOM::HierarchicalPoissonRegressionModel::clear_data()’:
Models/Glm/HierarchicalPoissonRegression.cpp:65: warning: comparison between signed and unsigned integer expressions

make: *** [Models/Glm/HierarchicalPoissonRegression.o] Error 1
ERROR: compilation failed for package ‘Boom’
* removing ‘/usr/lib64/R/library/Boom’


Need further help.

Regards,
Jitendra Jain

Kay Brodersen

unread,
Jan 16, 2015, 11:03:07 AM1/16/15
to Jitendra Jain, causal...@googlegroups.com
Hi Jitendra,

This may be because of an outdated GCC on your machine. Updating GCC to a recent version should resolve the issue.

Kay

Reply all
Reply to author
Forward
0 new messages