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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

file not found error when invoking executables using Solaris 2.5

Status
Not open for further replies.

RadarKen

Programmer
Jun 6, 2007
3
CA
Hi,

I have just installed Solaris 2.6 on a SPARC 20. I think I need a C complier to get GCC working. I can't seem to find CC on my system. When I do and try to invoke it, I get a "file not found error" even though I am in the directory where the executable resides. I have also restored versions of CC which are saved on a UFSRESTORE on tape to see if this would work but I get the same error. By the way, these UFSRESTOREs were backups from a 2.3 OS. What could be the problem here?

Sincerely,

Confused
 
If I understand correctly, you haven't bought Sun's C compiler? gcc is supposed to be a freeware version of C for Solaris (and other OSs). Or am I misunderstanding your problem?

I want to be good, is that not enough?
 
RadarKen;

Not really being a programmer this may be wrong but when I had installed GCC on my solaris 9 box for samba setup I think I had to add /usr/ccs/bin to my path.

I remember running into something similar to what you are seeing.

Check to to see if you have /usr/ccs/bin.. if you do, put that in you path and give things a try.

I did this stuff a long time ago so I may have had to tweek a couple other things(If only I had photographic memory).

Thank you
 
Hi,

I'm not sure who's going to receive this reply but I'm assuming it's Ken Cunningham. If it is, then read on.

No, I haven't purchased the c compiler from SUN. I had a c compiler when I was running SUN OS 2.3 before my system disk crashed. Since this system was built eleswhere I had to install a CD drive and install a new OS which was 2.5

Can I build gcc without a c compiler?

The error, "file not found", also occurs when I try to invoke other executables in the same directory.

Ken

 
RadarKen;

Go to click on solaris 2.5 on the right side. Here is a little info I picked off which should answer some of your questions.

gcc-3.4.2-sol25-sparc-local.gz The GNU C compiler and related programs - installs in /usr/local. This package includes the GNU C, C++, and OBJC compiler suites and support files. The Gnat ada software and java are not included yet. These gcc packages require the installation of libiconv. It was compiled to use the SUN assembler and loader usually in /usr/ccs/bin if the SUNW developer packages are installed. Please read the details on how this package was created which can be found at Comments on gcc 3.4.2 . The Details link below contains information on what is new in 3.4.2. Documentation is in /usr/local/doc/gcc, /usr/local/man, and /usr/local/info.


Thanks

CA
 
cndcadams;

I will give this a try. I'm not sure why it will work since
I'm already in the directory that contains the c compiler and I'm a SU as well. We'll see.

Ken

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top