The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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-22-2008 01:38 AM
Error in issuing a make and make install ahjiefreak Linux 1 03-12-2008 01:32 AM
make mwagz HP-UX 1 02-05-2007 10:26 AM
make install stancwong UNIX for Dummies Questions & Answers 2 01-19-2006 09:13 PM
/usr/ccs/bin/make marist89 UNIX for Dummies Questions & Answers 4 07-31-2002 03:48 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-02-2003
gerwhelan gerwhelan is offline
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
  #2 (permalink)  
Old 07-02-2003
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
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
gerwhelan gerwhelan is offline
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 Forum Advisor  
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
gerwhelan gerwhelan is offline
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.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:22 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0