我想安装小波分解插件在我的 ubuntu studio 中,但是,插件包含一堆 make 文件和 .c 文件,并且给出了安装说明,但我真的无法理解:
INSTALL
=======
For Linux and Unix users
------------------------
To install this GIMP plugin simply state
make
make install
for a system wide installation (with root privileges) or
make
make userinstall
for a user installation. A restart of The GIMP is recommended.
我尝试导航到该文件夹并在终端上输入命令,但出现了很多错误:
make -C po
make[1]: Entering directory '/home/dell-pc/Desktop/wavelet-decompose-0.1.2/po'
msgfmt -c -v -o de.mo de.po
de.po:7: warning: header field 'Language' missing in header
17 translated messages.
msgfmt -c -v -o ru.mo ru.po
ru.po:2: warning: header field 'Language' missing in header
17 translated messages.
msgfmt -c -v -o it.mo it.po
it.po:9: warning: header field 'Language' missing in header
17 translated messages.
msgfmt -c -v -o pl.mo pl.po
pl.po:2: warning: header field 'Language' missing in header
17 translated messages.
make[1]: Leaving directory '/home/dell-pc/Desktop/wavelet-decompose-0.1.2/po'
make -C src
make[1]: Entering directory '/home/dell-pc/Desktop/wavelet-decompose-0.1.2/src'
make[1]: gimptool-2.0: Command not found
cc -O3 -Wall -c -o plugin.o plugin.c
In file included from plugin.c:12:0:
plugin.h:16:26: fatal error: libgimp/gimp.h: No such file or directory
compilation terminated.
Makefile:19: recipe for target 'plugin.o' failed
make[1]: *** [plugin.o] Error 1
make[1]: Leaving directory '/home/dell-pc/Desktop/wavelet-decompose-0.1.2/src'
Makefile:8: recipe for target 'src' failed
make: *** [src] Error 2
然后我再次尝试将这个原始文件夹移动到我的插件文件夹,但没有安装。我该如何安装这个插件?
答案1
要在 Ubuntu 中安装许多 Gimp 插件,只需从存储库安装 gimp-plugin-registry 包(使用以下方法完成:sudo apt install gimp-plugin-registry
)(是的,它包含小波分解,以及其他有用的功能:重新合成器、液体重新缩放、FFT......)。
否则,要以“困难的方式”安装插件:您的消息表明您缺少gimptool
可执行文件以及gimp.h
。apt-file search {file}
显示两个文件都在包中,因此只需安装该包libgimp2.0-dev
即可。sudo apt install libgimp2.0-dev
如果你想要最新版本的 Gimp 和相关软件包(包括 gimp-plugin-registry),你可以添加此 PPA到您的软件源,然后发布sudo apt update
并sudo apt install gimp
升级该包。