Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with MAKE 1

Status
Not open for further replies.

scharley

Programmer
Jul 21, 2001
6
US
I've been trying to install m4, Bison, and Flex on an Ultra 10 running Solaris 8 and I keep running into problems when I try to run make. Perhaps it's a very simple problem but I'm very new to Unix and I can't seem to find the answer in any of the books I have so maybe someone can help.

Sorry if this is too much information, but here's my experience for each of the three programs.

When I type ./configure for bison or flex, one of the output lines says:
checking whether make sets $MAKE... ./configure: make: not found no

When I run ./configure for m4, it doesn't have any problem finding make

(make and an older version of m4 are in /usr/ccs/bin on my system. I have updated the PATH to include /usr/ccs/bin)


Then if I type make for bison, I get the following output:

make: Fatal error: No arguments to build

If I type make for flex, I get the following output:

cp ./initscan.c scan.c
touch .bootstrap
cc -c -I. -I. -g ccl.c
/usr/ucb/cc: language optional software package not installed
*** Error code 1
make: Fatal error: command failed for target 'ccl.o'


If I type make for m4, I get the following output:
for subdir in doc lib src checks examples; do echo making all in $subdir; (cd $subdir && make CC='cc' CFLAGS='-g' LDFLAGS='' LIBS='' prefix='/usr/local' exec_prefix='/usr/local' bindir ='/usr/local/bin' infodir='/usr/local/info' all) || exit 1; done
making all in doc
sh: make: not found
*** Error code 1
make: Fatal error: Command failed for target 'all'



Any help would very much appreciated!!
Thanks,
Shaun

 
Hi,
For adding any third-party software u have to execute three commands namely:configure,make,make install.
But before executing these, make sure u have C compiler in your system and add its path as well as path of make in the PATH variable.(/usr/local/bin for C and /usr/ccs/bin for make)

I hope this helps.....
 
also point cc to gcc in your profile. For bash it would look like this

CC=gcc
export CC
 
Thanks for your help. I ended up getting gcc, make, m4, autoconf, bison and flex installed successfully by downloading binary packages from sunfreeware.com. I have also set CC to point to gcc so hopefully I am now properly set up to configure and install Apache and PHP directly from the source code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top