GIT on 'mountain lion' will not execute commands
Macbookpro Mountion Lion 10.8.5
I cannot get GIT to execute commands.
I have been researching and trouble shooting for 2 days.
Some suggestions I have tried are listed at the end.
Below will just be the commands and console output which may clearly identify the issue to people familiar with this issue.
I am following a course online.
I installed GIT from git-scm.com
$ which git
/usr/local/git/bin/git
$ echo $PATH
/usr/local/git/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/
$ git --version
git version 2.0.1
$ git init new_repository
dyld: lazy symbol binding failed: Symbol not found: ___strlcpy_chk
Referenced from: /usr/local/git/bin/git
Expected in: /usr/lib/libSystem.B.dylib
Trace/BPT trap: 5
$
Suggestions and Points I took from researching.
A suggestion is that the version of GIT is a mismatch to my Mac
I am trying to uninstall this way.
In the GIT.pkg there is an uninstall.sh file
$ sudo sh uninstall.sh
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
Password:
sh: uninstall.sh: No such file or directory
Looks like the uninstall.sh was not copied when I installed GIT
I tried these commands
rm -rf /usr/local/git etc/paths.d/git rm /etc/manpaths.d/git
permission denied
A suggestion to add/modify the path in my .bash_profile with these different options and this did not change anything:
PATH=$PATH:/usr/local/bin
export PATH
or
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH
or
export PATH=/usr/local/git/bin:$PATH
How can I uninstall GIT ?
path git macintosh
add a comment |
Macbookpro Mountion Lion 10.8.5
I cannot get GIT to execute commands.
I have been researching and trouble shooting for 2 days.
Some suggestions I have tried are listed at the end.
Below will just be the commands and console output which may clearly identify the issue to people familiar with this issue.
I am following a course online.
I installed GIT from git-scm.com
$ which git
/usr/local/git/bin/git
$ echo $PATH
/usr/local/git/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/
$ git --version
git version 2.0.1
$ git init new_repository
dyld: lazy symbol binding failed: Symbol not found: ___strlcpy_chk
Referenced from: /usr/local/git/bin/git
Expected in: /usr/lib/libSystem.B.dylib
Trace/BPT trap: 5
$
Suggestions and Points I took from researching.
A suggestion is that the version of GIT is a mismatch to my Mac
I am trying to uninstall this way.
In the GIT.pkg there is an uninstall.sh file
$ sudo sh uninstall.sh
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
Password:
sh: uninstall.sh: No such file or directory
Looks like the uninstall.sh was not copied when I installed GIT
I tried these commands
rm -rf /usr/local/git etc/paths.d/git rm /etc/manpaths.d/git
permission denied
A suggestion to add/modify the path in my .bash_profile with these different options and this did not change anything:
PATH=$PATH:/usr/local/bin
export PATH
or
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH
or
export PATH=/usr/local/git/bin:$PATH
How can I uninstall GIT ?
path git macintosh
What is your actual question? Do you want to uninstall git or fix the errors you're getting?
– terdon♦
Sep 25 '14 at 16:07
Thanks. I did uninstall GIT. sudo rm -rf /usr/local/git/bin/git I did a 'which git' and it returned empty. Then I reinstalled a different version that was not a mismatch to my Mac and I am running fine.
– shareyourpeace
Sep 25 '14 at 17:37
Oh, OK. In that case could you either post an answer or delete this since it's not likely to ever be answered otherwise?
– terdon♦
Sep 25 '14 at 17:40
@terdon. Maybe I should post this separately. When I was troubleshooting the git install, I did a few things. I think that I modified my default path. Echo $path returns /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:bin:/usr/local/git/bin:/usr/local/bin I hope I typed that correctly. That seems wrong. Why would git be included in my top level path. Can you explain ?
– shareyourpeace
Sep 25 '14 at 18:34
add a comment |
Macbookpro Mountion Lion 10.8.5
I cannot get GIT to execute commands.
I have been researching and trouble shooting for 2 days.
Some suggestions I have tried are listed at the end.
Below will just be the commands and console output which may clearly identify the issue to people familiar with this issue.
I am following a course online.
I installed GIT from git-scm.com
$ which git
/usr/local/git/bin/git
$ echo $PATH
/usr/local/git/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/
$ git --version
git version 2.0.1
$ git init new_repository
dyld: lazy symbol binding failed: Symbol not found: ___strlcpy_chk
Referenced from: /usr/local/git/bin/git
Expected in: /usr/lib/libSystem.B.dylib
Trace/BPT trap: 5
$
Suggestions and Points I took from researching.
A suggestion is that the version of GIT is a mismatch to my Mac
I am trying to uninstall this way.
In the GIT.pkg there is an uninstall.sh file
$ sudo sh uninstall.sh
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
Password:
sh: uninstall.sh: No such file or directory
Looks like the uninstall.sh was not copied when I installed GIT
I tried these commands
rm -rf /usr/local/git etc/paths.d/git rm /etc/manpaths.d/git
permission denied
A suggestion to add/modify the path in my .bash_profile with these different options and this did not change anything:
PATH=$PATH:/usr/local/bin
export PATH
or
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH
or
export PATH=/usr/local/git/bin:$PATH
How can I uninstall GIT ?
path git macintosh
Macbookpro Mountion Lion 10.8.5
I cannot get GIT to execute commands.
I have been researching and trouble shooting for 2 days.
Some suggestions I have tried are listed at the end.
Below will just be the commands and console output which may clearly identify the issue to people familiar with this issue.
I am following a course online.
I installed GIT from git-scm.com
$ which git
/usr/local/git/bin/git
$ echo $PATH
/usr/local/git/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/
$ git --version
git version 2.0.1
$ git init new_repository
dyld: lazy symbol binding failed: Symbol not found: ___strlcpy_chk
Referenced from: /usr/local/git/bin/git
Expected in: /usr/lib/libSystem.B.dylib
Trace/BPT trap: 5
$
Suggestions and Points I took from researching.
A suggestion is that the version of GIT is a mismatch to my Mac
I am trying to uninstall this way.
In the GIT.pkg there is an uninstall.sh file
$ sudo sh uninstall.sh
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
Password:
sh: uninstall.sh: No such file or directory
Looks like the uninstall.sh was not copied when I installed GIT
I tried these commands
rm -rf /usr/local/git etc/paths.d/git rm /etc/manpaths.d/git
permission denied
A suggestion to add/modify the path in my .bash_profile with these different options and this did not change anything:
PATH=$PATH:/usr/local/bin
export PATH
or
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH
or
export PATH=/usr/local/git/bin:$PATH
How can I uninstall GIT ?
path git macintosh
path git macintosh
edited 2 days ago
Rui F Ribeiro
39.3k1479131
39.3k1479131
asked Sep 24 '14 at 14:28
shareyourpeaceshareyourpeace
211
211
What is your actual question? Do you want to uninstall git or fix the errors you're getting?
– terdon♦
Sep 25 '14 at 16:07
Thanks. I did uninstall GIT. sudo rm -rf /usr/local/git/bin/git I did a 'which git' and it returned empty. Then I reinstalled a different version that was not a mismatch to my Mac and I am running fine.
– shareyourpeace
Sep 25 '14 at 17:37
Oh, OK. In that case could you either post an answer or delete this since it's not likely to ever be answered otherwise?
– terdon♦
Sep 25 '14 at 17:40
@terdon. Maybe I should post this separately. When I was troubleshooting the git install, I did a few things. I think that I modified my default path. Echo $path returns /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:bin:/usr/local/git/bin:/usr/local/bin I hope I typed that correctly. That seems wrong. Why would git be included in my top level path. Can you explain ?
– shareyourpeace
Sep 25 '14 at 18:34
add a comment |
What is your actual question? Do you want to uninstall git or fix the errors you're getting?
– terdon♦
Sep 25 '14 at 16:07
Thanks. I did uninstall GIT. sudo rm -rf /usr/local/git/bin/git I did a 'which git' and it returned empty. Then I reinstalled a different version that was not a mismatch to my Mac and I am running fine.
– shareyourpeace
Sep 25 '14 at 17:37
Oh, OK. In that case could you either post an answer or delete this since it's not likely to ever be answered otherwise?
– terdon♦
Sep 25 '14 at 17:40
@terdon. Maybe I should post this separately. When I was troubleshooting the git install, I did a few things. I think that I modified my default path. Echo $path returns /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:bin:/usr/local/git/bin:/usr/local/bin I hope I typed that correctly. That seems wrong. Why would git be included in my top level path. Can you explain ?
– shareyourpeace
Sep 25 '14 at 18:34
What is your actual question? Do you want to uninstall git or fix the errors you're getting?
– terdon♦
Sep 25 '14 at 16:07
What is your actual question? Do you want to uninstall git or fix the errors you're getting?
– terdon♦
Sep 25 '14 at 16:07
Thanks. I did uninstall GIT. sudo rm -rf /usr/local/git/bin/git I did a 'which git' and it returned empty. Then I reinstalled a different version that was not a mismatch to my Mac and I am running fine.
– shareyourpeace
Sep 25 '14 at 17:37
Thanks. I did uninstall GIT. sudo rm -rf /usr/local/git/bin/git I did a 'which git' and it returned empty. Then I reinstalled a different version that was not a mismatch to my Mac and I am running fine.
– shareyourpeace
Sep 25 '14 at 17:37
Oh, OK. In that case could you either post an answer or delete this since it's not likely to ever be answered otherwise?
– terdon♦
Sep 25 '14 at 17:40
Oh, OK. In that case could you either post an answer or delete this since it's not likely to ever be answered otherwise?
– terdon♦
Sep 25 '14 at 17:40
@terdon. Maybe I should post this separately. When I was troubleshooting the git install, I did a few things. I think that I modified my default path. Echo $path returns /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:bin:/usr/local/git/bin:/usr/local/bin I hope I typed that correctly. That seems wrong. Why would git be included in my top level path. Can you explain ?
– shareyourpeace
Sep 25 '14 at 18:34
@terdon. Maybe I should post this separately. When I was troubleshooting the git install, I did a few things. I think that I modified my default path. Echo $path returns /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:bin:/usr/local/git/bin:/usr/local/bin I hope I typed that correctly. That seems wrong. Why would git be included in my top level path. Can you explain ?
– shareyourpeace
Sep 25 '14 at 18:34
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f157254%2fgit-on-mountain-lion-will-not-execute-commands%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f157254%2fgit-on-mountain-lion-will-not-execute-commands%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What is your actual question? Do you want to uninstall git or fix the errors you're getting?
– terdon♦
Sep 25 '14 at 16:07
Thanks. I did uninstall GIT. sudo rm -rf /usr/local/git/bin/git I did a 'which git' and it returned empty. Then I reinstalled a different version that was not a mismatch to my Mac and I am running fine.
– shareyourpeace
Sep 25 '14 at 17:37
Oh, OK. In that case could you either post an answer or delete this since it's not likely to ever be answered otherwise?
– terdon♦
Sep 25 '14 at 17:40
@terdon. Maybe I should post this separately. When I was troubleshooting the git install, I did a few things. I think that I modified my default path. Echo $path returns /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:bin:/usr/local/git/bin:/usr/local/bin I hope I typed that correctly. That seems wrong. Why would git be included in my top level path. Can you explain ?
– shareyourpeace
Sep 25 '14 at 18:34