Cannot run installed GNU compiler, Solaris 10


 
Thread Tools Search this Thread
Operating Systems Solaris Cannot run installed GNU compiler, Solaris 10
# 1  
Old 08-27-2010
Cannot run installed GNU compiler, Solaris 10

Am new to Solaris OS and need to install the GNU cpp compiler. Followed the instructions from Sunfreeware for installing the gcc compiler and it looks as if it correctly installed but i cannot run it from the command window.


Code:
# cd /usr/local/bin
# ls
c++                            i386-pc-solaris2.10-c++
cpp                            i386-pc-solaris2.10-g++
g++                            i386-pc-solaris2.10-gcc
g77                            i386-pc-solaris2.10-gcc-3.4.6
gcc                            iconv
gccbug                         make
gcov

as can bee seen above the files seem to be installed in the directory /usr/local/bin. However when i check to if i can call it:

Code:
# gcc -v
gcc: nicht gefunden

so at first i thought that maybe the directory was not in the path so i added it the the profile file in the /ect/ directory.

still some how after reading most of the help i cant find a real deal breaker for what i am doing wrong!!!! i am not very familiar with th solaris OS so any help would be much appreciated.

thankyou

Moderator's Comments:
Mod Comment Use code tags please, ty.
# 2  
Old 08-27-2010
Seems it is not in your path. Do a
Code:
echo $PATH

If /usr/local/bin is missing, you might want to add it in the appropriate environment file and then source it like for example:
Code:
. ~/.profile

# 3  
Old 08-27-2010
Quote:
Originally Posted by brb
Am new to Solaris OS and need to install the GNU cpp compiler. Followed the instructions from Sunfreeware for installing the gcc compiler and it looks as if it correctly installed but i cannot run it from the command window.
Installing gcc from SunFreeware was probably unnecessary as Solaris 10 already bundles gcc.

Unless you have a stripped off installation, adding /usr/sfw/bin to your PATH is sufficient.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

GNU C Compiler

Hi Frds, I am new to unix forums. With lot of hope, i'm posting this thread. I want to understand GCC functionality(from commandline parsing to Assembly code generatio). i have relavant source code with me. But i felt little bit difficulty in understanding / reading each line of code. Is... (5 Replies)
Discussion started by: muthu_u
5 Replies

2. Linux

How to run User-mode Linux installed with synaptic package manager in Ubuntu 10.10

I have installed user-mode linux kernel in Ubuntu 10.10 with the help of Synaptic package manager. But I'm not getting how to run it. If we install it manually, we've to run it using the executable binary file. But here, I'm unable to locate any such file. Please help.... Thanking You.... ... (0 Replies)
Discussion started by: rohitadeshmukh1
0 Replies

3. UNIX for Dummies Questions & Answers

Is GNU sed installed?

Hi there, I'm new to UNIX and have the following question: At work a Solaris Unix system is used. I'm not sure if they have gnu sed installed so I tried using the command "sed -r" and got the error: "Illegal option --r" Does this mean that gnu sed is definitely not installed on the system... (8 Replies)
Discussion started by: js8765
8 Replies

4. Solaris

Unable to login using ssh,telnet onto my solaris machine with solaris 10 installed

Hi, I am unable to login into my terminal hosting Solaris 10 and get the below error message "Server refused to allocate pty ld.so.1: sh: fatal: libc.so.1: open failed: No such file or directory " Is there anyways i can get into my machine and what kind of changes are required to be... (7 Replies)
Discussion started by: sankasu
7 Replies

5. Programming

A question about Makefile run by GNU make

Hello everybody, Currently I'm learning how to build projects (C programming) with GNU make. I have a problem with one Makefile and I would appreciate if you could kindly give me a hand. Here is the environment: OS: Redhat linux 5 compiler: gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)... (2 Replies)
Discussion started by: dariyoosh
2 Replies

6. Programming

how to run D compiler

i want to use the d compiler (such as gdc-4.1, but i'll take any other one too) to compile a package that some one else made (in this case it's this one: projectL ). i don't know how to compile it though. there's two subdirectories with .d files but none of these compiles on its own. in the top... (0 Replies)
Discussion started by: prjctl
0 Replies

7. Solaris

Help needed on non GNU compiler

Hi All, I would require to retrieve the complete list of system include paths for a non gnu compiler(For a GNU compiler like gcc this can be retrieved by using a -v option). Please let me know if you are aware of any method to retrieve this for a non GNU compiler(eg: Sun Studio 11 tool... (1 Reply)
Discussion started by: Pankajakshan
1 Replies

8. Shell Programming and Scripting

How to run an application installed in another unix pc?

Do you guys have any suggestions? hpterm -e rlogin <another unix pc> ??? (1 Reply)
Discussion started by: jehrome_rando
1 Replies

9. UNIX for Dummies Questions & Answers

Just installed Solaris 8 but....

Hello again, Well i went ahead with my solaris installation tonight (on my pc) and it all appeared to work ok. Unfortunately, i am unable to use the system yet because it gives me this horrible message straight after it boots up: "The X-server can not be started on display :0..." It... (4 Replies)
Discussion started by: timresh
4 Replies
Login or Register to Ask a Question