Ask Your Question
0

gnu global can't find exuberant-ctags.la

asked 2015-06-12 10:13:28 -0500

spacemoose gravatar image

Hi.

I'm on fedora 22. I've install the gnu-global package, as well as all the ctags packages I could find (ctags-etags, and global-ctags). I modified my .globalrc as follows:

default:\
          :tc=exuberant-ctags:tc=htags

to make ctags the default parser. But when I run gtags, I get the following message: gtags: cannot open shared object '/usr/lib/gtags/exuberant-ctags.la'

Looking in /usr, i see that lib64/gtags has exuberant-ctags.so, but no .la file.

What do I have to do to use gnu-global with exuberant c-tags?

Thanks kindly

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-06-12 18:47:29 -0500

bthomas gravatar image

updated 2015-06-12 19:32:02 -0500

Note: I've never user gnu-global, since ctags is usually enough in my case. Additionally, I find the GNU build system to be needlessly complicated, so I don't use that much either. I'm also assuming you're somewhat of a developer since you're using tagging systems.

A *.la is generated when you build a library with libtool. From my understanding, it's a way to abstract the build process from worrying about how systems implement dynamic and static libraries. My suggestion would to rebuild ctags such that it uses libtool to generate the libraries with a *.la. Install libtool and run man libtool for information (I honestly have no idea). Luckily, ctags very easy to compile. It's straight up C, and can literally be compiled with gcc *.c -o ctags if I remember correctly. So you can write a short makefile to compile it as a dynamic library with libtool and install it on your system (using an rpm if you want) with the *.la and *.so at the correct location.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-06-12 10:13:28 -0500

Seen: 635 times

Last updated: Jun 12 '15