[antlr-interest] Re: Installing ANTLR on a Compaq Non-Stop Server - Question
ortizjco99
junkmail_inbox at att.net
Tue Jun 24 14:26:20 PDT 2003
Thanks fro your reply Ric and others,
I compared the config.log file against another one that resulted from
a successful instalation on Windows using Cygwin and discovered that
some environment variables were not set (the C and C++ compilers
among them).
After setting the needed environment variables ./configure ran just
fine.
Then I ran the Makefile from the ANTLR's toplevel directory, and got
the following error message:
sg534961 at pind101: make
scripts/Rules.make:282: *** target pattern contains no `%'. Stop.
I edited lines 282 and 283 of ../ANTLR-2.7.2/Makefile and removed the
colons.
I re-ran the Makefile and got the following error message this time:
=============================
Making antlr ...
=============================
gmake[1]: Entering directory `/home/sg534961/antlr-2.7.2/antlr'
java -cp /home/sg534961/antlr-2.7.2/antlrall.jar antlr.Tool antlr.g
Exception in thread "main" java.lang.NoClassDefFoundError: antlr/Tool
gmake[1]: *** [.antlr.g] Error 1
gmake[1]: Leaving directory `/home/sg534961/antlr-2.7.2/antlr'
gmake: *** [subdirs] Error 2
I noticed the problem is with using antlrall.jar; because I can
generate C++ code for the calc example with antlr.jar or just antlr-
2.7.2 in the classpath.
I don't know the implications of using antlr.jar intead of
antlrall.jar, nor am I sure I know where to change it.
Help, thanks,
Julio
--- In antlr-interest at yahoogroups.com, Ric Klaren <klaren at c...> wrote:
> Hi,
>
> On Tue, Jun 24, 2003 at 04:02:55PM -0000, ortizjco99 wrote:
> > I'm trying to get ANTLR 2.7.2 installed on a Compaq Non-Stop
server
> > (formerly Himalaya) running OSS (a Unix-like POSIX compliant OS).
> >
> > I downloaded antlr-2.7.2.tar.gz, gunzip'd and untar'd it. Then
from
> > the ANTLR's top directory, I ran the configure command like this:
> >
> > ./configure --prefix=/home/sg534961
> >
> > and this is the message I got:
> >
> > sg534961 at pind101: ./configure --prefix /home/sg534961
> > checking if examples must be built... no
> > checking if BOOTSTRAP_JAR is set... /antlrall.jar
> > checking for ar... /usr/bin/ar
> > checking for as... no
> > checking for gas... no
> > checking for gcc... no
> > checking for cc... cc
> > checking for C compiler default output... configure: error: C
> > compiler cannot create executables
> > sg534961 at pind101:
> >
> > Could somebody tell me what it's wrong and whether there is a
chance
> > I can ANTLR successfully installed on this platform.
>
> Could you post info from the config.log ? Maybe mail it directly to
me if
> it's large?
>
> You could have a look if this snapshot fixes the problem (longshot)
>
> http://wwwhome.cs.utwente.nl/~klaren/antlr/antlr-20030623.tar.gz
>
> If you need the C++ output then you can always compile the support
library
> by hand (if you have a decent C++ compiler that is). Make sure you
include
> lib/cpp/antlr in the searchpath for includes, then compile all .cpp
files
> in lib/cpp/src by hand and make a library from them. You may need
to tweak
> config.hpp for your compiler.
>
> After creating the support lib you can use the anltr from the
antlr.jar
> file to create parsers and link them to the support lib.
>
> If you don't need C++ mode then the antlr.jar is enough. How to use
it
> should be listed in the doc directory.
>
> Cheers,
>
> Ric
> --
> -----
+++++*****************************************************+++++++++---
----
> ---- Ric Klaren ----- j.klaren at u... ----- +31 53 4893722 ----
> -----
+++++*****************************************************+++++++++---
----
> Why don't we just invite them to dinner and massacre them all when
they're
> drunk? You heard the man. There's seven hundred thousand of them.
Ah? ..
> So it'd have to be something simple with pasta, then.
> From: Interesting Times by Terry Pratchet
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list