Thread: [Lxr-general] Unable to create LXR::Lang::Generic Lang object
Brought to you by:
ajlittoz
From: Chuanwen W. <wc...@gm...> - 2007-12-07 12:13:07
|
Hi, I just follow the INSTALL file and when I did genxref, I got this error information: # ./genxref --url=http://192.168.1.77/lxr --version=helloworld This is glimpseindex version 4.18.2, 2006. Indexing "/usr/src/mysrc/helloworld" ... Size of files being indexed = 72 B, Total #of files = 1 Index-directory: "/var/www/localhost/htdocs/lxr/glimpse-src/helloworld" Glimpse-files created here: -rw-r--r-- 1 root root 41 2007-12-07 20:04 .glimpse_filenames -rw-r--r-- 1 root root 4 2007-12-07 20:04 .glimpse_filenames_index -rw-r--r-- 1 root root 0 2007-12-07 20:04 .glimpse_filetimes -rw------- 1 root root 121 2007-12-07 20:04 .glimpse_index -rw-r--r-- 1 root root 116 2007-12-07 20:04 .glimpse_messages -rw------- 1 root root 22 2007-12-07 20:04 .glimpse_partitions -rw-r--r-- 1 root root 250 2007-12-07 20:04 .glimpse_statistics -rw-r--r-- 1 root root 262144 2007-12-07 20:04 .glimpse_turbo *** / helloworld *** /helloworld.c helloworld Unable to create LXR::Lang::Generic Lang object, Exuberant ctags version 5 or above required, found ctags (GNU Emacs 22.1) Copyright (C) 2007 Free Software Foundation, Inc. This program is distributed under the terms in ETAGS.README Here is the content of the file helloworld.c /**********************************************/ #include <stdio.h> int main(){ printf("hello world!\n"); return 0; } /*********************************************/ I use lxr-0.9.5. and # mysql -V mysql Ver 14.7 Distrib 4.1.22, for pc-linux-gnu (x86_64) using readline 5.2 Any help will be very appreciated! -- wcw |
From: nn6eumtr <nn6...@gm...> - 2011-12-23 08:06:40
|
Can someone tell me the steps to troubleshoot the error "Unable to create LXR::Lang::Generic Lang object, Exuberant ctags version 5 or above required, found"? I've double checked that my paths are correct for ectagsconf and genericconf, and the files its choking on are .c and .pl - nothing exotic. ctags v5.8 is installed in /usr/local/bin/ctags, and /usr/local/bin is in my path. If I run ctags manually on the same file, it does produce a tags file without error. My working directory when running genxref is the lxr root directory. I'm using lxr 0.9.10 and the error is triggered by the first file it tries to index, no matter which one it encounters and what type it is. |
From: andre-littoz <pag...@ya...> - 2011-12-23 18:35:39
|
@nn6eumtr, @wcw8410: what is the output of following shell command? ctags --version The test is based on its result. The command is expected to return "Exuberant ctags" (case indifferent), then blanks, then a number. If your ctags does not return a string containing this pattern, genxref will declare you have not the appropriate version. ajl |
From: nn6eumtr <nn6...@gm...> - 2011-12-23 19:32:35
|
I traced it out late last night - the ectagsbin config item wasn't set correctly for my system, the command not found error didn't match the regex in read_config(), which resulted in the slightly misleading error message. On 12/23/2011 1:35 PM, andre-littoz wrote: > @nn6eumtr, @wcw8410: what is the output of following shell command? > ctags --version > > The test is based on its result. The command is expected to return > "Exuberant ctags" (case indifferent), then blanks, then a number. > If your ctags does not return a string containing this pattern, genxref > will declare you have not the appropriate version. > > ajl > |
From: Jan-Benedict G. <jb...@lu...> - 2007-12-07 12:18:20
|
On Fri, 2007-12-07 20:13:01 +0800, Chuanwen Wu <wc...@gm...> wrote: > *** / helloworld > *** /helloworld.c helloworld > Unable to create LXR::Lang::Generic Lang object, Exuberant ctags > version 5 or above required, found ctags (GNU Emacs 22.1) > Copyright (C) 2007 Free Software Foundation, Inc. > This program is distributed under the terms in ETAGS.README Did you actually *read* that message? > Any help will be very appreciated! Please read the error message again :) MfG, JBG --=20 Jan-Benedict Glaw jb...@lu... +49-172-7608481 Signature of: http://catb.org/~esr/faqs/smart-questions.html the second : |
From: Chuanwen W. <wc...@gm...> - 2007-12-07 12:42:39
|
On Dec 7, 2007 8:18 PM, Jan-Benedict Glaw <jb...@lu...> wrote: > On Fri, 2007-12-07 20:13:01 +0800, Chuanwen Wu <wc...@gm...> wrote: > > *** / helloworld > > *** /helloworld.c helloworld > > Unable to create LXR::Lang::Generic Lang object, Exuberant ctags > > version 5 or above required, found ctags (GNU Emacs 22.1) You mean this line? Of course, I use ctags-5.5.4-r2:( I use gentoo linux) # eix ctags [I] dev-util/ctags Available versions: 5.5.4-r2 ~5.6-r2 ~5.6-r3 ~5.7 {ada} Installed versions: 5.5.4-r2(08:04:34 PM 12/07/2007) Homepage: http://ctags.sourceforge.net Description: Exuberant Ctags creates tags files for code browsing in editors > > Copyright (C) 2007 Free Software Foundation, Inc. > > This program is distributed under the terms in ETAGS.README > > > Did you actually *read* that message? > > > Any help will be very appreciated! > > Please read the error message again :) > > MfG, JBG > > -- > Jan-Benedict Glaw jb...@lu... +49-172-7608481 > Signature of: http://catb.org/~esr/faqs/smart-questions.html > the second : > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > > iD8DBQFHWTn+Hb1edYOZ4bsRAs6LAJ9GHp5EVSpYkaIw66mZmF72iQrfIgCfeAKW > pdQJV5IzOdYFgNezpZYeJAc= > =eZa5 > -----END PGP SIGNATURE----- > > -- wcw |