Gentoo Archives: gentoo-user

From: Chuanwen Wu <wcw8410@×××××.com>
To: gentoo-user <gentoo-user@l.g.o>
Subject: [gentoo-user] lxr and Mysql problem
Date: Tue, 04 Dec 2007 13:21:16
Message-Id: 7797aa370712040512r7a22ec2t4d1a294fe71f7a68@mail.gmail.com
1 Hi, guys!
2
3 I want to use lxr to view the kernel source and have installed it with
4 the guide in the file INSTALL in the lxr package .
5 But when I do genxref, the error occure.
6
7 I show a example below, in which I use a EMPTY file called
8 "helloworld.c" in the a directory called "helloworld". I try to
9 genxref it and the output is:
10
11 # ./genxref --url http://localhost/lxr/
12
13 This is glimpseindex version 4.18.2, 2006.
14
15 Indexing "/usr/src/mysrc/helloworld" ...
16
17 Size of files being indexed = 72 B, Total #of files = 1
18
19 Index-directory: "/var/www/localhost/htdocs/lxr/src/.glimpse/helloworld"
20 Glimpse-files created here:
21 -rw------- 1 root root 41 2007-12-04 21:03 .glimpse_filenames
22 -rw------- 1 root root 4 2007-12-04 21:03 .glimpse_filenames_index
23 -rw------- 1 root root 0 2007-12-04 21:03 .glimpse_filetimes
24 -rw------- 1 root root 121 2007-12-04 21:03 .glimpse_index
25 -rw------- 1 root root 116 2007-12-04 21:03 .glimpse_messages
26 -rw------- 1 root root 22 2007-12-04 21:03 .glimpse_partitions
27 -rw------- 1 root root 125 2007-12-04 21:03 .glimpse_statistics
28 -rw------- 1 root root 262144 2007-12-04 21:03 .glimpse_turbo
29 *** / helloworld
30 *** /helloworld.c helloworld
31 --- /helloworld.c helloworld 1196773242-72
32 DBD::mysql::st execute failed: You have an error in your SQL syntax;
33 check the manual that corresponds to your MySQL server version for the
34 right syntax to use near 'release = 'helloworld'' at line 1 at
35 /usr/lib64/perl5/vendor_perl/5.8.8/LXR/Index/Mysql.pm line 209.
36 DBD::mysql::st execute failed: You have an error in your SQL syntax;
37 check the manual that corresponds to your MySQL server version for the
38 right syntax to use near 'release) values ('18841', 'helloworld')' at
39 line 1 at /usr/lib64/perl5/vendor_perl/5.8.8/LXR/Index/Mysql.pm line
40 213.
41 /helloworld.c was already indexed
42 ### / helloworld
43 ### /helloworld.c helloworld
44 --- /helloworld.c helloworld 1196773242-72
45 /helloworld.c was already referenced
46
47 Then I opened firefox with the url http://localhost/lxr/source, but
48 nothing in the browser. And when I used http://localhost/lxr/, I
49 could see the file in the lxr directory in my browser.
50
51 Other information:
52 $mysql -V
53 mysql Ver 14.12 Distrib 5.0.44, for pc-linux-gnu (x86_64) using readline 5.2
54
55 And I use lxr-0.9.5 and dev-perl/DBD-mysql-4.00.5.
56
57 Any help will be very appreciated!
58
59
60
61 wcw
62 --
63 gentoo-user@g.o mailing list

Replies

Subject Author
[gentoo-user] Re: lxr and Mysql problem Chuanwen Wu <wcw8410@×××××.com>