Operating System - HP-UX
1833871 Members
1722 Online
110063 Solutions
New Discussion

Re: configuring flex:Make: Cannot load yacc. Stop.

 
shamini samuthrarathnam
Occasional Contributor

configuring flex:Make: Cannot load yacc. Stop.

When I do a make CFLAGS=-O2 LDFLAGS=-s under flex I get the following message:
make CFLAGS=-O2 LDFLAGS=-s
cp ./initscan.c scan.c
touch .bootstrap
CONFIG_FILES= CONFIG_HEADERS=config.h:conf.in ./config.status
creating config.h
config.h is unchanged
echo timestamp >stamp-h
gcc -c -I. -I. -O2 ccl.c
gcc -c -I. -I. -O2 dfa.c
gcc -c -I. -I. -O2 ecs.c
gcc -c -I. -I. -O2 gen.c
gcc -c -I. -I. -O2 main.c
gcc -c -I. -I. -O2 misc.c
gcc -c -I. -I. -O2 nfa.c
yacc -d ./parse.y
Make: Cannot load yacc. Stop.
*** Error exit code 1

Stop.


I have put the full path to flex in my profile.
Can anyone help Please?

3 REPLIES 3
harry d brown jr
Honored Contributor

Re: configuring flex:Make: Cannot load yacc. Stop.

You need to install yacc first.

live free or die
harry
Live Free or Die
A. Clay Stephenson
Acclaimed Contributor

Re: configuring flex:Make: Cannot load yacc. Stop.

Well, since you are using gcc you almost certainly didn't purchase any sort of development system. Yacc and lex are bundled with any of the C/C++ deveopment systems. You need to install the Gnu version of yacc which is called bison.
If it ain't broke, I can fix that.
Sridhar Bhaskarla
Honored Contributor

Re: configuring flex:Make: Cannot load yacc. Stop.

Hi,

Check your /opt/langtools/bin directory to see if you have yacc installed (comes with any C/C++ development toolkit) If so, modify your path.

Else you can get Berkeley yacc from this site.

http://hpux.ee.ualberta.ca/hppd/hpux/Languages/byacc-3.0/

-Sri

You may be disappointed if you fail, but you are doomed if you don't try