Answers.Body: <p>From the comments @MollePasscantando successfully ported DNAsp onto a Mac (Air) via Wine, but was not sure how. This is good news because Wine is very commonly used for porting Windows exes. The website states,</p>
  <blockquote>
  <p>Oracle VirtualBox (free open-source). Parallels, CrossOver, VMware
  Fusion (paid-versions; trial period)</p>
  </blockquote>
  <p>From the website it was update in February 26, 2019 and its current Beta Version is 6.12.03.</p>
  <p>There was a major <a href="https://pubmed.ncbi.nlm.nih.gov/29029172/" rel="nofollow noreferrer">published</a> update to the package in Mol Biol Evol in 2017 (version 6) for large data sets (NGS).</p>
  <p>Thus the question is still relevant because they still have not written an OSX specific version and this will limit its performance for the data sets it is now targeted for.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-02-21T16:48:59.333Z
Answers.LastActivityDate: 2022-02-21T16:48:59.333Z
Answers.UserDisplayName: M__
Body: <p>I need to install <a href="http://www.ub.edu/dnasp/" rel="nofollow noreferrer">DnaSp</a>, a nice GUI originally written for Windows for the population genetics of nucleotide sequence data.</p>
  <p>However, its not working on my mac. I'm using wine to install it using <a href="http://www2.ub.es/dnasp/download.html" rel="nofollow noreferrer">these instructions for wine</a>. Wine usually successfully ports Windows programs.</p>
  <p>it successfully installs but then I get this error</p>
  <pre><code>Mollies-MacBook-Air:dnasp51001 molliepassacantando<span class="math-container">$ WINEPREFIX=~/.wine64 wine regsvr32.exe scrrun.dll mfc40.dll threed32.ocx
  regsvr32: Successfully registered DLL 'scrrun.dll'
  regsvr32: Successfully registered DLL 'mfc40.dll'
  err:typelib:sltg_get_typelib_ref Unable to find reference
  err:typelib:sltg_get_typelib_ref Unable to find reference
  err:typelib:sltg_get_typelib_ref Unable to find reference
  err:typelib:sltg_get_typelib_ref Unable to find reference
  err:typelib:sltg_get_typelib_ref Unable to find reference
  err:typelib:sltg_get_typelib_ref Unable to find reference
  regsvr32: Successfully registered DLL 'threed32.ocx'
  Mollies-MacBook-Air:dnasp51001 molliepassacantando$</span> winedevice.exe(30828,0x405ed000) malloc: *** error for object 0x401cea08: pointer being freed was not allocated
  *** set a breakpoint in malloc_error_break to debug
  </code></pre>
  <p>and cannot run it.</p>
  <p>Has anyone successfully installed DnaSp on a Mac or know of an alternate program I could use? I need to be able to calculate haplotype frequencies.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-07-10T17:13:07.483Z
Comments.Text: Hey, I see you found your way here. Great! But as I asked you on [ubuntu.se], why are you using wine? The DnaSP [authors state](http://www.ub.edu/dnasp/DnaSP_OS.html) that on a mac  "You can run DnaSP using SoftWindows, Virtual PC, Parallels Desktop or VMware Fusion software [sic]". Also, please [edit] your question and explain the kind of analysis you need to do. The vast majority of bioinformatics tools don't work on Windows and work fine on a UNIX-based system like Mac. There are almost certainly other choices but we need to know what you are trying to achieve.
Comments.UserDisplayName: terdon
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-07-10T17:13:12.517Z
Comments.Text: Welcome to Bioiformatics stack exchange. We can not suggest you an alternative if we do not understand your problem. Could you [edit] your question to elaborate bit more what you want to use the software for?
Comments.UserDisplayName: Kamil S Jaron
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-07-10T18:48:27.740Z
Comments.Text: @kamil i need it to calculate haplotype frequencies, im using wine because i wasnt sure what other platform to use, and i dont want to pay for software, as i found you needed to do with the suggested programs
Comments.UserDisplayName: Mollie Passacantando
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-07-10T18:52:36.477Z
Comments.Text: @MolliePassacantando that sounds reasonable, I bet there will be a lot of free softwares doing that. However, please [edit] your question so people do not have to search this information in comments. Also do not hesitate to add more information about software you already tried...
Comments.UserDisplayName: Kamil S Jaron
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-07-10T19:22:14.293Z
Comments.Text: @terdon i have edited the question, and am not sure why i cannot run the program with a mac. the file i download from the website is a .msi, which i open using wine, because mac does not read that format
Comments.UserDisplayName: Mollie Passacantando
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-07-13T08:54:16.120Z
Comments.Text: This looks like a WINE error unrelated to DnaSp. How did you install it?
Comments.UserDisplayName: ithinkiam
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-02T20:33:46.217Z
Comments.Text: youre right! it was a WINE error, I managed to get the error to stop showing up, but im not sure how. but it works!
Comments.UserDisplayName: Mollie Passacantando
Tags: <genome><phylogenetics><software-installation>
Title: How to install DnaSP on a Mac
ThreadText: # How to install DnaSP on a Mac
  
  (Asked by: username_0 on 2017-07-10)
  
  I need to install [DnaSp](http://www.ub.edu/dnasp/), a nice GUI originally written for Windows for the population genetics of nucleotide sequence data.
  
  However, its not working on my mac. I'm using wine to install it using [these instructions for wine](http://www2.ub.es/dnasp/download.html). Wine usually successfully ports Windows programs.
  
  it successfully installs but then I get this error
  
  ```
  Mollies-MacBook-Air:dnasp51001 username_0$ WINEPREFIX=~/.wine64 wine regsvr32.exe scrrun.dll mfc40.dll threed32.ocx
  regsvr32: Successfully registered DLL 'scrrun.dll'
  regsvr32: Successfully registered DLL 'mfc40.dll'
  err:typelib:sltg_get_typelib_ref Unable to find reference
  err:typelib:sltg_get_typelib_ref Unable to find reference
  err:typelib:sltg_get_typelib_ref Unable to find reference
  err:typelib:sltg_get_typelib_ref Unable to find reference
  err:typelib:sltg_get_typelib_ref Unable to find reference
  err:typelib:sltg_get_typelib_ref Unable to find reference
  regsvr32: Successfully registered DLL 'threed32.ocx'
  Mollies-MacBook-Air:dnasp51001 username_0$ winedevice.exe(30828,0x405ed000) malloc: *** error for object 0x401cea08: pointer being freed was not allocated
  *** set a breakpoint in malloc_error_break to debug
  
  ```
  
  and cannot run it.
  
  Has anyone successfully installed DnaSp on a Mac or know of an alternate program I could use? I need to be able to calculate haplotype frequencies.
  
  **Tags:** genome, phylogenetics, software-installation
  
  > **Comments:**
  > **username_1**: Hey, I see you found your way here. Great! But as I asked you on [ubuntu.se], why are you using wine? The DnaSP [authors state](http://www.ub.edu/dnasp/DnaSP_OS.html) that on a mac  "You can run DnaSP using SoftWindows, Virtual PC, Parallels Desktop or VMware Fusion software [sic]". Also, please [edit] your question and explain the kind of analysis you need to do. The vast majority of bioinformatics tools don't work on Windows and work fine on a UNIX-based system like Mac. There are almost certainly other choices but we need to know what you are trying to achieve.  
  > **username_2**: Welcome to Bioiformatics stack exchange. We can not suggest you an alternative if we do not understand your problem. Could you [edit] your question to elaborate bit more what you want to use the software for?  
  > **username_0**: @username_2 i need it to calculate haplotype frequencies, im using wine because i wasnt sure what other platform to use, and i dont want to pay for software, as i found you needed to do with the suggested programs  
  > **username_2**: @username_0 that sounds reasonable, I bet there will be a lot of free softwares doing that. However, please [edit] your question so people do not have to search this information in comments. Also do not hesitate to add more information about software you already tried...  
  > **username_0**: @username_1 i have edited the question, and am not sure why i cannot run the program with a mac. the file i download from the website is a .msi, which i open using wine, because mac does not read that format  
  > **username_3**: This looks like a WINE error unrelated to DnaSp. How did you install it?  
  > **username_0**: youre right! it was a WINE error, I managed to get the error to stop showing up, but im not sure how. but it works!  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_4 on 2022-02-21. Score: 0
  
  From the comments @MollePasscantando successfully ported DNAsp onto a Mac (Air) via Wine, but was not sure how. This is good news because Wine is very commonly used for porting Windows exes. The website states,
  
  > Oracle VirtualBox (free open-source). Parallels, CrossOver, VMware
  > Fusion (paid-versions; trial period)
  
  From the website it was update in February 26, 2019 and its current Beta Version is 6.12.03.
  
  There was a major [published](https://pubmed.ncbi.nlm.nih.gov/29029172/) update to the package in Mol Biol Evol in 2017 (version 6) for large data sets (NGS).
  
  Thus the question is still relevant because they still have not written an OSX specific version and this will limit its performance for the data sets it is now targeted for.
  
  
  ---
  
  