Why is gcc missing from </usr/sfw/bin>


 
Thread Tools Search this Thread
Operating Systems Solaris Why is gcc missing from </usr/sfw/bin>
# 1  
Old 09-10-2011
Why is gcc missing from </usr/sfw/bin>

Hi All: Does anyone know why gcc would be missing from /usr/sfw/bin? Has it been replaced by another file in below directory? .... Do you think admins may have deleted it from here?

More importantly, is there anything else I can use in here as an alternative for a C program compilation?
(gmake is not useful as it will need a c compiler, and CC doesn't work as I get: "/usr/ucb/cc: language optional software package not installed".


Code:
/usr/sfw/bin> ls
64                   fixwwps              includeres           psset
a2ps                 flex                 ipmitool             pstops
acroread             font2c               libusb-config        pv.sh
addbuiltin           freetype-config      lprsetup.sh          showchar
ant                  gaddr2line           mib2c                signtool
antRun               gar                  mib2c.perl           signver
antRun.pl            gas                  modutil              snmpbulkget
bdftops              gc++filt             net-snmp-config      snmpbulkwalk
bison                gegrep               net-snmp-config-32   snmpconf
CA.pl                getafm               net-snmp-config-64   snmpdelta
card                 gfgrep               ogonkify             snmpdf
certutil             ggprof               openssl              snmpget
cmsutil              ggrep                pdf2dsc              snmpgetnext
complete-ant-cmd.pl  gimpprint-config     pdf2ps               snmpinform
composeglyphs        gld                  pdfopt               snmpnetstat
crlutil              glib-config          pdiff                snmpset
dumphint             gm4                  pf2afm               snmpstatus
dvipdf               gmake                pfbtopfa             snmptable
eps2eps              gnm                  pilot-xfer           snmptest
epsffit              gobjcopy             pk12util             snmptranslate
escputil             gobjdump             printafm             snmptrap
extractres           granlib              ps2ascii             snmpusm
fixdlsrps            greadelf             ps2epsi              snmpvacm
fixfmps              gs                   ps2pdf               snmpwalk
fixmacps             gsbj                 ps2pdf12             sparcv9
fixmswrd.pl          gsdj                 ps2pdf13             ssltap
fixnt                gsdj500              ps2pdf14             tclsh8.3
fixproc              gsize                ps2pdfwr             texi2dvi4a2ps
fixps                gslj                 ps2ps                unix-lpr.sh
fixpsditps           gslp                 psbook               wftopfa
fixpspps             gsnd                 psmandup             wget
fixscribeps          gstrings             psmerge              wish8.3
fixtpps              gstrip               psnup                zsh
fixwfwps             gtar                 psresize             zsh-4.2.1
fixwpps              ijs-config           psselect


Last edited by DukeNuke2; 09-11-2011 at 05:37 AM..
# 2  
Old 09-11-2011
Quote:
Originally Posted by steve701
Do you think admins may have deleted it from here?
They might have moved, removed or renamed it or just have not installed the gcc package.

Why aren't you asking them directly ?
# 3  
Old 09-11-2011
Code:
Does anyone know why gcc would be missing from /usr/sfw/bin? Has it been replaced by another file in below directory? .... Do you think admins may have deleted it from here?

I would search for it if I were you, maybe it is lying somewhere else, who knows, I am a novice but I am trying my best to lend a hand. You can try

Code:
find / -name gcc -print

And please don't forget to tell me if it worked!
# 4  
Old 09-11-2011
dude, that's the first thing I tried!! no gcc. i think it was manually removed to prevent development on the machine
# 5  
Old 09-11-2011
Quote:
Originally Posted by steve701
dude, that's the first thing I tried!! no gcc. i think it was manually removed to prevent development on the machine
Shit, that's was my very first attempt to solve someone's problem on this forum, sorry mate, that was all that I could do. I myself have some problems with my gcc. It is located in /usr/sfw/bin/gcc, but when I try to a compile a c++ hello program, it doesn't compile, giving several errors.
Here is my program, maybe you can lend a hand now.
Code:
 
#include <iostream>
using namespace std;
int main()
{
         cout << "Hello, world!\n";
         return 0;
}

I compile it like this

Code:
 
$ /usr/sfw/bin/gcc hello.cpp -o hello

But it fails!
# 6  
Old 09-11-2011
Download form sunfreeware.com gcc or better use better Sun compiler
from Oracle Studio

gcc link

http://companion.sunfreeware.com/dow...6/SFWgcc2l.zip
# 7  
Old 09-11-2011
Quote:
Originally Posted by gabam
I myself have some problems with my gcc. It is located in /usr/sfw/bin/gcc, but when I try to a compile a c++ hello program, it doesn't compile, giving several errors.
That's not surprising at all. Compiling a C++ source with a C compiler cannot but fail. Only the opposite might work.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. BSD

FreeBSD: /usr/bin/ld not looking in /usr/local/lib

I'm not sure if this is the default behavior for the ld command, but it does not seem to be looking in /usr/local/lib for shared libraries. I was trying to compile the latest version of Kanatest from svn. The autorgen.sh script seems to exit without too much trouble: $ ./autogen.sh checking... (2 Replies)
Discussion started by: AntumDeluge
2 Replies

2. Solaris

How to link sed from /usr/bin/sed to /usr/local/bin/sed?

Hi Guys, OS:- Solaris 10 64Bit I have a small query. On one server a user is facing sed command issue. He gets error regarding sed for this location /users/hoy/2999/batch5/bin/internal.sh: /usr/local/bin/sed: not found How ever the sed is actually present at this location on server:-... (13 Replies)
Discussion started by: manalisharmabe
13 Replies

3. Solaris

What is the difference between xpg4/bin and usr/bin?

Hi Experts, I found that the same commands(sort, du, df, find, grep etc.) exists in both dir. What is the difference to use them? i.e: to use xpg4/bin/grep and usr/bin/grep My OS version is SunOS 5.10 Regards, Saps (7 Replies)
Discussion started by: saps19
7 Replies

4. OS X (Apple)

When to use /Users/m/bin instead of /usr/local/bin (& whats the diff?)?

Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself. But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies

5. Red Hat

/usr/bin/find && -exec /bin/rm never work as expected

hi there, Would you able to advise that why the syntax or statement below couldn't work as expected ? /usr/bin/find /backup -name "*tar*" -mtime +2 -exec /bin/rm -f {} \; 1> /dev/null 2>&1 In fact, I was initially located it as in crontab job, but it doesn't work at all. So, I was... (9 Replies)
Discussion started by: rauphelhunter
9 Replies

6. UNIX for Dummies Questions & Answers

Alias /usr/bin to /bin in profile

Hi! All the basic linux commands, ie. echo, find, etc, are located in /bin. I have a couple of programs that have these commands pointed towards /usr/bin, ie, /usr/bin/echo (even though the actual 'echo' command is in /bin). How can I alias or redirect or link the /usr/bin to /bin just for this... (6 Replies)
Discussion started by: dancerat
6 Replies

7. Solaris

How do I link ld in /usr/ucb/ to /usr/ccs/bin?

Hi all, below is the problem details: ora10g@CNORACLE1>which ld /usr/ucb/ld ora10g@CNORACLE1>cd /usr/ccs/bin ora10g@CNORACLE1>ln -s /usr/ucb/ld ld ln: cannot create ld: File exists ora10g@CNORACLE1> how to link it to /usr/ccs/bin? (6 Replies)
Discussion started by: SmartAntz
6 Replies

8. UNIX for Dummies Questions & Answers

Difference between /bin, /usr/bin, /sbin ?

Hi All, Can somebody tell me the difference between /bin, /usr/bin, /sbin ? Thanx in advance, Saneesh Joseph (3 Replies)
Discussion started by: saneeshjose
3 Replies

9. UNIX for Dummies Questions & Answers

/bin/sh: /usr/bin/vi: No such file or directory when doing crontab

I just set up an ftp server with Red Hat 5.2. I am doing the work, I'm baby stepping, but it seems like every step I get stuck. Currently, I'm trying to set up a crontab job, but I'm getting the following message: /bin/sh: /usr/bin/vi: No such file or directory. I see that vi exists in /bin/vi,... (3 Replies)
Discussion started by: kwalter
3 Replies
Login or Register to Ask a Question