Baisc commands in Solaris 10 not found


 
Thread Tools Search this Thread
Operating Systems Solaris Baisc commands in Solaris 10 not found
# 1  
Old 04-16-2015
Baisc commands in Solaris 10 not found

I just installed Solaris 10 on my virtual machine.

firstly I want to complie a c program using gcc but "the gcc is not found"

so I looked for a way and try to install the gcc and I tried the following command

Code:
pkg install gcc-45

but however, the "pkg is not found as well"

I also tried

Code:
pkgadd -d gcc-3.2.2-sol10-x86-local

and it gives me an error
Code:
 failed, errno = 2 pkgadd: ERROR: could not process datastream from <gcc-3.2.2-sol10-x86-local>

I did tried to install the pkgutil by the following command

Code:
http://pkgutil.wikidot.com/get-install-and-configure#toc3

but it's isn't of any help.

How then can I resolve "pkg not found" and install the gcc?

Last edited by roberts123; 04-16-2015 at 04:36 AM..
# 2  
Old 04-16-2015
The pkg tool is not part of Solaris 10. A software repository is used only from Solaris 11 and later.

Start reading the very good documentation for Solaris 10, which can be found at docs.oracle.com.

Also, there is a version of gcc in Solaris 10 already. You can find it in /usr/sfw/bin.

Last edited by DukeNuke2; 04-16-2015 at 05:04 AM..
This User Gave Thanks to DukeNuke2 For This Post:
# 3  
Old 04-16-2015
thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris: File Not Found

Hi, Why do I get this in Solaris 11? huamin@SOL11I:~$ ls /etc/user_addr /etc/user_addr: No such file or directory Many Thanks & Best Regards, HuaMin (1 Reply)
Discussion started by: HuaMin
1 Replies

2. Programming

stdio.h not found on Solaris 11

Hi friends, I hope u r doing well. I have just installed Solaris 11, and it seems that solaris 11 doesn't come with all the packages, one has to do everything manually. I download gcc from sunfreeware.com and installed it. After setting up the path variable, I tried to compile the hello world... (4 Replies)
Discussion started by: gabam
4 Replies

3. UNIX for Dummies Questions & Answers

gcc man pages not found under Solaris 10

Hi friends, When I try to see the man pages of gcc, man gcc I see No manual entry for gcc. Could you help me please. I am running solaris 10 Thanks! (4 Replies)
Discussion started by: gabam
4 Replies

4. Shell Programming and Scripting

Print not found in Solaris

Hi, i have these script whether to find a script is running or not echo "Checking if job is running mail.sh" ((numproc=`ps -aef |grep mail.sh | grep -v grep | wc -l`)) print numproc if ((numproc == 0 )) then print "OKAY to start mail.sh" else PAGEDT=`date|cut... (3 Replies)
Discussion started by: malickhat
3 Replies

5. Shell Programming and Scripting

function: not found error on solaris

shell script in very simple, #!/bin/sh function msgs { echo 'this' } msgs It works on linux, apple, but can not run on solaris. On solaris, when I enter "./t.sh", it gave me following error, ./t.sh: function: not found this ./t.sh: msgs: not found What's wrong with... (3 Replies)
Discussion started by: microstarwwx
3 Replies

6. Solaris

solaris 10 Interface not found:NIC

Hi Gurus Im a fresher and im working.I installed solaris 10 on my windows PC(dual boot) but im not able plumb my interface..everytime i use ifconfig command and tried different interfaces like eri0,ce0 etc but its displaying that interface not found.I know that there is some problem with... (15 Replies)
Discussion started by: madanmeer
15 Replies

7. UNIX for Dummies Questions & Answers

ksh not found in solaris

Hi , I am new to solaris world but worked in unix for a while . I have this solaris box version 8 .I am trying to run a simple unix file . Q.shl cat Q.shl #!/bin/ksh db2 get connection state When I run the file I get following error : Q.shl ksh: Q.shl: not found This is... (6 Replies)
Discussion started by: capri_drm
6 Replies

8. Shell Programming and Scripting

Commands not found.

I executed my script and it says not found. #! /bin/ksh trymonitor.sh: rm: not found. + sleep 15 trymonitor.sh: sleep: not found. trymonitor.sh: awk: not found. trymonitor.sh: wc: not found. Thanks and Regards, Kay (1 Reply)
Discussion started by: kayarsenal
1 Replies

9. UNIX for Dummies Questions & Answers

lot of commands not found!

Some of the commands like whereis, cc are not working and also the users can not create a file using cat > userfile. How to resolve these problems? (5 Replies)
Discussion started by: asif iqbal
5 Replies

10. UNIX for Dummies Questions & Answers

Solaris-ksh: directory not found

Solaris 8 using ksh: I have a directory called apps...in that directory there are some flat files and some directories. I can't access one particular subdirectory called netscape-old. I am NOT logged in as root Here is the info... user@machine>ls -l drwxr-xr-x 3 root other ... (5 Replies)
Discussion started by: dangral
5 Replies
Login or Register to Ask a Question