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

Install Error on RedHat #116

Open
myloginid opened this issue Jan 15, 2016 · 1 comment
Open

Install Error on RedHat #116

myloginid opened this issue Jan 15, 2016 · 1 comment

Comments

@myloginid
Copy link

Hi,

Pls check the below install error. The dependencies of Rcpp (≥ 0.11), Matrix, digest (≥ 0.6.8), magrittr (≥ 1.5) are all satisfied.

[mm@x01tbipapp3a R]$ sudo R CMD INSTALL FeatureHashing_0.9.1.1.tar.gz

  • installing to library ‘/usr/lib64/RRO-8.0.2/R-3.1.2/lib64/R/library’
  • installing source package ‘FeatureHashing’ ...
    ** package ‘FeatureHashing’ successfully unpacked and MD5 sums checked
    ** libs
    g++ -std=c++0x -I/usr/lib64/RRO-8.0.2/R-3.1.2/lib64/R/include -DNDEBUG -I/usr/local/include -I"/usr/lib64/RRO-8.0.2/R-3.1.2/lib64/R/library/Rcpp/include" -I"/usr/lib64/RRO-8.0.2/R-3.1.2/lib64/R/library/digest/include" -I"/usr/lib64/RRO-8.0.2/R-3.1.2/lib64/R/library/BH/include" -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o
    g++ -std=c++0x -I/usr/lib64/RRO-8.0.2/R-3.1.2/lib64/R/include -DNDEBUG -I/usr/local/include -I"/usr/lib64/RRO-8.0.2/R-3.1.2/lib64/R/library/Rcpp/include" -I"/usr/lib64/RRO-8.0.2/R-3.1.2/lib64/R/library/digest/include" -I"/usr/lib64/RRO-8.0.2/R-3.1.2/lib64/R/library/BH/include" -fpic -g -O2 -c as.cpp -o as.o
    as.cpp: In function ‘void pair_sort(int_, double_, size_t)’:
    as.cpp:26: error: expected primary-expression before ‘[’ token
    as.cpp:26: error: expected primary-expression before ‘]’ token
    as.cpp:26: error: expected primary-expression before ‘a’
    as.cpp:26: error: expected primary-expression before ‘b’
    make: *** [as.o] Error 1
    ERROR: compilation failed for package ‘FeatureHashing’
  • removing ‘/usr/lib64/RRO-8.0.2/R-3.1.2/lib64/R/library/FeatureHashing’
    [mm@x01tbipapp3a R]$

Thanks,
Manish

@wush978
Copy link
Owner

wush978 commented Jan 15, 2016

@myloginid

I guess you need to update your gcc to build FeatureHashing. In my last experience, I cannot build it with gcc 4.6 on our Centos server. But it works with gcc 4.8.

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