Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/kubernetes/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xcode GIMP 2.10.22中来自Macports的错误路径,导致插件文件-gif.ui,script-fu.init在执行期间无法读取_Xcode_Macports_Gimp - Fatal编程技术网

Xcode GIMP 2.10.22中来自Macports的错误路径,导致插件文件-gif.ui,script-fu.init在执行期间无法读取

Xcode GIMP 2.10.22中来自Macports的错误路径,导致插件文件-gif.ui,script-fu.init在执行期间无法读取,xcode,macports,gimp,Xcode,Macports,Gimp,这是我第一次发帖,请原谅我的格式错误,并提出改进建议 主要问题: 尝试使用.gif扩展名执行文件->导出为会导致找不到plug-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扩展名执行文件->导出为会导致找不到plug-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安装了GIMP 2.10.22,包括GAP库。我的安装是:

$ 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: error: command line tools are already installed, use "Software Update" to install updates
如果我接着跑:

$ xcode-select -v
我得到:

xcode-select version 2354.
但如果我这样做:

$ system_profiler SPDeveloperToolsDataType
我什么也得不到

如果我在应用商店中查找Xcode,我会看到云下载图标,这可能意味着,它认为它没有安装

“port diagnose”还有其他几起投诉,但这些投诉已得到解决

我尝试将“插件文件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_目录,这似乎意味着它使用的是编译后的默认值,这可能是问题的根源。我还没有尝试追溯编译后的默认值的源代码,因为我已经很长时间没有挖掘makefiles了

我正在试验GIMP2_目录和gimprc中的插件路径,看看是否能找到一个有效的组合。到目前为止,这样做造成的问题比解决的问题还多。没有它,GIMP运行基本正常。我可以用“视频->移动路径”界面制作一些帧动画,所以“间隙”至少部分起作用。但是,如果我尝试使用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
…我猜错误是由相同的路径问题引起的

系统:

Macbook Pro 2013运行Mojave 10.14.6 GIMP 2.10.22
Macports 2.6.3更新:我终于更新到Catalina和新的Xcode,完成后将尝试重新安装。升级到Catalina和Xcode 11.6后,我已重新安装。然后,我对Macports进行了完整的卸载和重新安装,重新安装了GIMP,但仍然看到相同的.gif导出错误。
    Unable to read initialization file script-fu.init