tjunier / newick_utils

shell tools for processing phylogenetic trees
Other
101 stars 31 forks source link

Configure fails when following the documentation #4

Closed richelbilderbeek closed 9 years ago

richelbilderbeek commented 9 years ago

I just downloaded the newick_utils source code (I enjoy the binaries of the toolkit a lot!) and wanted to build it, following the instructions in README.md . Sadly, I failed. What did I do wrong?

Following README.md to the letter:

richel@richel-K73E:~/GitHubs/newick_utils$ configure
configure: command not found

Prepend a dot-slash:

richel@richel-K73E:~/GitHubs/newick_utils$ ./configure
bash: ./configure: No such file or directory

Call configure.ac:

richel@richel-K73E:~/GitHubs/newick_utils$ ./configure.ac 
./configure.ac: line 4: syntax error near unexpected token `2.61'
./configure.ac: line 4: `AC_PREREQ(2.61)'

Autoconf configure.ac:

richel@richel-K73E:~/GitHubs/newick_utils$ autoconf configure.ac
configure.ac:6: error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:49: error: possibly undefined macro: AM_PROG_LEX
configure.ac:94: error: possibly undefined macro: AM_CPPFLAGS
configure.ac:133: error: possibly undefined macro: AM_CONDITIONAL

I hope you enjoy me posting this issue, so more users can build the Newick Utilities :-)

josephwb commented 9 years ago

Try:

autoreconf -fi
./configure
make

HTH.

richelbilderbeek commented 9 years ago

Thanks josephwb, that works like a charm! May I add it to the README.md ?

josephwb commented 9 years ago

Glad it worked.

I am not an author of the code. @tjunier would be the person to ask, although I am sure they will see this issue.

tjunier commented 9 years ago

@richelbilderbeek, @josephwb I'll add it to the README ASAP. I am sorry that the instructions are not clear enough. I hope you enjoy the Newick Utils!

richelbilderbeek commented 9 years ago

I submitted a pull request for you with the added text.

Thanks for your work and helpfullness!