|
From: Werner L. <wl...@gn...> - 2014-10-05 21:16:40
|
>> $ bison myfile.y
>> ...\msys\1.0\local\bin\bison.exe: \
>> /usr/local/share/bison/m4sugar/m4sugar.m4: \
>> cannot open: No such file or directory
>>
>> I tried a workaround mentioned in the web, but it still fails:
>>
>> $ BISON_PKGDATADIR=.../msys/1.0/local/share/bison \
>> bison myfile.y
>> ...\msys\1.0\local\bin\bison.exe: \
>> m4 subprocess failed: No such file or directory
>>
>> (I have a working m4.exe of course)
>>
>> What is the cause for that, and how can I fix it?
>
> Don't install MinGW programs inside the MSYS tree. MinGW programs
> don't understand the MSYS mounts (which maps /usr/local to some place
> on your system).
Essentially you say that for *all* packages I should set `--prefix' to
a non-msys-mounted directory, right?
OK, tried that for bison. Executing it within the msys shell, it
finds m4sugar.m4. However, I still get
m4 subprocess failed: No such file or directory
So I tried to install m4 also into my new prefix. And bison still
doesn't work, aborting with the same error! This is extremely
frustrating.
Note that I actually need `bison' only to be run within msys, as an
update to version 2.4.2, which is too old for my purposes. For this
special situation, I would thus like to build an `msys-bison' program
in `/usr/local'. How can I build that?
Werner
|