The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
make url nagalenoj UNIX for Advanced & Expert Users 1 04-21-2008 10:38 PM
Error in issuing a make and make install ahjiefreak Linux 1 03-11-2008 09:32 PM
make mwagz HP-UX 1 02-05-2007 06:26 AM
make install stancwong UNIX for Dummies Questions & Answers 2 01-19-2006 05:13 PM
/usr/ccs/bin/make marist89 UNIX for Dummies Questions & Answers 4 07-31-2002 12:48 PM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-02-2003
Registered User
 

Join Date: Dec 2001
Location: Ireland
Posts: 20
Unhappy make and make install commands

Hi there,

I am installing a package at the moment on to my Solaris version 8 and I have run into a problem with the 'make' command. I have installed the package using the 'pkgadd' command and I am now at the stage where I have to use the 'make' command followed by the 'make install' command. According to the instructions for the package you just type 'make' and 'make install' and it should compile. When I use the 'make' command I get the following error:

make: Fatal error: Command failed for target

Does anyone have any suggestions? Thanks
Forum Sponsor
  #2 (permalink)  
Old 07-02-2003
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,422
Are there any more error messages before this?

The message only tells the make on the default target failed, but giving no indication of what actually failed
  #3 (permalink)  
Old 07-02-2003
Registered User
 

Join Date: Dec 2001
Location: Ireland
Posts: 20
Unhappy

Hi Cbkihong,

This is the full error. GCC is definitely installed. I am running the 'make' command from the directory with the makefile in it. There is no other errors before this one.
I've tried the two different make commands on this:
/usr/ccs/bin/make and /usr/ccs/lib/svr4-make and they both give the same.


gcc -DBZERO -DSOLARIS -DGETTIMEOFDAY -DREGEXEC -O -c bb.c
sh: gcc: not found
*** Error code 1
make: Fatal error: Command failed for target `bb.o'

Thanks.
  #4 (permalink)  
Old 07-02-2003
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
It looks like you need to insure you have the directory that gcc is installed in as part of your PATH.

If you do the following and it doesn't know where gcc is, then that is your problem.

# which gcc
  #5 (permalink)  
Old 07-03-2003
Registered User
 

Join Date: Dec 2001
Location: Ireland
Posts: 20
Wink

Hi RTM,

I typed in the command # which gcc and I found it wasn't in my $path. I edited the makefile to include gcc in it's correct path and it compiled fine. Thanks for that.
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:21 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0