12

I wanted to learn about autotools, so I just started watching some tutorials on YouTube.

I made a folder named hello and then made a configure.ac file:

AC_INIT([hello],[.01])
AC_OUTPUT 

I saved it and then ran autoreconf -i. Obviously, this didn't work the first time because it was not installed. Then I installed autoconf by the command sudo apt-get install autoconf2.13.

Now after this I again ran autoreconf -i, but now I am getting the error as show below:

Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf2.50 line 196.
Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf2.50 line 196.
Sildoreth
  • 1,822
  • 8
  • 23
  • 40
abkds
  • 267
  • 1
  • 3
  • 12
  • I just checked my hello folder , it created the `configure` and the `autom4te.cache` but still , when running `autoreconf -i` it is showing these two lines of error , will there be any problems in future , what are these errors ? – abkds Mar 07 '14 at 08:00
  • Instead of au→reconf−iautoreconf -i if i do au→conf−iautoconf -i , then it is not showing any error . what are the difference b/w `autoreconf` and `autoconf` command – abkds Mar 07 '14 at 08:06
  • When you have an error message which refers to a program that appears to be missing, like libtoolize here, you can try `apt-file search filename` and replace filename with what you have and it'll tell you what package you need to install. –  Mar 07 '14 at 08:12
  • @illuminE that sure is handy information will remember that for future – abkds Mar 07 '14 at 08:17
  • 1
    sudo apt-get install build-essential libtool worked for me - I would up vote it but I don't have the reputation to do so – kris Oct 14 '14 at 05:27

2 Answers2

38

You should do sudo apt-get install build-essential libtool

UVV
  • 2,928
  • 3
  • 23
  • 36
5

Try this..

sudo apt-get install automake autoconf libtool autoreconf -i

This worked for me.

pbu
  • 161
  • 1
  • 3