建议的处理方式是什么GNU 斯托冲突?
我尝试收起readline-6.2
并收到以下警告:
> stow readline-6.2
Loading defaults from /home/josh/.stowrc
WARNING! stowing readline-6.2 would cause conflicts:
* existing target is stowed to a different package: share/info/dir =>
../../../stow_dir/stow_2.2.0_canonical_paths/share/info/dir
All operations aborted.
冲突与包stow_2.2.0_canonical_paths
是包目录对于stow
(这是因为我引导了存储)。
以下是冲突目标包含的内容:
> cat ~/local/share/info/dir
This is the file .../info/dir, which contains the
topmost node of the Info hierarchy, called (dir)Top.
The first time you invoke Info you start off looking at this node.
File: dir, Node: Top This is the top of the INFO tree
This (the Directory node) gives a menu of major topics.
Typing "q" exits, "?" lists all Info commands, "d" returns here,
"h" gives a primer for first-timers,
"mEmacs<Return>" visits the Emacs manual, etc.
In Emacs, you can click mouse button 2 on a menu item or cross reference
to select it.
* Menu:
System administration
* Stow: (stow). GNU Stow.
解决此冲突的建议方法是什么?
答案1
该dir
文件由自动生成/扩展install-info
并包含有关可用文档的信息texinfo
文档系统。
您只需删除该文件即可。如果你想使用info
系统,可以尝试将其合并dir
到之前的其他系统中。或者,您可以在将目录中的install-info
所有文件与.install-info --info-dir=$PWD time.info.gz
share/info
stow
另一种选择是切换到xstow
如果您将以下内容添加到您的xstow.ini
.
[exec]
match = dir # GNU info index file
exec = merge-info %t %s -o %t
exec-unstow = merge-info -u %t %s -o %t
答案2
使用 GNU autotools 软件,您可以--infodir
在--prefix
运行./configure
.
我曾经有一个单独的stow
目录来存放所有信息文档,直到我意识到我从未阅读过它们......
答案3
您可以在ing 之后但在 ing 之前删除该dir
文件。然后,在装载后,只需调用将信息文件合并到原始.我认为这是最干净的解决方案。make install
stow
install-info
dir