help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't find m4sugar.m4 / alternate install dir


From: Michael Brandt
Subject: Re: Can't find m4sugar.m4 / alternate install dir
Date: Tue, 17 Oct 2006 17:19:19 +0200

2006/3/14, Irvine, Chuck R [LTD] <address@hidden>:
For various reasons, I had trouble building bison from source, so I
found and installed a binary verion (2.0) for my OS (AIX 5.2). I'm not
able to install to "/usr/local", so installed instead to my <home_dir>.
So, after installtion everything is installed at:

<home_dir>/usr/local

Which has suddirs of bin, include, info, lib, man, share.

Additionally, <home_dir>/usr/local/bin is included in my PATH variable.

When, I try to build an application which requires bison, I get:


bison -y  -d -v `test -f 'soapcpp2_yacc.y' || echo './'`soapcpp2_yacc.y
bison: cannot open file `/usr/local/share/bison/m4sugar/m4sugar.m4': A
file or directory in the path name does not exist.

The m4sugar.m4 file does exist, but it is at
<home_dir>/usr/local/share/bison/m4sugar/m4sugar.m4 instead.

Does anyone know of a work around such that bison would look for
m4sugar.m4 in an alternate location?

Try setting the environment variable BISON_PKGDATADIR manually (tried
with bison2.1).

export BISON_PKGDATADIR=<home_dir>/usr/local/share/bison
bison -y  -d -v `test -f 'soapcpp2_yacc.y' || echo './'`soapcpp2_yacc.y

This is not documented, but the code for locating the parser skeletons
and m4sugar.m4 uses this variable if it is set.

Michael




reply via email to

[Prev in Thread] Current Thread [Next in Thread]