Couldn't figure out what went wrong in formula


(Yuan Fu) #1

I am trying to add a formula of libpcp:

However, brew install libpcp always return error without any useful information.

Installing manually with same commands (didn’t use sudo) works well, so I don’t know what goes wrong.

Any ideas? Thanks.

My formula:

Error code:

/u/l/H/L/T/h/homebrew-core ❯❯❯ brew install --build-from-source libpcp               ✘ 1 libpcp ✭ ◼
==> Downloading https://github.com/libpcp/pcp/archive/master.zip
Already downloaded: /Users/yuan/Library/Caches/Homebrew/libpcp-0.0.1.zip
==> ./autogen.sh
Last 15 lines from /Users/yuan/Library/Logs/Homebrew/libpcp/01.autogen.sh:

Running aclocal...
Running autoheader...
Running autoconf...
Running libtoolize...
./autogen.sh: line 21: libtoolize: command not found
Running automake...
configure.ac:6: installing './ar-lib'
configure.ac:6: installing './compile'
configure.ac:2: installing './config.guess'
configure.ac:2: installing './config.sub'
configure.ac:4: installing './install-sh'
configure.ac:4: installing './missing'
parallel-tests: installing './test-driver'
libpcp/Makefile.am: installing './depcomp'

READ THIS: https://docs.brew.sh/Troubleshooting.html

autogen.sh file:


(Sean Molenaar) #2

It says it can’t find the libtoolize command. Do you have it installed on your system, and required in the formula?


(Yuan Fu) #3

I have libtool installed on my machine and I have added it to depend_on.

In the autopen.sh there is the line

echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1

So it should run glibtoolize which I have on my machine.

Maybe there is something else? I’ll post the autgen.sh file.