No cc/gcc installed on SunOS 5.10


 
Thread Tools Search this Thread
Operating Systems Solaris No cc/gcc installed on SunOS 5.10
# 1  
Old 09-05-2011
No cc/gcc installed on SunOS 5.10

Hi All: this work machine has no gcc installed, the only cc is located at: /usr/ucb/cc but this does not do a make, I get error:

"/usr/ucb/cc: language optional software package not installed".

Meaning cc is not fully installed, correct?
I do not want to get root/sysadmin involved on this.

Question is: Can I download a local cc/gcc copy and install it locally under my home? If so, can I point it to /usr/include? (I checked and we do have that installed) Also keep in mind, I am doing a Pro*c code, and the "proc" in oracle, nicely converts the PC to C already, which means I will need to include the <sqlca.h> and I checked and we have that at: /usr/include/pgsql/sqlca.h

So will a local copy be able to include all that and compile my code.


Right now I am installing Solaris 10 (I hope exact same as sunos 5.10 on my home machine) and will compile there and x-fer back to work the result and hoping the generated binary can run fine on it..but as you can imagine this is a looong task, former is a lot faster and easier.

Thanks
Steve
# 2  
Old 09-05-2011
You can either download Sun Studio 12 Compilers from Oracle ..., which are now "free" or you can download Sun Freeware gcc compiler package from sunfreeware DOT com. I can't seem to post URLs yet. Just google for Sun Studio 12 and there will be a download site.
This User Gave Thanks to loryd For This Post:
# 3  
Old 09-05-2011
Double check gcc isn't installed on /usr/sfw/bin/gcc which is its default path on Solaris 10.
This User Gave Thanks to jlliagre For This Post:
# 4  
Old 09-05-2011
At work (sunos 5.10), no, I got this:
> ls -l /usr/sfw/bin/gcc
/usr/sfw/bin/gcc: No such file or directory

But at home, (solaris 10), which I just finished installing, Yes, it's there!

But by default it's not in the PATH, can I just add it to the path and expect it to work? I notice gmake is also there.... should I add that plus the /usr/include for all the headers and it will do?
# 5  
Old 09-05-2011
Just add /usr/sfw/bin to your PATH and you are done.
# 6  
Old 09-06-2011
Just ask your admin to install gcc. It takes me less than 5 minutes to do it when app departments ask for it. It's a very common request, and causes no down time. Your admin can quickly grab it off of sunfreeware.
# 7  
Old 09-06-2011
Trust me, I beleive you, politics, I don't want visibility on this task.

I have new issue: tar xvf does not work on my own machine...I am root, when I tar it says "cannot create" on all the files...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Bash find version of an installed application but if none is found set variable to App Not Installed

Hello Forum, I'm issuing a one line bash command to look for the version of an installed application and saving the result to a variable like so: APP=application --version But if the application is not installed I want to return to my variable that the Application is not installed. So I'm... (2 Replies)
Discussion started by: greavette
2 Replies

2. Red Hat

Trouble with installed / not installed rpm unixODBC/libodbc.so.1

Hey there, i run 1: on my server (RHEL 6) and getting response that the libodbc is not installed. If i use yum for installation, it tells me, there is no package like this ( 2: ). Since in the description of Definiens is mentioned that the Run-time dependency is unixODBC (libodbc.so.1), I assume... (2 Replies)
Discussion started by: rkirsten
2 Replies

3. AIX

OS Patches installed but they seem as not installed

Hello everyone: I've installed an OS patch into AIX 6.1 by running the following command: instfix -d /tmp/6100-02-03 -k "IZ41855" however it seem not installed instfix -i -k "IZ41855" There was no data for IZ41855 in the fix database. what am I doing wrong? (8 Replies)
Discussion started by: edgarvm
8 Replies

4. Solaris

command 'cc' failed even though gcc is installed

I'm trying to build some python modules on a Solaris 10 machine. It has gcc as /usr/sfw/bin/gcc. # CC=gcc python setup.py build running build running build_py running build_ext cc -c actread.c -o actread.o unable to execute cc: No such file or directory error: command 'cc' failed with exit... (8 Replies)
Discussion started by: aussieos
8 Replies

5. Solaris

SunOS 5.8 vs 5.10

Hi, I am bulding a path to open files like this \path\values\file.xxx This path is opened in an IE browser window and opens the file/document I am trying to see. I mean it opens a pdf document or it promps you to "save" or "open" the specific file (if it's a .xml, .doc, .html). I was using... (1 Reply)
Discussion started by: hcibl_javok
1 Replies

6. Solaris

Installing gcc - recieve error message gcc : cannot execute

AIM- Install Oracle 11g on Solaris using VMWare Steps 1.Logged on as root 2.Created subfolders à /usr/local/bin & /usr/local/bin/gcc 3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD 4.Copied files from CD to /usr/local/bin/gcc 5.Terminal (root) à pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies

7. Solaris

Looking for help with SunOS 5.6

Hey all, I've got my hands on 10 SunOS 5.6 SPARCStation 20 machines and I'm looking to get them up and running. They're all in various states of disrepair but I've got them all to a state where the hardware is working and the machine will at least attempt to boot. I've only used Solaris as a... (1 Reply)
Discussion started by: kevpatts
1 Replies

8. UNIX for Dummies Questions & Answers

Emacs & GCC not installed by default?

I just installed SUSE Linux 10.0 on my computer but when I typed " emacs & " and " gcc -c main.c" in the terminal, those programs couldn't be found. So the Linux install package does not install those programs by default? (2 Replies)
Discussion started by: whutes
2 Replies

9. UNIX for Advanced & Expert Users

Migration of binary file from Sunos 5.8 to Sunos 5.9

I have compiled binary file using "cc" on SunOS 5.8 and the same binary file i have copied to SunOS 5.9 and it is giving me core dump error.I want to know whether migration of compiled code from lower version to higer version created this problem. how can i solve this problem.I am pasting the core... (1 Reply)
Discussion started by: Arvind Maurya
1 Replies

10. Shell Programming and Scripting

SunOS 5.8

I am loging into a SunOS 5.8 box for the first time. I do not see a .profile file in the home directory. Also on the command line when I type a backspace to correct my typing I get a ^H character. Where and how can I fix this? Thanks in advance (5 Replies)
Discussion started by: jxh461
5 Replies
Login or Register to Ask a Question