You are not logged in.
Hii, I am using VIM, so I need ctags, but I want emacs too, so when doing "pacman -S emacs", I get
:: emacs conflicts with ctags. Remove ctags? [Y/n]
How can I install then both at the same time?
:?:
Offline
Emacs installs it's own version of ctags, it's not the same , but it's close. Remove ctags and let emacs install it's own.
Offline
But then, should not emacs -- provides=('ctags') -- otherwise you get problems like this:
[root@home:~]# pacman -S source-highlight
Targets: boost-1.33.1-4 ctags-5.5.4-1 source-highlight-2.3-4
Total Package Size: 18.1 MB
Proceed with upgrade? [Y/n] n
[root@home:~]#
[root@home:~]# pacman -S source-highlight
Targets: boost-1.33.1-4 ctags-5.5.4-1 source-highlight-2.3-4
Total Package Size: 18.1 MB
Proceed with upgrade? [Y/n]
checking package integrity... done.
loading package data... done.
checking for file conflicts...
error: the following file conflicts were found:
ctags: /usr/bin/ctags: exists in filesystem
ctags: /usr/bin/etags: exists in filesystem
ctags: /usr/man/man1/ctags.1.gz: exists in filesystem
ctags: /usr/man/man1/etags.1.gz: exists in filesystem
errors occurred, no packages were upgraded.
[root@home:~]#
Offline
Ok, so why do I get this file conflicts ?
I know emacs should have ctags, but when I use VIM I need ctags too and I need to install it.
Offline
Also, emacs' ctags doesnt support as many languages as "ctags" i.e. the exuberant ctags.
Offline
Also, emacs' ctags doesnt support as many languages as "ctags" i.e. the exuberant ctags.
so why can't I use both emacs ctags and ctags?
:?:
Offline
That is a good point - I've never bothered with emacs' ctags. Please post a bug report about installing the two side-by-side
Offline
No, they cannot be installed at the same time, EAD, since both use the name "ctags" in /usr/bin .. We are left with two options :
1) Rename the ctags executable to /usr/bin/exuberant-ctags, and inform the user about it. Also, a cherry on the cake would be to do
in ctags post_install
[ -f /usr/bin/ctags ] || ln -s /usr/bin/exuberant-ctags /usr/bin/ctags
in emacs pre_install
[ -f /usr/bin/ctags ] && rm /usr/bin/ctags
2) Use the 'alternatives' system that debian, fedora etc. use. This is a long time process, cannot be implemented as quickly, but it is the most efficient way. It allows emacs and ctags both to be installed with different executable names, and the user selects which one to put in /usr/bin .. So you could use emacs and ctags simultaneously. You just need to do "update-alternatives --config ctags" and then choose the one you want.
HTH,
Rohan.
Offline
You should file a bug on this if you want it to be fixed.
Offline
I have multiple versions of emacs installed and I have the following:
/usr/bin/ctags
/usr/bin/ctags.emacs
/usr/bin/etags
/usr/bin/etags.emacs
:shock:
Offline