[CWB] Newbie problem with install

Stephen Barrett Stephen.Barrett at glasgow.ac.uk
Thu Oct 31 13:05:15 CET 2013


Hi again, Andrew et al.

Having successfully install CWB with Andrew's help  I got around to attempting installation of the Perl packages today but found that when I tried to install the Perl-CWB-CL I require a more recent version of CWB. As it turns out I wanted a higher version anyway so checked out the latest version from SVN. Now when I try to do a "make all" I get the following errors:
"... 
gcc -c  -o llquery.o -O2 -Wall -fPIC -m64   -DUSE_TERMCAP -DUSE_READLINE -DREGISTRY_DEFAULT_PATH=\""/usr/local/cwb-3.4.7/share/cwb/registry"\" -DCOMPILE_DATE=\""Thu Oct 31 11:55:20 GMT 2013"\" -DVERSION=\"3.4.7\" `pkg-config --cflags glib-2.0`   llquery.c
llquery.c:42:31: error: readline/readline.h: No such file or directory
llquery.c:43:30: error: readline/history.h: No such file or directory
llquery.c: In function âcc_compl_list_sort_uniqâ:
llquery.c:105: error: ârl_attempted_completion_overâ undeclared (first use in this function)
llquery.c:105: error: (Each undeclared identifier is reported only once
llquery.c:105: error: for each function it appears in.)
llquery.c: In function âcqp_custom_completionâ:
llquery.c:149: error: ârl_line_bufferâ undeclared (first use in this function)
llquery.c:188: warning: assignment discards qualifiers from pointer target type
llquery.c:212: warning: passing argument 1 of âcl_strdupâ discards qualifiers from pointer target type
../cl/cl.h:192: note: expected âchar *â but argument is of type âconst char *â
llquery.c:245: warning: assignment discards qualifiers from pointer target type
llquery.c: In function âreadline_mainâ:
llquery.c:350: error: ârl_attempted_completion_functionâ undeclared (first use in this function)
llquery.c:352: error: ârl_completer_word_break_charactersâ undeclared (first use in this function)
llquery.c:356: warning: implicit declaration of function âread_historyâ
llquery.c:374: warning: implicit declaration of function âreadlineâ
llquery.c:374: warning: assignment makes pointer from integer without a cast
llquery.c:389: warning: assignment makes pointer from integer without a cast
llquery.c:394: warning: implicit declaration of function âadd_historyâ
make[1]: *** [llquery.o] Error 1
make[1]: Leaving directory `/usr/local/cwb-3.4.7/cqp'
make: *** [all] Error 2"

I have installed glib-devel and glib2-devel as well as pcre-devel. 

Any help would be much appreciated.

Many thanks

Stephen



-----Original Message-----
From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Hardie, Andrew
Sent: 29 October 2013 15:26
To: Open source development of the Corpus WorkBench
Subject: Re: [CWB] Newbie problem with install

This is a confusion that has caught me out once or twice when dealing with Linux distros - the binary library files are contained in some package "XXX", *but* the header files needed to actually link against those libraries are contained in a separate package "XXX-dev" (or "XXX-devel"). 

If I get a spare moment I may add an extra note to the readme file to (hopefully) save others from this confusion in the future...

best

Andrew.

-----Original Message-----
From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Stephen Barrett
Sent: 29 October 2013 14:53
To: Open source development of the Corpus WorkBench
Subject: Re: [CWB] Newbie problem with install

Hi Andrew,

Many thanks indeed. I had previously checked for ncurses and it was installed but when I checked again just now for ncurses-devel that was missing, so I installed and the make all seems to run fine now.

Much appreciated!
 
Stephen


-----Original Message-----
From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Hardie, Andrew
Sent: 29 October 2013 14:20
To: Open source development of the Corpus WorkBench
Subject: Re: [CWB] Newbie problem with install

Hi Stephen,

This looks suspiciously as if you do not have the ncurses library, as those are curses functions. Can you check this?

best

Andrew. 

-----Original Message-----
From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Stephen Barrett
Sent: 29 October 2013 13:37
To: Open source development of the Corpus WorkBench
Subject: [CWB] Newbie problem with install

Dear All,

I am having a bit of a problem installling CWB on Centos. I believe we have all the necessary packages but when I try a "make all" I get the following errors:

" ...
gcc -DHAVE_CONFIG_H -O2 -Wall -fPIC -m64   -DUSE_TERMCAP -DUSE_READLINE -o test test.o -L. -leditline
./libeditline.a(editline.o): In function `readline':
editline.c:(.text+0x33b0): undefined reference to `tgetent'
editline.c:(.text+0x33ce): undefined reference to `tgetstr'
editline.c:(.text+0x33f5): undefined reference to `tgetstr'
editline.c:(.text+0x340d): undefined reference to `tgetstr'
editline.c:(.text+0x3425): undefined reference to `tgetstr'
editline.c:(.text+0x343d): undefined reference to `tgetstr'
./libeditline.a(editline.o):editline.c:(.text+0x34e6): more undefined references to `tgetstr' follow
./libeditline.a(editline.o): In function `readline':
editline.c:(.text+0x3512): undefined reference to `tgetnum'
editline.c:(.text+0x3526): undefined reference to `tgetnum'
editline.c:(.text+0x366d): undefined reference to `tgetstr'
collect2: ld returned 1 exit status
make[1]: *** [test] Error 1
make[1]: Leaving directory `/usr/local/cwb-3.0/editline'
make: *** [editline] Error 2
"

Any help would be much appreciated as I am a real newbie when it comes to both Linux sys admin and CWB!

Many thanks

Stephen

_______________________________________________
CWB mailing list
CWB at sslmit.unibo.it
http://devel.sslmit.unibo.it/mailman/listinfo/cwb
_______________________________________________
CWB mailing list
CWB at sslmit.unibo.it
http://devel.sslmit.unibo.it/mailman/listinfo/cwb
_______________________________________________
CWB mailing list
CWB at sslmit.unibo.it
http://devel.sslmit.unibo.it/mailman/listinfo/cwb
_______________________________________________
CWB mailing list
CWB at sslmit.unibo.it
http://devel.sslmit.unibo.it/mailman/listinfo/cwb


More information about the CWB mailing list