[CWB] Newbie problem with install

Stephen Barrett Stephen.Barrett at glasgow.ac.uk
Fri Nov 1 14:18:48 CET 2013


Hi Andrew,

That got me over another hurdle - thank you very much.

I now have everything installed but have come up against another difficulty. Running the cqpweb configuration script does not create the required tables in the database. I have checked the login details for the user from the command line on localhost and the details are correct and correspond to the entry in config.inc. I have also ensured that the user has complete access - including GRANT option - to the DB. All the directories that are required are in place and have apache as owner with file perms of 755. I attach the details from config in case they are of use.

Thanks again for all your help and apologies for stringing this out!

Cheers

Stephen

config.inc.php:
---------------------
...

/* adminstrators' usernames, separated by | */
$superuser_username = 'admin';


/* mySQL username and password */
$mysql_webuser = 'cwb';
$mysql_webpass = '********';
$mysql_schema  = 'cwb';
$mysql_server  = 'localhost';



/* ---------------------- */
/* server directory paths */
/* ---------------------- */

/* variables do require a '/' before and after */
$path_to_cwb = 'usr/local/cwb-3.4.7/bin';
$path_to_apache_utils = 'usr/bin';
$path_to_perl = 'usr/bin';

$cqpweb_tempdir = 'usr/local/cwbFiles/temp';
$cqpweb_accessdir = 'usr/local/cwbFiles/cqpweb';
$cqpweb_uploaddir = 'usr/local/cwbFiles/upload';


$cwb_datadir = 'usr/local/cwbFiles/corpora';
$cwb_registry = 'usr/local/cwbFiles/registry';

/* if queries to mySQL returns ???? instead of proper UTF-8 symbols, */
/* it can often be fixed instantly by changing this setting, either  */
/* true -> false or false -> true.                                   */
/* The initial value is "true", but which is needed depends on     */
/* several different aspects of your system setup.                   */
$utf8_set_required = true;

-------------------------------

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

Are you using the "beta-install" site configuration file? If so, 3.4.x versions will be  built into separate subdirectories, not overwriting 3.0.x versions. 

To disable this feature, set the environment variable CWB_LIVE_DANGEROUSLY before building. (I always do.)

best

Andrew.

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

Thanks again, Andrew; installing the library fixed that problem...

... unfortunately I still seem to have an issue with CWB-CL. Running "perl Makefile.PL" results in a "need version 3.4.7 of newer, but only 3.0.2 is installed" error. I have run through the process for making and installing the most recent package from  SVN (as mentioned previously) - documented as 3.5 ALPHA  and installed as 3.4.7 - but to no avail. I have also tried a "make realclean" before the installation but still get the message. (I don't know if it's relevant but a cqp -v yields a version of 3.0.2.)

I've looked back through the mailing list archives but haven't found a solution which leads me to suspect I've done something silly or not done something unsilly.

Thanks

Stephen


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

You seem to be missing the GNU Readline library.

best

Andrew.

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

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
_______________________________________________
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