首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >基于OSX的KDE软件构建问题

基于OSX的KDE软件构建问题
EN

Unix & Linux用户
提问于 2016-08-17 15:57:46
回答 1查看 606关注 0票数 5

我正试图在OSX机器上构建凯特,如下所示:https://community.kde.org/Guidelines_和_HOWTOs/Build_从…_源/Mac

我成功地完成了如何操作,但是当我发出emerge Kate时,我得到了以下错误:

代码语言:javascript
复制
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

知道是什么导致了这件事,我该怎么解决呢?

编辑:手动安装额外cmake模块并将IP地址添加到/etc/hosts后出现的新错误:

代码语言:javascript
复制
*** 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:使用匿名回购后

代码语言:javascript
复制
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.
EN

回答 1

Unix & Linux用户

发布于 2016-08-26 04:34:17

尝试手动安装extra-cmake modules

  1. git clone https://github.com/KDE/extra-cmake-modules.git
  2. cd extra-cmake-modules
  3. cmake .
  4. make
  5. sudo make install

这假设您已经安装了git、make和cmake。

编辑:我再次查看了输出,并注意到git试图从主机名kde克隆。我不知道这是为什么,但是如果它只是试图从KDE的repos中克隆,您可以在/etc/hosts中临时解决这个问题。到今天为止,git.kde.org的IP地址是138.201.41.178。因此,尝试将行138.201.41.178 kde添加到/etc/hosts中。如果git试图从特定的回购中克隆,这可能会奏效。

编辑2:

我想我可能已经破解了。在您的git中,您似乎可以用主机代替~/.gitconfig。这比使用/etc/hosts要好得多,因为您可以使用主机名,而不仅仅是IP地址。你为什么不试着加入

代码语言:javascript
复制
[url "git://anongit.kde.org/"]
   insteadOf = kde:
[url "ssh://git@git.kde.org/"]
   pushInsteadOf = kde:

敬你的~/.gitconfig。然后再次尝试使用emerge。我想,这一个将工作,因为KDE的网站说,使用这些回购。

票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/304001

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档