# How to install DnaSP on a Mac

I need to install DnaSp,

but its not working on my mac. I'm using wine to install it using these instructions for wine.

it successfully installs but then I get this error

Mollies-MacBook-Air:dnasp51001 molliepassacantando$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$ 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.

• Hey, I see you found your way here. Great! But as I asked you on Ask Ubuntu, why are you using wine? The DnaSP authors state 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. Jul 10 '17 at 17:13
• 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? Jul 10 '17 at 17:13
• @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 Jul 10 '17 at 18:48
• @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... Jul 10 '17 at 18:52
• @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 Jul 10 '17 at 19:22