UMBC ebiquity research group Building intelligent systems in open, heterogeneous, dynamic, distributed environments
05 July 2008, 18:10:57 EDT  
Installing telegraphCQ

Installing telegraphCQ

By Tim Finin on Wednesday, May 2nd, 2007 at 1:00 pm.

These are the steps I used to install and troubleshoot my tcq installation. For official documentation visit -http://telegraph.cs.berkeley.edu/  Installing Telegraph CQ 2.0 on kubuntu linux. Steps:

1. Create a new user for usage with telegraph - Command = useradd -d /home/tcquser -m tcquser

2. Change password to whatever you want.

3. Go to http://telegraph.cs.berkeley.edu/telegraphcq/v2.0 to get TelegraphCQ version 2.0. My observation is that there are some problems with version 2.1 for unarchived streams. I could only get archived streams to work on it, so I couldn’t query it realtime. I had to query the archived stream. I found it on the mailing list that people worked with 2.0 and could use it for unarchived streams.

4. su tcquser

5. Create two directories - /home/tcquser/tcq-tools and /home/tcquser/installs/telegraph

6. To install mm- unpack the .tar.gz file provided at - http://www.ossp.org/pkg/lib/mm/ into /home/tcquser/setups/mm

7. Go to /home/tcquser/setups/mm and run -

a. ./configure –prefix=/home/tcquser/tcq-tools b. make c. make test d. make install8. To install judy- remember to pickup the patched version for tcq from http://telegraph.cs.berkeley.edu/dev/judy-tcq-0.0.1.tar.gz unpack it into /home/tcquser/setups/judy 9. Go to /home/tcquser/setups/judy and run -

a. ./configure –prefix=/home/tcquser/tcq-tools b. make c. make check d. make install10. To install telegraphcq -

a. export $PGRSHOME=/home/tcquser/installs/telegraph b. Unpack the telegraph package into /home/tcquser/installs/telegraph/TelegraphCQ-2.0 c. Go to /home/tcquser/installs/telegraph/TelegraphCQ-2.0 d. ./configure-tcq e. make f. make installCommonly encountered errors -

1. During configure-tcq - readline library not found - install readline (for ubuntu/ kubuntu install the libreadline and libreadline-dev from the package manager) 2. During make of TelegraphCQ, I got some error in the code of the form “invalid lvalue”. Apparently there was some code of the form -

Class1 * ptr1; ptr1 = (Class1 *) ptr2 -> ptr3 = NULL;I had g++ version 4.1 on my machine and it did not recognize the “(Class1 *) ptr2 -> ptr3″ part as a valid lvalue. I broke the code into 2 lines.

ptr2 -> ptr3 = NULL; ptr1 = (Class1 *) ptr2 -> ptr3;3. While running ./createdb you might get errors such as libpq.so.3 not found. Generally there are newer versions of these files in /usr/lib. Create a symlink as per the required version e.g.

sudo ln -s /usr/lib/libpq.so.4 (existing file) /usr/lib/libpq.so.3 (reqd file)4. Sometimes ./createdb or ./psql fails saying -

psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket “/var/run/postgresql/.s.PGSQL.5432″? This means either the server is not running or client is looking for the socket file in wrong place. This error message show that it’s looking for it in /var/run/postgresql whereas on my machine it was actually present in /tmp. To overcome this I created a symlink.ln -s /tmp /var/run/postgresql

Related posts: • No related posts;  

 

 

Leave a Reply






UMBC