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
Already downloaded: /Users/yuan/Library/Caches/Homebrew/
==> ./
Last 15 lines from /Users/yuan/Library/Logs/Homebrew/libpcp/

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

READ THIS: 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 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 file.