尝试编译 MacVim 时出现问题

发布于 2024-10-23 23:01:54 字数 1705 浏览 2 评论 0原文

我正在尝试在 Macbook Pro 上编译 MacVim,但是当它运行 make 时,我遇到了一些错误:

=== BUILD NATIVE TARGET MacVim OF PROJECT MacVim WITH THE DEFAULT CONFIGURATION (Release) ===
Check dependencies
PBXCp build/Release/MacVim.app/Contents/MacOS/Vim ../Vim
    cd /Users/Nathan/Downloads/b4winckler-macvim-6e6fac5/src/MacVim
    /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -strip-debug-symbols -resolve-src-symlinks /Users/Nathan/Downloads/b4winckler-macvim-6e6fac5/src/MacVim/../Vim /Users/Nathan/Downloads/b4winckler-macvim-6e6fac5/src/MacVim/build/Release/MacVim.app/Contents/MacOS

PhaseScriptExecution "Make Document Icons" build/MacVim.build/Release/MacVim.build/Script-1D1C31F00EFFBFD6003FE9A5.sh
    cd /Users/Nathan/Downloads/b4winckler-macvim-6e6fac5/src/MacVim
    /bin/sh -c /Users/Nathan/Downloads/b4winckler-macvim-6e6fac5/src/MacVim/build/MacVim.build/Release/MacVim.build/Script-1D1C31F00EFFBFD6003FE9A5.sh

unzip -jo EnvyCodeR.zip
Archive:  EnvyCodeR.zip
Command /bin/sh failed with exit code 2
Command /bin/sh failed with exit code 2
Touch build/Release/MacVim.app
    cd /Users/Nathan/Downloads/b4winckler-macvim-6e6fac5/src/MacVim
    /usr/bin/touch -c /Users/Nathan/Downloads/b4winckler-macvim-6e6fac5/src/MacVim/build/Release/MacVim.app

** BUILD FAILED **


The following build commands failed:
MacVim:
    PhaseScriptExecution "Make Document Icons" /Users/Nathan/Downloads/b4winckler-macvim-6e6fac5/src/MacVim/build/MacVim.build/Release/MacVim.build/Script-1D1C31F00EFFBFD6003FE9A5.sh
(1 failure)

make[1]: *** [macvim] Error 1
make: *** [first] Error 2

我需要做什么来纠正这个问题?

I'm trying to compile MacVim on my Macbook Pro, but while it's running make, I got some errors:

=== BUILD NATIVE TARGET MacVim OF PROJECT MacVim WITH THE DEFAULT CONFIGURATION (Release) ===
Check dependencies
PBXCp build/Release/MacVim.app/Contents/MacOS/Vim ../Vim
    cd /Users/Nathan/Downloads/b4winckler-macvim-6e6fac5/src/MacVim
    /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -strip-debug-symbols -resolve-src-symlinks /Users/Nathan/Downloads/b4winckler-macvim-6e6fac5/src/MacVim/../Vim /Users/Nathan/Downloads/b4winckler-macvim-6e6fac5/src/MacVim/build/Release/MacVim.app/Contents/MacOS

PhaseScriptExecution "Make Document Icons" build/MacVim.build/Release/MacVim.build/Script-1D1C31F00EFFBFD6003FE9A5.sh
    cd /Users/Nathan/Downloads/b4winckler-macvim-6e6fac5/src/MacVim
    /bin/sh -c /Users/Nathan/Downloads/b4winckler-macvim-6e6fac5/src/MacVim/build/MacVim.build/Release/MacVim.build/Script-1D1C31F00EFFBFD6003FE9A5.sh

unzip -jo EnvyCodeR.zip
Archive:  EnvyCodeR.zip
Command /bin/sh failed with exit code 2
Command /bin/sh failed with exit code 2
Touch build/Release/MacVim.app
    cd /Users/Nathan/Downloads/b4winckler-macvim-6e6fac5/src/MacVim
    /usr/bin/touch -c /Users/Nathan/Downloads/b4winckler-macvim-6e6fac5/src/MacVim/build/Release/MacVim.app

** BUILD FAILED **


The following build commands failed:
MacVim:
    PhaseScriptExecution "Make Document Icons" /Users/Nathan/Downloads/b4winckler-macvim-6e6fac5/src/MacVim/build/MacVim.build/Release/MacVim.build/Script-1D1C31F00EFFBFD6003FE9A5.sh
(1 failure)

make[1]: *** [macvim] Error 1
make: *** [first] Error 2

What I need to do to correct this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

森林很绿却致人迷途 2024-10-30 23:01:54

查看 MacVim 自制公式。它指出“构建自定义图标对于许多用户来说失败,因此默认情况下关闭”,并继续执行以下操作:

unless ARGV.include? "--custom-icons"
  inreplace "src/MacVim/icons/Makefile", "$(MAKE) -C makeicns", ""
  inreplace "src/MacVim/icons/make_icons.py", "dont_create = False", "dont_create = True"
end

因此,我建议对您的 src/MacVim/icons/Makefile 进行相同的修改> 和src/MacVim/icons/make_icons.py

或者,使用 Homebrew 构建/安装 MacVim,这就是我所做的。

祝你好运!

Check out the homebrew formula for MacVim. It states that "Building custom icons fails for many users, so off by default" and goes on to do the following:

unless ARGV.include? "--custom-icons"
  inreplace "src/MacVim/icons/Makefile", "$(MAKE) -C makeicns", ""
  inreplace "src/MacVim/icons/make_icons.py", "dont_create = False", "dont_create = True"
end

So, I'd suggest making those same modifications to your src/MacVim/icons/Makefile and src/MacVim/icons/make_icons.py.

Alternatively, use Homebrew to build / install MacVim, which is what I've done.

Good luck!

清风疏影 2024-10-30 23:01:54

我有完全相同的症状。除了上面建议的步骤之外,我还必须将我的brew 副本从0.7 更新到0.8。这是我的步骤:

cd ~/Developer # where I have my Homebrew installed; ymmv
brew update
brew remove macvim   # My 'damaged' copy
git checkout Library/Formula/macvim.rb   # Make sure it has the above fix
brew install macvim

...这次安装正确。

我的环境:Snow Leopard 10.6.8

HTH

Scott

I had exactly the same symptoms. In addition to the step suggested above, I had to update my copy of brew from 0.7 to 0.8. Here're my steps:

cd ~/Developer # where I have my Homebrew installed; ymmv
brew update
brew remove macvim   # My 'damaged' copy
git checkout Library/Formula/macvim.rb   # Make sure it has the above fix
brew install macvim

...and this time it installed correctly.

My environment: Snow Leopard 10.6.8

HTH

Scott

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文