velocyto.R icon indicating copy to clipboard operation
velocyto.R copied to clipboard

velocyto.R installation error : velocyto.R_0.6.tar.gz’ had non-zero exit status

Open BeyondMyPast228 opened this issue 4 years ago • 9 comments

Hi, After Knowing Velocyto, I wanted to install it and do some data analysis. But when I install it, there are always some errors. The error is: /usr/bin/ld: cannot find -lboost_filesystem /usr/bin/ld: cannot find -lboost_system collect2: error: ld returned 1 exit status /usr/share/R/share/make/shlib.mk:6: recipe for target 'velocyto.R.so' failed make: *** [velocyto.R.so] Error 1 ERROR: compilation failed for package ‘velocyto.R’

  • removing ‘/home/vip1/R/x86_64-pc-linux-gnu-library/3.6/velocyto.R’ Error: Failed to install 'velocyto.R' from GitHub: (converted from warning) installation of package ‘/tmp/RtmpIlvxHX/file1dde55fac39b1/velocyto.R_0.6.tar.gz’ had non-zero exit status. Can you help me?

BeyondMyPast228 avatar Jul 03 '20 09:07 BeyondMyPast228

You need to install boost libraries

guijie2015 avatar Jul 07 '20 08:07 guijie2015

Hi @guijie2015, I had the same issue and installed the BH package as indicated here https://r-forge.r-project.org/R/?group_id=1469.

However when I try again to install velocyto.R via devtools I get exactly the same error. Do you know I can make R to find the boost libraries?

SabrinaITNL avatar Jul 28 '20 16:07 SabrinaITNL

Hi, What is your operating system? My operating system is Ubuntu. My solution is : RUN apt-get update --yes && apt-get install --no-install-recommends --yes
build-essential
cmake
git
libbamtools-dev
libboost-dev
libboost-iostreams-dev
libboost-log-dev
libboost-system-dev
libboost-test-dev
libssl-dev
libcurl4-openssl-dev
libxml2-dev
libz-dev
curl
libhdf5-cpp-100 \ libarmadillo7
libarmadillo-dev
When I manually installed these Lib's one by one, the problem was solved.

BeyondMyPast228 avatar Jul 29 '20 02:07 BeyondMyPast228

Hi @guijie2015, I had the same issue and installed the BH package as indicated here https://r-forge.r-project.org/R/?group_id=1469.

However when I try again to install velocyto.R via devtools I get exactly the same error. Do you know I can make R to find the boost libraries?

you need to install boost libraries in your system, not the packages in your R

guijie2015 avatar Jul 29 '20 14:07 guijie2015

Hi! I had the same issue, thank you for the thread! An additional comment, I was working in a conda environment, installing this from conda forge resolved the issue: https://anaconda.org/conda-forge/boost-cpp

eregenyi avatar Apr 30 '21 12:04 eregenyi

you need to install boost libraries in your system, not the packages in your R

@guijie2015 I have installed the boost libraries as recommended. But I still see the following error related to boost!

/usr/bin/ld: cannot find -lboost_filesystem
/usr/bin/ld: cannot find -lboost_system
collect2: error: ld returned 1 exit status
/usr/share/R/share/make/shlib.mk:6: recipe for target 'velocyto.R.so' failed
make: *** [velocyto.R.so] Error 1
ERROR: compilation failed for package ‘velocyto.R’
* removing ‘/home/ishwar/R/x86_64-pc-linux-gnu-library/3.6/velocyto.R’
Warning message:
In i.p(...) :
  installation of package ‘/tmp/RtmpVcp7PE/file2dd667f51b8e/velocyto.R_0.6.tar.gz’ had non-zero exit status

Is R not able find the installation path for the boost libraries?

ishwarvh avatar May 13 '21 04:05 ishwarvh

Same issues

Junedays avatar Nov 06 '22 16:11 Junedays

Same issues in windows

Marfa-chan avatar Nov 25 '22 10:11 Marfa-chan