# Unable to install bedtools on windows 10 ubuntu

I am trying to install bedtools on windows 10, but I get an error I don't understand. How can I fix it?

Building BEDTools:
=========================================================
DETECTED_VERSION = v2.27.1
CURRENT_VERSION  =
Updating version file.
* Creating BamTools API
- Building in src/utils/FileRecordTools
* compiling FileRecordMgr.cpp
Makefile:36: recipe for target '../../../obj//FileRecordMgr.o' failed
make[1]: *** [../../../obj//FileRecordMgr.o] Error 127
Makefile:186: recipe for target 'src/utils/FileRecordTools' failed
make: *** [src/utils/FileRecordTools] Error 2

• Hi there, I suppose you use the bash terminal available at windows 10, is that correct? The error says that you don't have a compiler for c++ called g++. You can try install it by sudo apt-get install g++. Then run make again. Mar 5 '19 at 8:41
• Turns out that something went wrong the first time I tried to install g++, but I didn't see the error message. Mar 6 '19 at 20:37

My personal advice would be to avoid compiling tools like this if you can avoid it, especially where you are using a "barebones" setup like the one you get with WSL Ubunutu as you'll almost always run into dependency issues.

The linux version of conda installs just fine in WSL and bioconda hae pretty much any bioinformatics package you might need, already compiled.

• If you have admin privileges, the easiest way to install g++ is sudo apt-get install -y build-essential. Mar 4 '19 at 17:38
• Oops, I missed the "Windows" part and only saw Ubuntu. 🤭 It looks like apt-get is supported though. howtogeek.com/261449/… Mar 4 '19 at 17:51
• I had tried that, but another error popped up without it realizing. However, the following error popped up after entering make, and I can't tell if this is critical for the functionality of bedtools: - Building main bedtools binary. done. - Creating executables for old CLI. /bin/bash: python: command not found Makefile:145: recipe for target 'all' failed make: *** [all] Error 127 Mar 4 '19 at 21:49
• Please add the new issue to original post. This is saying that you don't have python installed. I think that if you don't want to use the legacy CLI (command line interface) you should be all set. You can try running bedtools and see if you get a usage prompt. Mar 4 '19 at 23:32