evotools / hapbin

Efficient program for calculating Extended Haplotype Homozygosity (EHH) and Integrated Haplotype Score (iHS)
GNU General Public License v3.0
41 stars 18 forks source link

Illegal instruction (core dumped) #64

Open rodrigopsav opened 3 years ago

rodrigopsav commented 3 years ago

Hello, I am trying to install hapbin with conda package. I created an exclusive environment to do that. When the installation is completed, I tried to access the program by typing ehhbin and it returns: Illegal instruction (core dumped)

Any suggestions? I need to install it with conda because I don't have sudo permitions.

Thanks

lettools commented 3 years ago

Hi

You don't actually need sudo/root permissions to compile and run hapbin. If just follow the commands on the README i.e.:

git clone https://github.com/evotools/hapbin.git cd hapbin/build/ cmake ../src/ make

Then you should see the binaries in the build directory and can run from there. So if still in build directory can just type:

./ehhbin --help

If not in build directory just need to give the appropriate path.

Cheers James

camaclean commented 3 years ago

We don't maintain the conda package. Illegal instruction means it was compiled with CPU features yours doesn't support. Just compile it yourself, which will optimize things the best it can for your CPU.