Print

Print


Jacek,

I looked at the Ubuntu page for antlr 
(http://packages.ubuntu.com/lucid/antlr ), and looking at the list of 
files, it looks like it installs /usr/bin/runantlr . Maybe you might try 
uninstalling pccts and making a symlink that links /usr/bin/runantlr as 
/usr/bin/antlr?  I don't know if that will work (I don't have an ubuntu 
system handy to test on), but it's worth a shot.

-Daniel

On 02/26/2014 05:40 PM, Serge Monkewitz wrote:
> I’ve got practically no experience with debian / ubuntu, sorry!
>
> Is it possible that you have 2 versions of antlr installed? Is there a /usr/bin/antlr2 executable, and/or is /usr/bin/antlr actually a symlink? If so, `sudo update-alternatives —config antlr` may let you choose the default antlr version on your system.
>
> Serge
>
> On Feb 26, 2014, at 5:33 PM, Jacek Becla <[log in to unmask]> wrote:
>
>> Serge
>>
>> Thanks. Do you happen to know how to force ubuntu to
>> grab the version I want?
>>
>>
>> apt-cache madison antlr
>>      antlr | 2.7.7+dfsg-3 | http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
>>      antlr | 2.7.7+dfsg-3 | http://us.archive.ubuntu.com/ubuntu/ precise/main Sources
>>
>> -----
>>
>> sudo apt-get install antlr=2.7.7+dfsg-3
>> Reading package lists... Done
>> Building dependency tree
>> Reading state information... Done
>> antlr is already the newest version.
>> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
>>
>> -----
>>
>> antlr
>> Antlr parser generator   Version 1.33MR33   1989-2001
>>
>>
>> Jacek
>>
>>
>>
>>
>> On 02/26/2014 04:55 PM, Serge Monkewitz wrote:
>>> Jacek,
>>>
>>>     I think the version of antlr you have installed might be prehistoric (1.33, it looks like?). You should probably be using 2.7.7, which you may have to install with an appropriate apt-get command.
>>>
>>> Cheers,
>>> Serge
>>>
>>> On Feb 26, 2014, at 4:42 PM, Jacek Becla <[log in to unmask]> wrote:
>>>
>>>> Daniel
>>>>
>>>> I am getting this when compiling qserv on ubuntu 12.04:
>>>>
>>>> Does it ring any bell?
>>>>
>>>>
>>>> g++ -o bld/mysql/MySqlConnection.os -c -fPIC -D_FILE_OFFSET_BITS=64 -fPIC -Ibld/modules -I/home/becla/cssProto/include -I/home/becla/cssProto/include/xrootd -Ibld -I/usr/include -I/usr/include -Ibld/modules -I/usr/include/python2.7 bld/mysql/MySqlConnection.cc
>>>> g++ -o bld/mysql/SqlConfig.os -c -fPIC -D_FILE_OFFSET_BITS=64 -fPIC -Ibld/modules -I/home/becla/cssProto/include -I/home/becla/cssProto/include/xrootd -Ibld -I/usr/include -I/usr/include -Ibld/modules -I/usr/include/python2.7 bld/mysql/SqlConfig.cc
>>>> g++ -o bld/obsolete/QservPath.os -c -fPIC -D_FILE_OFFSET_BITS=64 -fPIC -Ibld/modules -I/home/becla/cssProto/include -I/home/becla/cssProto/include/xrootd -Ibld -I/usr/include -I/usr/include -Ibld/modules -I/usr/include/python2.7 bld/obsolete/QservPath.cc
>>>> g++ -o bld/obsolete/QservPathStructure.os -c -fPIC -D_FILE_OFFSET_BITS=64 -fPIC -Ibld/modules -I/home/becla/cssProto/include -I/home/becla/cssProto/include/xrootd -Ibld -I/usr/include -I/usr/include -Ibld/modules -I/usr/include/python2.7 bld/obsolete/QservPathStructure.cc
>>>> /usr/bin/antlr -o /home/becla/cssProto/qserv/core/bld/parser -glib /home/becla/cssProto/qserv/core/bld/parser/DmlSQL2.g /home/becla/cssProto/qserv/core/bld/parser/SqlSQL2.g
>>>> Antlr parser generator   Version 1.33MR33   1989-2001
>>>> warning: invalid option: '-glib'
>>>> /home/becla/cssProto/qserv/core/bld/parser/DmlSQL2.g, line 80: syntax error at "{" missing { QuotedTerm PassAction ! \< \> : }
>>>> /home/becla/cssProto/qserv/core/bld/parser/DmlSQL2.g, line 84: syntax error at ")" missing { QuotedTerm PassAction ! \< \> : }
>>>> /home/becla/cssProto/qserv/core/bld/parser/DmlSQL2.g, line 85: syntax error at ")" missing { QuotedTerm PassAction ! \< \> : }
>>>>
>>>> [... it goes on and on...]
>>>>
>>>> ########################################################################
>>>> Use REPLY-ALL to reply to list
>>>>
>>>> To unsubscribe from the QSERV-L list, click the following link:
>>>> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1
>> ########################################################################
>> Use REPLY-ALL to reply to list
>>
>> To unsubscribe from the QSERV-L list, click the following link:
>> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1
> ########################################################################
> Use REPLY-ALL to reply to list
>
> To unsubscribe from the QSERV-L list, click the following link:
> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the QSERV-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1