millanek / fineRADstructure

A package for population structure inference from RAD-seq data
https://www.milan-malinsky.org/fineradstructure
Other
31 stars 7 forks source link

Installation problem #27

Open alexyr23 opened 1 year ago

alexyr23 commented 1 year ago

Hi, I'm working with on Linux and I have problem with fineRADstructure installation.

Everything seems to work for the first steps. I do : ./configure make It returns : "/bin/sh: aclocal-1.14: command not found" So i do : aclocal autoconf automake -a

Then : ./configure make

It finally prints this error : collect2: error: ld returned 1 exit status make: *** [Makefile:645: finestructure] Error 1

I don't understand from where this comes from. Is there anyone that knows how to fix this ?

Thanks in advance,

hermannschwaerzlerUIBK commented 1 year ago

Hi @alexyr23,

I had the very same problem here! From what I can tell the problem is that make does not only build the binaries. It first runs automake or similar tools. Which I think is not necessary.

My workaround is this (as you can see, I am not an autotools expert):

./configure
sed --in-place -r -e 's/(aclocal|automake)-1\.14/echo/' Makefile
make  # "aclocal-1.14: command not found" error
sed --in-place -r -e 's/(aclocal|automake)-1\.14/echo/' Makefile
make  # works this time

Maybe this is helpful?

Regards, Hermann