Skip to content

Build fails because of "checking for tgetent()... configure: error: NOT FOUND!" using brew #12

@maedy

Description

@maedy

Hi team,

The following fails with "checking for tgetent()... configure: error: NOT FOUND!":

$ brew install --HEAD macvim-kaoriya

I'm using the following instead of original one, because the version of Adobe-Japan1-7 is no longer available:
macvim-kaoriya.rb.tar.gz

And the logs of configure is below:
01.configure.tar.gz

That fails with the following error:

checking --with-tlib argument... ncurses
checking for linking with ncurses library... OK
checking for tgetent()... configure: error: NOT FOUND!
      You need to install a terminal library; for example ncurses.
      Or specify the name of the library with --with-tlib.

In my assumption, it appears that autotools refer to "/usr/lib" for libncurses, however; recent version of macOS does not allow users to place files at the directory.
I could change the order of searching shared object so called dylib in macOS so that "./configure" can find "/usr/local/opt/ncurses/lib/"; however, I'm not familiar with brew and macOS environment.

Could anyone know how to pass under /usr/local for LD_LIBRARY_PATH in brew instead of "/usr/lib"?

My environment is as follows:

$ uname -a
Darwin erena.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64

I could write this issue with MacVim + Kaoriya Patch in macOS Big Sur version 11.2.2.

Many thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions