Solaris 9 make Fatal error Command failed for target

This entry was posted in Solaris Administration and tagged , , on June 17, 2012, by

Hi everyone

first of all you should know that I’ve been working with solaris for a few days only.

I need to install some programs and I have had the following troubles:

1. When I used /.configure it showed the following message:

“no acceptable C compiler found in $PATH”

I included /usr/css/bin/ in the path and it worked but I think is using ucbcc instead of cc

2.Then again with ./configure it showed:

“error: C compiler cannot create executables”

I followed some advices I found in the internet and now ./configure is ok

3. I tried with ‘make” which is the next step in the installation process but it said: “make: not found”

4.I tried with “/usr/ccs/bin/./make” and is trying to compile but the following message appears (when trying to install gnu m4-1.4.3):

“make: fatal error: command failed for target ‘libm4.a’ this kind of error appears with all programs I try to install my path is:

/usr/sbin: /usr/bin: /usr/dt/bin/: /usr/openwin/bin: /bin: /usr/ucb: /usr/css/bin

 

I don’t know what’s wrong. Do I need to configure another path, am I missing something?? help please thank you very much

diego

#2 (permalink)

10-28-2005

plimpix

Registered User

Join Date: May 2005

Location: Scotland

Posts: 28

 

Two important things i have found when compiling packages in Solaris are the PATH & LD_LIBRARY_PATH

PATH=/usr/bin:/sbin:/usr/local/bin:/usr/openwin/bin:/usr/dt/bin

LD_LIBARAY_PAT=/lib:/usr/lib:/usr/local/lib

 

I have also found that the cc compiler with Solaris hasn’t always compiled what i wanted to.. So what i would suggest you do is download gcc from say www.sunfreeware.com. You can install this with a pkgadd and you might even find that the package your are trying to compile is already on there!

If not once you have gcc installed then i would suggest your re-run the ./configure and see how you get on!

#3 (permalink)

10-28-2005

eldiego

Registered User

Join Date: Oct 2005

Posts: 13

I tried with the PATH and the LD_LIBRARY_PATH and it worked!!!!

thank you very much plimpix

diego

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright 2017 ©Aceadmins. All rights reserved.