无法通过 MacPorts 安装 Meld

发布于 2024-07-21 07:51:21 字数 959 浏览 9 评论 0原文

我发现其他人在通过 MacPorts 将 Meld 安装到 Mac 时也遇到了麻烦。

我运行

sudo port install meld 

我得到

sudo port install meld  
 --->  Activating shared-mime-info @0.60_0
Error: Target org.macports.activate returned: Image error: /opt/local/bin/update-mime-database already exists and does not belong to a registered port.  Unable to activate port shared-mime-info.
Error: The following dependencies failed to build: py25-gnome gconf gtk2 shared-mime-info orbit2 libidl gnome-vfs desktop-file-utils gnome-mime-data libbonobo libbonoboui libglade2 libgnome esound audiofile libgnomecanvas libart_lgpl libgnomeui gnome-icon-theme hicolor-icon-theme icon-naming-utils p5-xml-simple p5-xml-namespacesupport p5-xml-sax gnome-keyring libtasn1 py25-gtk py25-cairo py25-numpy py25-nose py25-gobject py25-orbit
Error: Status 1 encountered during processing. 

How can you install Meld to Mac?

I found that other people too have had trouble in installing Meld to Mac by MacPorts.

I run

sudo port install meld 

I get

sudo port install meld  
 --->  Activating shared-mime-info @0.60_0
Error: Target org.macports.activate returned: Image error: /opt/local/bin/update-mime-database already exists and does not belong to a registered port.  Unable to activate port shared-mime-info.
Error: The following dependencies failed to build: py25-gnome gconf gtk2 shared-mime-info orbit2 libidl gnome-vfs desktop-file-utils gnome-mime-data libbonobo libbonoboui libglade2 libgnome esound audiofile libgnomecanvas libart_lgpl libgnomeui gnome-icon-theme hicolor-icon-theme icon-naming-utils p5-xml-simple p5-xml-namespacesupport p5-xml-sax gnome-keyring libtasn1 py25-gtk py25-cairo py25-numpy py25-nose py25-gobject py25-orbit
Error: Status 1 encountered during processing. 

How can you install Meld to Mac?

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

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

发布评论

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

评论(4

吃素的狼 2024-07-28 07:51:22

正如 rspeed 所说,您可能有一个错误的安装或升级来创建该文件。 或者,您将 macports 之外的某些内容安装到 /opt/local 树中(尽管我不确定您最终会如何执行此操作)。 我建议只强制激活共享 mime 信息端口,然后尝试重新安装 meld。

sudo port activate -f shared-mime-info
sudo port install meld

As rspeed said, you probably had a bad install or upgrade that created that file. Alternately, you installed something outside of macports into the /opt/local tree (though I'm not sure how you would have ended up doing that). I recommend just doing a force activate of the shared-mime-info port, then trying to reinstall meld.

sudo port activate -f shared-mime-info
sudo port install meld
初与友歌 2024-07-28 07:51:22

我发现 MacPorts 可以安装 meld,但它并没有像宣传的那样立即工作。

运行并安装所有依赖项后,它失败了,并给出了一条类似于此问题中的神秘日志消息(但不相同)。

经过一番挖掘后,我发现我必须执行以下操作:

确保我已正确同意 XCode 的许可证

xcodebuild -license

安装 Xcode 命令行工具

xcode-select --install

安装 rarian (这似乎是 MacPorts 无法识别的依赖项)

sudo port install rarian

后面的说明来自这里:
http://www.codez。 co.uk/2014/02/meld-on-mac-osx-mavericks-10-9/
这是我让它发挥作用之前的最后一步。

I found that MacPorts worked to install meld, but it didn't work straight away as advertised.

After running and installing all the dependencies, it failed, and gave a cryptic log message similar to the one in this question (but not identical).

After a bit of digging around I found I had to do the following:

Make sure I had properly agreed to the license for XCode

xcodebuild -license

Install the Xcode command line tools

xcode-select --install

Install rarian (it seems to be a dependency that MacPorts failed to recognize)

sudo port install rarian

The latter instructions come from here:
http://www.codez.co.uk/2014/02/meld-on-mac-osx-mavericks-10-9/
and this was the last step before I was able to get it working.

独闯女儿国 2024-07-28 07:51:22

不知何故,该文件已经存在,可能是由于错误的卸载或升级造成的。

如果您强制安装,它可能不会破坏任何东西。

sudo port install --force meld

Somehow that file already exists, probably from a bad uninstall or upgrade.

If you force the install it probably won't break anything.

sudo port install --force meld
清晰传感 2024-07-28 07:51:22

在 OS X 10.10 上安装 meld。 为了增加难度,必须使用 OS X 的石英显示服务器(而不是 X11 显示服务器):

$ sudo port install python27
$ sudo port select --set python python27
$ sudo port install rarian
$ sudo port install pango +no_x11
$ sudo port install gtk2 +quartz
$ sudo port install py27-pygtk +quartz
$ sudo port uninstall --follow-dependents gtk3
$ sudo port install gtk3
$ sudo port uninstall py27-pygtksourceview
$ sudo port install py27-pygtksourceview +quartz
$ sudo port install gnome-desktop
$ sudo port install meld +quartz

$ sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist
$ sudo launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist

<reboot system...>

$ meld

哇,它有效!

Installing meld on OS X 10.10. For added difficulty, must use OS X's quartz display server (rather than X11 display server):

$ sudo port install python27
$ sudo port select --set python python27
$ sudo port install rarian
$ sudo port install pango +no_x11
$ sudo port install gtk2 +quartz
$ sudo port install py27-pygtk +quartz
$ sudo port uninstall --follow-dependents gtk3
$ sudo port install gtk3
$ sudo port uninstall py27-pygtksourceview
$ sudo port install py27-pygtksourceview +quartz
$ sudo port install gnome-desktop
$ sudo port install meld +quartz

$ sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist
$ sudo launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist

<reboot system...>

$ meld

Wow, it works!

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