gpt4 book ai didi

perl - Mac 上的 GIT-SVN 问题

转载 作者:行者123 更新时间:2023-12-05 00:37:12 25 4
gpt4 key购买 nike

我正在让 git-svn 在我的 Mac 上工作。我目前在使用 Lion(但在 Snow Leopard 上测试时我得到了类似的结果。我似乎是少数几个遇到此问题的人之一。这与我看到的一些人只包含 SVN/Core.pm 所遇到的问题不同.

下面是在 vanille 存储库上执行 git svn clone 的尝试(显然主机和目录详细信息已更改为发布):

Macbook-Pro:git david$ git svn clone https://somesite.com/SVN/someRepo/
Initialized empty Git repository in /Projects/git/MyWorkspace/.git/
Can't load '/System/Library/Perl/Extras/5.12/darwin-thread-multi-2level/auto/SVN/_Core/_Core.bundle' for module SVN::_Core: dlopen(/System/Library/Perl/Extras/5.12/darwin-thread-multi-2level/auto/SVN/_Core/_Core.bundle, 1): Library not loaded: /usr/lib/libsvn_client-1.0.dylib
Referenced from: /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level/auto/SVN/_Core/_Core.bundle
Reason: image not found at /System/Library/Perl/5.12/darwin-thread-multi-2level/DynaLoader.pm line 204.
at /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level/SVN/Base.pm line 59
BEGIN failed--compilation aborted at /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level/SVN/Core.pm line 5.
Compilation failed in require at /Developer/usr/libexec/git-core/git-svn line 58.

最佳答案

就我而言,只需通过 Macports 安装 git 即可解决我的问题。我相信这个问题可能是由较旧的安装引起的(可能是 Mac OS X Git 安装程序)。如果您是这种情况,请先安装 Macports:

http://www.macports.org/install.php

然后,一旦安装了 Macports(使用适合您操作系统的正确版本),然后运行:

sudo port install git-core +svn

在此之后,我只需要在 Macports 安装的新位置使用 git:
/opt/local/bin/git

我修改了我的 PATH 变量,以便这是默认使用的 git。

关于perl - Mac 上的 GIT-SVN 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7221015/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com