Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-05T10:52:34.233Z
Answers.LastActivityDate: 2019-03-05T10:52:34.233Z
Answers.UserDisplayName: Ian Sudbery
Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-04T17:38:12.273Z
Answers.Text: If you have admin privileges, the easiest way to install g++ is `sudo apt-get install -y build-essential`.
Answers.UserDisplayName: Daniel Standage
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-04T17:48:33.533Z
Answers.Text: @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.
Answers.UserDisplayName: terdon
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-04T17:51:08.823Z
Answers.Text: 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/
Answers.UserDisplayName: Daniel Standage
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-04T21:49:55.000Z
Answers.Text: 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`
Answers.UserDisplayName: DangIt
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-04T23:32:27.190Z
Answers.Text: 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.
Answers.UserDisplayName: Bioathlete
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-04T17:35:37.833Z
Answers.LastActivityDate: 2019-03-04T17:35:37.833Z
Answers.UserDisplayName: Bioathlete
Body: <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>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-03-05T08:41:38.487Z
Comments.Text: 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.
Comments.UserDisplayName: Kamil S Jaron
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-03-06T20:37:24.430Z
Comments.Text: Turns out that something went wrong the first time I tried to install g++, but I didn't see the error message.
Comments.UserDisplayName: DangIt
Tags: <genome><software-installation><bedtools>
Title: Unable to install bedtools on windows 10 ubuntu
ThreadText: # 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**: @username_4 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.  
  
  ---
  
  