<p>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. </p>

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

CC BY-SA 4.0
2019-03-05T10:52:34.233Z
2019-03-05T10:52:34.233Z
Ian Sudbery
<blockquote>
  <p>make<a href="https://www.cs.odu.edu/~zeil/cs250PreTest/latest/Public/installingACompiler/" rel="nofollow noreferrer">1</a>: g++: Command not found</p>
</blockquote>

<p>You do not have g++ installed on your machine.  This is used to compile the bedtools into an executable file.  </p>

<p><a href="https://www.cs.odu.edu/~zeil/cs250PreTest/latest/Public/installingACompiler/" rel="nofollow noreferrer">Here is a tutorial on installing g++</a> </p>

CC BY-SA 4.0
2019-03-04T17:38:12.273Z
If you have admin privileges, the easiest way to install g++ is `sudo apt-get install -y build-essential`.
Daniel Standage
CC BY-SA 4.0
2019-03-04T17:48:33.533Z
@DanielStandage does that work on Windows? I assume the OP is using the newfangled Ubuntu Subsystem for Windows thing, but I don't know if that can install arbitrary packages like that.
terdon
CC BY-SA 4.0
2019-03-04T17:51:08.823Z
Oops, I missed the "Windows" part and only saw Ubuntu.  It looks like `apt-get` is supported though. https://www.howtogeek.com/261449/how-to-install-linux-software-in-windows-10s-ubuntu-bash-shell/
Daniel Standage
CC BY-SA 4.0
2019-03-04T21:49:55.000Z
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`
DangIt
CC BY-SA 4.0
2019-03-04T23:32:27.190Z
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.
Bioathlete
CC BY-SA 4.0
2019-03-04T17:35:37.833Z
2019-03-04T17:35:37.833Z
Bioathlete
<p>I am trying to install bedtools on windows 10, but I get an error I don't understand. How can I fix it?</p>

<pre><code>Building BEDTools:
=========================================================
DETECTED_VERSION = v2.27.1
CURRENT_VERSION  =
Updating version file.
 * Creating BamTools API
- Building in src/utils/FileRecordTools
  * compiling FileRecordMgr.cpp
make[1]: g++: Command not found
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
</code></pre>

CC BY-SA 4.0
2019-03-05T08:41:38.487Z
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.
Kamil S Jaron
CC BY-SA 4.0
2019-03-06T20:37:24.430Z
Turns out that something went wrong the first time I tried to install g++, but I didn't see the error message.
DangIt
<genome><software-installation><bedtools>
Unable to install bedtools on windows 10 ubuntu
# Unable to install bedtools on windows 10 ubuntu

(Asked by: username_0 on 2019-03-04)

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
make[1]: g++: Command not found
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

**Tags:** genome, software-installation, bedtools
> **Comments:**
> **username_1**: 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.  
> **username_0**: Turns out that something went wrong the first time I tried to install g++, but I didn't see the error message.  

---

## 2 answers

### Answer by username_2 on 2019-03-05. Score: 3

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.


---

### Answer by username_3 on 2019-03-04. Score: 2

> make[1](https://www.cs.odu.edu/~zeil/cs250PreTest/latest/Public/installingACompiler/): g++: Command not found

You do not have g++ installed on your machine. This is used to compile the bedtools into an executable file.

[Here is a tutorial on installing g++](https://www.cs.odu.edu/~zeil/cs250PreTest/latest/Public/installingACompiler/)

> **Comments:**
> **username_4**: If you have admin privileges, the easiest way to install g++ is `sudo apt-get install -y build-essential`.  
> **username_5**: @DanielStandage does that work on Windows? I assume the OP is using the newfangled Ubuntu Subsystem for Windows thing, but I don't know if that can install arbitrary packages like that.  
> **username_4**: Oops, I missed the "Windows" part and only saw Ubuntu.  It looks like `apt-get` is supported though. https://www.howtogeek.com/261449/how-to-install-linux-software-in-windows-10s-ubuntu-bash-shell/  
> **username_0**: 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`  
> **username_3**: 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.  

---

