git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Unable to install git-2.43.0 from source on macOS Big Sur 11.7.10

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Dec 18, 2023, 01:02 UTC
Message-ID
<CAPig+cTEmiQzD7D7qEKDsyGf+08AtNQzy=GfPZDrRtM2ytKnUw@mail.gmail.com>
In-Reply-To
<IA1PR12MB604488A775E3390E9B7E56BEB891A@IA1PR12MB6044.namprd12.prod.outlook.com>

On Sun, Dec 17, 2023 at 5:54 PM Jonathan Abrams <jonathansabrams@outlook.com> wrote:

> I am trying to install git-2.43.0 from source on macOS Big Sur 11.7.10.  I have Xcode 13.2.1 installed.  I have read https://github.com/git/git/blob/master/INSTALL.
>
> The command that will not complete successfully is sudo make all doc.  The Terminal output before the error is as follows.

What steps did you take to build the project? Did you simply use `make all` alone, or did you run `configure` first? Generally speaking, running `configure` should be unnecessary on most platforms.

> Undefined symbols for architecture x86_64:
>   "_libiconv", referenced from:
>       _precompose_utf8_readdir in libgit.a(precompose_utf8.o)
>       _reencode_string_iconv in libgit.a(utf8.o)

It looks like it's not linking against `libiconv`. Aside from answering the above question (and reporting the contents of "config.mak.autogen" if you did run `configure`), you can also run make as:

    make V=1 all

to see the actual command it's running at the point of failure. If you paste that command, then we can find out whether or not it's trying to link against `libiconv`.

Previous: Jonathan AbramsNext: Eric Sunshine
Message 2 of 4 in “Unable to install git-2.43.0 from source on macOS Big Sur 11.7.10”
  1. Jonathan AbramsDec 17, 2023
  2. Eric SunshineDec 18, 2023
  3. Eric SunshineDec 19, 2023
  4. Jonathan AbramsDec 21, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.