rcppmlpack / rcppmlpack2

Rcpp Interface to mlpack (version 2.1.0 and up)
GNU General Public License v2.0
24 stars 9 forks source link

can't install from source #22

Closed Shimura233 closed 5 years ago

Shimura233 commented 5 years ago

My operating system is Ubuntu. When I tried to install rcppmlpack2 from source, after I ran ./configure, I ran make. However, it told me there is no file to be make. Could you please give me some advice? Thanks!

eddelbuettel commented 5 years ago

You may be lacking some familiariry with how software is used, and what diagnostics to look at.

In particular, pay closer attentiont to what ./configure is reporting.

I am on Ubuntu, and develop RcppMLPACK2 here. But you failed to report

For what it is worth:

edd@rob:~$ COLUMNS=92 dpkg -l | grep mlpack
ii  libmlpack-dev:amd64 3.0.3-2build1  amd64  intuitive, fast, scalable C++ machine learn
ii  libmlpack3:amd64    3.0.3-2build1  amd64  intuitive, fast, scalable C++ machine learn
edd@rob:~$ 

Then:

edd@rob:~/git/rcppmlpack2(master)$ ./cleanup 
edd@rob:~/git/rcppmlpack2(master)$ R CMD INSTALL .
* installing to library ‘/usr/local/lib/R/site-library’
* installing *source* package ‘RcppMLPACK’ ...
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether ccache g++ accepts -g... yes
checking how to run the C++ preprocessor... ccache g++ -E
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether ccache g++ accepts -g... (cached) yes
checking whether ccache g++ supports C++11 features by default... yes
checking for pkg-config... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether ccache g++ accepts -g... (cached) yes
checking whether g++ version is sufficient... yes, with OpenMP as version 8.2.0
checking for macOS... not found
checking for OpenMP... found and suitable
configure: creating ./config.status
config.status: creating src/Makevars
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating R/inline.R

RcppMLPACK 3.0.1-1
==================

compiler:       ccache g++
cflags:         -I/usr/include/ $(SHLIB_OPENMP_CXXFLAGS)
libs:           -lrt -larmadillo -lboost_program_options -lboost_unit_test_framework -lboost_serialization -lmlpack $(SHLIB_OPENMP_CXXFLAGS)
pkgconfig:      yes

** libs
ccache g++  -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/RcppArmadillo/include"   -I. -I../inst/include -I/usr/include/ -fopenmp -fpic  -g -O3 -Wall -pipe  -Wno-misleading-indentation -Wno-unused -Wno-ignored-attributes -c LARS.cpp -o LARS.o
ccache g++  -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/RcppArmadillo/include"   -I. -I../inst/include -I/usr/include/ -fopenmp -fpic  -g -O3 -Wall -pipe  -Wno-misleading-indentation -Wno-unused -Wno-ignored-attributes -c RcppExports.cpp -o RcppExports.o
ccache g++  -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/RcppArmadillo/include"   -I. -I../inst/include -I/usr/include/ -fopenmp -fpic  -g -O3 -Wall -pipe  -Wno-misleading-indentation -Wno-unused -Wno-ignored-attributes -c coverTreeNeighbor.cpp -o coverTreeNeighbor.o
ccache g++  -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/RcppArmadillo/include"   -I. -I../inst/include -I/usr/include/ -fopenmp -fpic  -g -O3 -Wall -pipe  -Wno-misleading-indentation -Wno-unused -Wno-ignored-attributes -c kMeans.cpp -o kMeans.o
ccache g++  -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/RcppArmadillo/include"   -I. -I../inst/include -I/usr/include/ -fopenmp -fpic  -g -O3 -Wall -pipe  -Wno-misleading-indentation -Wno-unused -Wno-ignored-attributes -c linearRegression.cpp -o linearRegression.o
ccache g++  -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/RcppArmadillo/include"   -I. -I../inst/include -I/usr/include/ -fopenmp -fpic  -g -O3 -Wall -pipe  -Wno-misleading-indentation -Wno-unused -Wno-ignored-attributes -c logisticRegression.cpp -o logisticRegression.o
ccache g++  -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/RcppArmadillo/include"   -I. -I../inst/include -I/usr/include/ -fopenmp -fpic  -g -O3 -Wall -pipe  -Wno-misleading-indentation -Wno-unused -Wno-ignored-attributes -c naiveBayesClassifier.cpp -o naiveBayesClassifier.o
ccache g++ -std=gnu++11 -Wl,-S -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o RcppMLPACK.so LARS.o RcppExports.o coverTreeNeighbor.o kMeans.o linearRegression.o logisticRegression.o naiveBayesClassifier.o -lrt -larmadillo -lboost_program_options -lboost_unit_test_framework -lboost_serialization -lmlpack -llapack -lblas -lgfortran -lm -lquadmath -fopenmp -L/usr/lib/R/lib -lR
installing to /usr/local/lib/R/site-library/RcppMLPACK/libs
** R
** data
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (RcppMLPACK)
edd@rob:~/git/rcppmlpack2(master)$ 
eddelbuettel commented 5 years ago

Oh, also as I keep forgetting: I built Docker containers for this. If you can run Docker then look here: https://cloud.docker.com/u/rcppmlpack/repository/list