Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not install in MacOSX #186

Open
ricounet67 opened this issue Sep 1, 2022 · 1 comment
Open

Can not install in MacOSX #186

ricounet67 opened this issue Sep 1, 2022 · 1 comment
Labels

Comments

@ricounet67
Copy link

ricounet67 commented Sep 1, 2022

I have Rust install with Homebrew and I can't install cargo-update.
If I run the command cargo install cargo-update, the installation fails at the very end of the process with the following error messages :

  Compiling git2 v0.11.0
error: linking with `cc` failed: exit status: 1
= note: Undefined symbols for architecture x86_64:
            "_libiconv", referenced from:
                _git_path_iconv in liblibgit2_sys-b19a94382bcd229c.rlib(path.o)
            "_libiconv_open", referenced from:
                _git_path_direach in liblibgit2_sys-b19a94382bcd229c.rlib(path.o)
                _git_path_iconv_init_precompose in liblibgit2_sys-b19a94382bcd229c.rlib(path.o)
                _git_path_diriter_init in liblibgit2_sys-b19a94382bcd229c.rlib(path.o)
            "_libiconv_close", referenced from:
                _git_path_direach in liblibgit2_sys-b19a94382bcd229c.rlib(path.o)
                _git_path_iconv_clear in liblibgit2_sys-b19a94382bcd229c.rlib(path.o)
                _git_path_diriter_free in liblibgit2_sys-b19a94382bcd229c.rlib(path.o)
                _git_path_dirload in liblibgit2_sys-b19a94382bcd229c.rlib(path.o)
          ld: symbol(s) not found for architecture x86_64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: could not compile `cargo-update` due to previous error
error: failed to compile `cargo-update v8.1.4`, intermediate artifacts can be found at `/var/folders/1n/ghmw9sj13m3428cl4z3_x0bm0000gn/T/cargo-installicU40Z`

I have a MacBook Pro with an Intel processor running Mac OSX 12.5.1

@nabijaczleweli
Copy link
Owner

Looks similar to #176, which was forwarded to rust-lang/git2-rs#830, which was forwarded to https://gitlab.kitware.com/cmake/cmake/-/issues/23515

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants