我正在尝试在 OSX 机器上构建 Kate,如下所示:https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source/Mac
我设法遵循 HOWTO 直到最后,但是当我发出时,emerge Kate
我收到以下错误:
emerge warning: dev-util/extra-cmake-modules failed: Could not find package
for dev-util/extra-cmake-modules as a dependency of kde/gpgmepp
*** Handling package: extra-cmake-modules, action: all ***
*** Action: fetch for frameworks/extra-cmake-modules ***
Cloning into '.'...
ssh: Could not resolve hostname kde: nodename nor servname provided, or not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
emerge warning: while running cmd: git clone kde:extra-cmake-modules .
emerge warning: Action: fetch for frameworks/extra-cmake-modules FAILED
*** Emerge all failed: all of frameworks/extra-cmake-modules failed after 0:00:00 ***
emerge error: fatal error: package frameworks/extra-cmake-modules all failed
知道是什么原因造成的以及如何解决它吗?
编辑:手动安装 extra-cmake-modules 并将 IP 地址添加到后出现新错误/etc/hosts
:
*** Action: fetch for frameworks/extra-cmake-modules ***
Cloning into '.'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
emerge warning: while running cmd: git clone kde:extra-cmake-modules .
emerge warning: Action: fetch for frameworks/extra-cmake-modules FAILED
*** Emerge all failed: all of frameworks/extra-cmake-modules failed after 0:00:01 ***
emerge error: fatal error: package frameworks/extra-cmake-modules all failed*** Action: fetch for frameworks/extra-cmake-modules ***
Cloning into '.'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
emerge warning: while running cmd: git clone kde:extra-cmake-modules .
emerge warning: Action: fetch for frameworks/extra-cmake-modules FAILED
*** Emerge all failed: all of frameworks/extra-cmake-modules failed after 0:00:01 ***
emerge error: fatal error: package frameworks/extra-cmake-modules all failed
编辑2:使用匿名存储库后
Cloning into '.'...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The ECDSA host key for kde has changed,
and the key for the corresponding IP address 138.68.4.10
is unknown. This could either mean that
DNS SPOOFING is happening or the IP address for the host
and its host key have changed at the same time.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:00FsaU0+NXKMqBhWLLHhWQpCtHpf35m8UCtSNSnvZbQ.
Please contact your system administrator.
Add correct host key in /Users/<name>/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/<name>/.ssh/known_hosts:2
ECDSA host key for kde has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.
答案1
尝试手动安装extra-cmake modules
。
git clone https://github.com/KDE/extra-cmake-modules.git
cd extra-cmake-modules
cmake .
make
sudo make install
这假设您已经安装了 git、make 和 cmake。
编辑:我再次查看了输出,并注意到 git 正在尝试从主机名克隆kde
。我不知道为什么会这样,但如果只是尝试从 KDE 的存储库克隆,您可以使用/etc/hosts
.截至今天,IP 地址git.kde.org
为138.201.41.178
。因此,请尝试将该行添加138.201.41.178 kde
到您的/etc/hosts
.如果 git 尝试从该特定存储库克隆,这可能会起作用。
编辑2:
我想我可能已经破解了它。看来您可以git
在您的~/.gitconfig
.这比使用要好得多,/etc/hosts
因为您可以使用主机名而不仅仅是 IP 地址。你为什么不尝试添加
[url "git://anongit.kde.org/"]
insteadOf = kde:
[url "ssh://[email protected]/"]
pushInsteadOf = kde:
给你的~/.gitconfig
.然后再次尝试使用emerge
。我想这个会起作用,因为 KDE 的网站说要使用这些存储库。