1

Hi guys I am trying to install rpy2 python module on linux Mint using pip3 and I am getting this error:

...
/usr/bin/x86_64-linux-gnu-ld: cannot find -llzma
/usr/bin/x86_64-linux-gnu-ld: cannot find -lbz2
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, 
tokenize;__file__='/tmp/pip-build-t481_z1y/rpy2/setup.py'; 
f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
/tmp/pip-p7gpudid-record/install-record.txt --single-version-externally-
managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-
build-t481_z1y/rpy2/

I did everything that I could but this error remains. I have applied the possible solutions apresented here (same error), but without success. Someone please can help me? Complete track error can be found here complete error trace

Danny
  • 1,603
  • 1
  • 15
  • 25
kizus
  • 47
  • 5

1 Answers1

1

you have some missing dependencies for

  • xz-devel
  • bzip2-devel

you can solve this by

sudo apt-get install libbz2-dev xz-utils
Danny
  • 1,603
  • 1
  • 15
  • 25
  • Hi, Danny thanks for answering, but I am using linux Mint, that is based in Ubuntu. So how Can I install this dependencies? I think that is not possible using yum. – kizus Sep 19 '18 at 01:18
  • Hi Danny, thanks for everything. From your answer I could figure out the proper line command that is: sudo apt-get install libbz2-dev xz-utils. But again thank you very much. – kizus Sep 19 '18 at 01:57
  • 1
    @kizus you're welcome, may I recommend to add a tag linux Mint to your question. I'll update answer accordingly. – Danny Sep 19 '18 at 02:46