# How can I configure Pkg to use specific git

**URL:** <https://discourse.julialang.org/t/how-can-i-configure-pkg-to-use-specific-git/71420>\
**Category:** General Usage\
**Tags:** pkg\
**Created:** [November 13, 2021, 6:23am UTC](https://discourse.julialang.org/t/how-can-i-configure-pkg-to-use-specific-git/71420 "2021-11-13T06:23:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![liuyxpp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/liuyxpp/32/9870_2.png) [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Post date:** [November 13, 2021, 6:23am UTC](https://discourse.julialang.org/t/how-can-i-configure-pkg-to-use-specific-git/71420/1 "2021-11-13T06:23:16Z")

</div>

After I upgrade to MacOS Monterey, my Homebrew installed git does not work. I have uninstalled that git. Now I can use the Xcode git (/usr/bin/git) in the terminal. But when I add/update a github repo, I get the following error

```julia
(test) pkg> add "git@github.com:liuyxpp/PolymerArchitecture.jl.git#main"
     Cloning git-repo `git@github.com:liuyxpp/PolymerArchitecture.jl.git#main`
dyld[32048]: missing symbol called

signal (6): Abort trap: 6
in expression starting at none:0

```

The error message is the same as those emitted by my previous Homebrew installed git.

Edit:

Anyone know how to find out which symbol in which lib I am missing?

Edit 2:

The issue is finally solved. I have exported some paths for `DYLD_LIBRARY_PATH` and `LD_LIBRARY_PATH` in my `.bash_profile` long time ago which may provide an inconsistent version of some linked library for git. I find this out by trying to compile git from source. And indeed the linking stage of the compilation failed due to a link error related to `libiconv`, which points me to check my LD flags and settings.

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [November 13, 2021, 6:44am UTC](https://discourse.julialang.org/t/how-can-i-configure-pkg-to-use-specific-git/71420/2 "2021-11-13T06:44:14Z")

</div>

Probably same reason as [https://github.com/JuliaLang/Downloads.jl/issues/149](https://github.com/JuliaLang/Downloads.jl/issues/149)

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [November 13, 2021, 12:13pm UTC](https://discourse.julialang.org/t/how-can-i-configure-pkg-to-use-specific-git/71420/3 "2021-11-13T12:13:35Z")

</div>

FYI, a new 1.6 release is in the pipeline which should fix this. If you can, please try out the `release-1.6` branch on the Julia repo and see if this fixes it for you.

---

<div class="post-metadata">

**Author:** ![liuyxpp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/liuyxpp/32/9870_2.png) [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Post date:** [December 16, 2021, 7:59am UTC](https://discourse.julialang.org/t/how-can-i-configure-pkg-to-use-specific-git/71420/4 "2021-12-16T07:59:57Z")

</div>

I have tried Julia 1.7.0, the issue still preserves. I can `add` registered packages, though. However, I cannot `add` unregistered packages, and cannot `registry add` a private registry hosted as a private github repo.

---

<div class="post-metadata">

**Author:** ![liuyxpp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/liuyxpp/32/9870_2.png) [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Post date:** [December 16, 2021, 9:19am UTC](https://discourse.julialang.org/t/how-can-i-configure-pkg-to-use-specific-git/71420/5 "2021-12-16T09:19:01Z")

</div>

The issue is finally solved. I have exported some paths for `DYLD_LIBRARY_PATH` and `LD_LIBRARY_PATH` in my `.bash_profile` long time ago which may provide an inconsistent version of some linked library for git. I find this out by trying to compile git from source. And indeed the linking stage of the compilation failed due to a link error related to `libiconv` , which points me to check my LD flags and settings.
