Compiling DIAMOND from source for mac

elcega

New member
Hi,

I have successfully downloaded and followed the instructions from the "README" doc to compile DIAMOND form source using

wget http://github.com/bbuchfink/diamond/archive/v0.8.38.tar.gz
tar xzf v0.8.38.tar.gz
cd diamond-0.8.38
mkdir bin
cd bin
cmake ..

make install

Seems like it has been successfully installed:

-- Install configuration: "Release"
-- Installing: /usr/local/bin/diamond


However, when running my script on mac terminal the file cannot be executed as it is asking me

ERROR: Diamond not found (did you extract it?) at /Users/programs/diamond

How does the executable file need to look like? Seems like it is still generating a unix executable file that mac cannot read?

Thanks,

E
 

Benjamin Buchfink

Administrator
Staff member
Hi,

have you tried typing the full path: /usr/local/bin/diamond

Diamond does run on a Mac if you compile it from source.

P.S.: the version you are using is pretty old, I'd recommend using the latest version.
 

elcega

New member
Hi,
Typing the full path confirmed that diamond was working fine. I just dragged the file into the directory I was referring on the script and it worked.
I also downloaded the last version,

Thanks for your help.

E
 

elcega

New member
Hi,

Seems like the latest version of diamond (9.24) is not compatible with the reference database I have.

"Error: Database was built with a different version of Diamond and is incompatible"

Where can I download older versions of diamond? Or would it be easier to download the latest version of databases that are compatible? RefSeq and subways.

Cheers,
E
 
Top