Macports的GIMP 2.10.22中的路径错误,导致在执行期间无法找到plugin-in-file-gif.ui,script-fu.init

问题描述

这是我第一次发布,因此请原谅我的格式错误,并提出改进建议。

主要问题:

尝试执行文件->以.gif扩展名导出为文件,导致无法找到plugin-in-file-gif.ui。

Error loading UI file '/opt/local/lib/gimp/2.0/plug-ins/file-gif-save/share/gimp/2.0/ui/plug-ins/plug-in-file-gif.ui':

我在其他地方找到了文件

$ sudo find / -name "plug-in-file-gif.ui"

/opt/local/share/gimp/2.0/ui/plug-ins/plug-in-file-gif.ui

显然,正在发生某种路径串联问题,这使GIMP无法找到其插件

我已经使用Macports(包括GAP库)安装了GIMP 2.10.22。我的安装是:

$ sudo port install gimp-app gimp-gap

我已经完成了一些卸载和清理工作,以确保我没有从以前的版本中遗留下来。安装过程中没有看到任何重大错误

我也尝试过删除

"/Users/thebitmaster/Library/Application Support/GIMP/2.10/"

位于两者之间的目录。

这里的问题是这是本地配置问题(很有可能)还是Macport disti问题需要报告给管理员

----------------------更多详细信息--------------

运行

$ port diagnose

给我:

Error: currently installed version of Xcode,none,is not supported by MacPorts.  For your currently installed system,only the following versions of Xcode are supported:  11.3.1 11.3 11.2.1 11.2 11.1 11.0 10.3 10.2.1 10.2 10.1 10.0
Warning: you have leftover files from an older version of Xcode. You should delete them by using,/Developer/Library/uninstall-developer-folder

我收到有关Xcode安装的非常复杂的消息:

我检查xcode(显然已经安装了某些版本,或者我根本无法编译)

$ xcode-select --install

...然后我得到...

xcode-select: error: command line tools are already installed,use "Software Update" to install updates

如果我随后运行:

$ xcode-select -v

我得到:

xcode-select version 2354.

但如果我这样做:

$ system_profiler SPDeveloperToolsDataType

我什么也没得到。

如果我在App Store中查找Xcode,则会看到“云下载”图标,这大概意味着它没有安装。

“端口诊断”还有其他一些投诉,但已经解决

我尝试将“ plug-in-file-gif.ui”复制到用户目录:

"/Users/thebitmaster/Library/Application Support/GIMP/2.10/plug-ins"

...但是我仍然遇到相同的错误

此刻,我位于/opt/local/etc/gimp/2.0/gimprc中,试图覆盖路径。

我发现了:

# The variable ${gimp_dir} is set to the value of the environment variable
# GIMP2_DIRECTORY or,if that is not set,the compiled-in default value is
# used.  If GIMP2_DIRECTORY is not an absolute path,it is interpreted
# relative to your home directory.

我的bash环境没有 定义了GIMP2_DIRECTORY,这似乎暗示它正在使用编译的认值,这可能是问题所在。我还没有尝试回溯已编译认值的来源,因为我已经很长时间没有发现Makefile了。

我正在尝试GIMP2_DIRECTORY和gimprc中的插件路径,以查看是否可以找到有效的组合。到目前为止,这样做造成的问题比解决的问题多。没有它,GIMP可以正常运行。我可以使用“视频”->“移动路径”界面来做一些帧动画,因此GAPS至少可以部分起作用。但是,如果我尝试执行Video-> MasterVideoencoder,则会得到:

Plug-in crashed: "gap_vid_common_encoder"
(/opt/local/lib/gimp/2.0/plug-ins/gap_vid_common_encoder)

The dying plug-in may have messed up GIMP's internal state. You may want to save your images and restart GIMP to be on the safe side.

在启动时,我还会得到:

    Unable to read initialization file script-fu.init

...我猜是由于同一路径问题引起的错误

系统:

运行Mojave 10.14.6的Macbook Pro 2013 GIMP 2.10.22 Macports 2.6.3

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)