我一直试图从我从github克隆的目录中安装time。
我运行了以下命令:
cd;
然后我分开跑:
数都
在这两种情况下都得到了以下结果:
makefile:4: *** No msgmerge found, install it. Stop.然后我试着命令:
数都
得到了以下输出:
cd src; make all
make[1]: Entering directory '/home/omair/timeshift/src'
makefile:4: *** No msgmerge found, install it. Stop.
make[1]: Leaving directory '/home/omair/timeshift/src'
make: *** [makefile:2: all] Error 2在搜索了一段时间之后,我按照网上论坛上的建议安装了gettext:
sudo apt安装gettext
之后我又试着:
数都
结果:
cd src; make all
make[1]: Entering directory '/home/omair/timeshift/src'
makefile:4: *** No valac found, install it. Stop.
make[1]: Leaving directory '/home/omair/timeshift/src'
make: *** [makefile:2: all] Error 2在再次搜索了一下之后,我跑了:
sudo apt安装libvala-dev
在那之后我下了命令,我又跑了一枪:
数都
结果:
cd src; make all
make[1]: Entering directory '/home/omair/timeshift/src'
makefile:4: *** No valac found, install it. Stop.
make[1]: Leaving directory '/home/omair/timeshift/src'
make: *** [makefile:2: all] Error 2sudo apt-获取安装valac
然后我跑了:
数都
其结果是:
cd src; make all
make[1]: Entering directory '/home/omair/timeshift/src'
Package vte-2.91 was not found in the pkg-config search path.
Perhaps you should add the directory containing `vte-2.91.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vte-2.91' found
/bin/bash: line 0: test: -lt: unary operator expected
Package gtk+-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-3.0' found
/bin/bash: line 0: test: -gt: unary operator expected
#timeshift-gtk
valac -X -D'GETTEXT_PACKAGE="timeshift"' \
--Xcc="-lm" --Xcc="-O3" -D VTE_291 \
Core/*.vala Gtk/*.vala Utility/*.vala Utility/Gtk/*.vala \
-o timeshift-gtk \
--pkg glib-2.0 --pkg gio-unix-2.0 --pkg posix \
--pkg gee-0.8 --pkg json-glib-1.0 \
--pkg gtk+-3.0 --pkg vte-2.91
error: Package `gee-0.8' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `vte-2.91' not found in specified Vala API directories or GObject-Introspection GIR directories
Compilation failed: 2 error(s), 0 warning(s)
make[1]: *** [makefile:52: app-gtk] Error 1
make[1]: Leaving directory '/home/omair/timeshift/src'
make: *** [makefile:2: all] Error 2我快要放弃了。
编辑:在安装libgtk2.0dev之后,我也尝试过它:
sudo apt安装libgtk2.0-dev
也曾尝试过:
安装依赖关系
sudo apt install -y g++ libgtk-3-dev gtk-doc-tools gnutls-bin \
valac intltool libpcre2-dev libglib3.0-cil-dev libgnutls28-dev \
libgirepository1.0-dev libxml2-utils gperf build-essential按照我在以下位置找到的指令获取并安装vte:
git clone https://github.com/thestinger/vte-ng.git
echo export LIBRARY_PATH="/usr/include/gtk-3.0:$LIBRARY_PATH"
cd vte-ng && ./autogen.sh && make && sudo make install
cd ..发布于 2020-05-22 12:12:26
要在Kali上安装时差,只需从存储库下载即可。
使用apt purge timeshift删除您自己安装的版本。
如果您能够从源代码中安装软件包,那么您可以运行timeshift-uninstall来删除该软件。我还建议您清除包含源代码和二进制文件的目录,以确认它已从系统中删除。
确认您的Kali /etc/apt/sources.list只包含以下内容:
deb http://http.kali.org/kali kali-rolling main non-free contrib 正如在官方的Kali Linux文档中所指出的,您可以运行以下命令来确认情况:
grep -v '#' /etc/apt/sources.list | sort -u 此外,您应该在/etc/apt/sources.list.d中没有任何内容。
使用apt update和apt upgrade更新您的系统。
然后用apt install timeshift安装Timeshift。
现在,Timeshift将与您的包管理器一起安装和管理。在基于Debian的系统上,这是保持程序包和系统兼容性并防止任何包不匹配或FrankenDebian类型问题的最简单方法。
Kali Linux是一个滚动版本,所以如果上游包和库带来系统不稳定或其他问题,不要感到惊讶。它在很大程度上被设计成一个一次性的五官发行版,并预装了最常见的安全工具。
祝你好运!
https://unix.stackexchange.com/questions/587654
复制相似问题