Code Monkey home page Code Monkey logo

nlvelo's People

Contributors

sqjin avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nlvelo's Issues

Installation issue with -lomp

Hi,

I tried to compile nlvelo in Ubuntu 20.04 as wsl2 in Widows 10 system. A following is the output of the build:

> remotes::install_github("sqjin/nlvelo")
Downloading GitHub repo sqjin/nlvelo@HEAD
Skipping 1 packages not available: pcaMethods
Running `R CMD build`...
* checking for file ‘/tmp/RtmpHgIEvc/remotes6b1772fe93d9/sqjin-nlvelo-fa4e3aa/DESCRIPTION’ ... OK
* preparing ‘nlvelo’:
* checking DESCRIPTION meta-information ... OK
* cleaning src
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
* building ‘nlvelo_1.0.0.tar.gz’
Installing package into ‘/home/rstudio/R/x86_64-pc-linux-gnu-library/4.1’
(as ‘lib’ is unspecified)
* installing *source* package ‘nlvelo’ ...
** using staged installation
** libs
/usr/bin/clang++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I'/home/rstudio/R/x86_64-pc-linux-gnu-library/4.1/Rcpp/include' -I'/home/rstudio/R/x86_64-pc-linux-gnu-library/4.1/RcppArmadillo/include' -I"/usr/lib/llvm-13/include"  -fopenmp -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-i2PIHO/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c RcppExports.cpp -o RcppExports.o
/usr/bin/clang++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I'/home/rstudio/R/x86_64-pc-linux-gnu-library/4.1/Rcpp/include' -I'/home/rstudio/R/x86_64-pc-linux-gnu-library/4.1/RcppArmadillo/include' -I"/usr/lib/llvm-13/include"  -fopenmp -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-i2PIHO/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c points_within.cpp -o points_within.o
/usr/bin/clang++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I'/home/rstudio/R/x86_64-pc-linux-gnu-library/4.1/Rcpp/include' -I'/home/rstudio/R/x86_64-pc-linux-gnu-library/4.1/RcppArmadillo/include' -I"/usr/lib/llvm-13/include"  -fopenmp -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-i2PIHO/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c routines.cpp -o routines.o
/usr/bin/clang++ -std=gnu++11 -shared -L/usr/lib/R/lib -L/usr/lib/llvm-13/lib -Wl,-rpath,/usr/lib/llvm-13/lib -o nlvelo.so RcppExports.o points_within.o routines.o -lboost_filesystem -lboost_system -lstdc++ -llapack -lblas -fopenmp -L/usr/lib/gcc/x86_64-linux-gnu/9 -lm -L/usr/lib/R/lib -lR
/usr/bin/ld: cannot find -lomp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/usr/share/R/share/make/shlib.mk:10: nlvelo.so] Error 1
ERROR: compilation failed for package ‘nlvelo’
* removing ‘/home/rstudio/R/x86_64-pc-linux-gnu-library/4.1/nlvelo’
Warning message:
In i.p(...) :
  installation of package ‘/tmp/RtmpHgIEvc/file6b1749ad06ad/nlvelo_1.0.0.tar.gz’ had non-zero exit status

libomp is installed ;

dpkg -l libomp-dev

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Architecture Description
+++-==============-==============-============-=================================
ii  libomp-dev     1:10.0-50~exp1 amd64        LLVM OpenMP runtime - dev package

but for some reasons, the id cant find the libomp.

I appreciate your help to install this package.

> sessionInfo()
R version 4.1.2 (2021-11-01)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.3 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0

locale:
 [1] LC_CTYPE=C.UTF-8       LC_NUMERIC=C           LC_TIME=C.UTF-8       
 [4] LC_COLLATE=C.UTF-8     LC_MONETARY=C.UTF-8    LC_MESSAGES=C.UTF-8   
 [7] LC_PAPER=C.UTF-8       LC_NAME=C              LC_ADDRESS=C          
[10] LC_TELEPHONE=C         LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C   

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

loaded via a namespace (and not attached):
[1] compiler_4.1.2 tools_4.1.2    curl_4.3.2     remotes_2.4.2 
 neofetch
            .-/+oossssoo+/-.               root@IN-OTA-204152
        `:+ssssssssssssssssss+:`           ------------------
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 20.04.3 LTS on Windows 10 x86_64
    .ossssssssssssssssssdMMMNysssso.       Kernel: 5.4.72-microsoft-standard-WSL2
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Uptime: 22 days, 5 hours, 4 mins
  +ssssssssshmydMMMMMMMNddddyssssssss+     Packages: 1310 (dpkg)
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Shell: zsh 5.8
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Terminal: /dev/pts/0
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   CPU: Intel Xeon Gold 6230 (40) @ 2.094GHz
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   Memory: 1480MiB / 102724MiB
ossyNMMMNyMMhsssssssssssssshmmmhssssssso
+sssshhhyNMMNyssssssssssssyNMMMysssssss+
.ssssssssdMMMNhsssssssssshNMMMdssssssss.
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/
  +sssssssssdmydMMMMMMMMddddyssssssss+
   /ssssssssssshdmNNNNmyNMMMMhssssss/
    .ossssssssssssssssssdMMMNysssso.
      -+sssssssssssssssssyyyssss+-
        `:+ssssssssssssssssss+:`
            .-/+oossssoo+/-.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.