how to add cc path


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers how to add cc path
# 1  
Old 06-17-2002
Data how to add cc path

hello ,
when i am deploying a server software , i am getting this error:
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
can any body help , how to correct this. , i have shown my path statement.

# echo $PATH
/usr/sbin:sbin:/usr/dt/bin:/usr/openwin/bin:/bin:/usr/ucb

thanx in advance.
definate
# 2  
Old 06-17-2002
Do you have a c compiler ? I have a doubt on it

If your C-compiler's name is different from "gcc" or "cc" you can
start configure like this:

CC="cc_name" ./configure

If this is not your problem (e.g. there is gcc or cc in your path),
please provide more information about your operating system and
platform.

In order to compile software, i.e. to turn it from source code into executables, you need a compiler. Traditionally, this compiler is referred to as 'cc' (/usr/bin/cc). If a compiler is installed, '/usr/bin/cc' is a symlink (a pointer) to the 'real' compiler executable, usually gcc:

$ ls -l /usr/bin/cc
lrwxrwxrwx 1 root root (..) /usr/bin/cc -> gcc*
# 3  
Old 06-18-2002
Data

hello ,
when i type ls -l /usr/bin/cc , i get no such file or dir , but when i type in /usr/ucb/

# ls -l cc
-r-xr-xr-x 1 bin bin 3487 Sep 1 1998 cc

my system is sparc and os is solaris7.
thanx , i dont know wheather i have c compiler or not?
definate.
# 4  
Old 06-18-2002
try man cc or man gcc what is the output you get ? If there is some mannual page appear then your system do contain a c compiler. If it gives you some thing like bad command or bash:command not found. Then certainly there dont have a c ompiler on it. Give a try. Do post back the outcome.
# 5  
Old 06-18-2002
Bug

hey yeah i have a c compiler..out put is something like this...
# man cc
Reformatting page. Wait... done

SunOS/BSD Compatibility Package Commands cc(1B)

NAME
cc - C compiler

SYNOPSIS
/usr/ucb/cc [ options ]
out put truntured...
ok so how do i set the path , ...so that im able to configure ,

thanx a lot in advance
# 6  
Old 06-18-2002
Error

If you want to set the path, try this at the prompt...
export PATH=$PATH:/usr/ucb/cc
The path will be set with this...
# 7  
Old 06-18-2002
Data

hi ,
this what i get:
# export PATH=$PATH:/usr/ucb/cc
PATH=/usr/sbin:sbin:/usr/dt/bin:/usr/openwin/bin:/bin:/usr/ucb:/usr/ucb/cc: is not an identifier

can u help plz.
definate
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Add directory to path permanently

I ssh in and am trying to add a directory permanently to $PATH in centos 7 and having issues. My current $PATH is echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin but when I do a sudo nano ~/.bashrc # .bashrc # User specific aliases and functions alias... (7 Replies)
Discussion started by: cmccabe
7 Replies

2. UNIX for Dummies Questions & Answers

How to add to the search path - bin?

Hi, Now I have: /Users/okn/bin for my private shell scripts. How do I add /Users/okn/bin to my PATH? The PATH is right now: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin The .bash_profile doesn't state anything about a PATH (yet). I read about this: PATH=/bin:$PATH
 export PATH or... (1 Reply)
Discussion started by: OmarKN
1 Replies

3. Shell Programming and Scripting

Can't add directory to path correctly

Hello everyone I am a newcomer to UNIX and I have hit a snag in something that would probably take experienced people about 30 seconds. Long story short I am trying to add a directory to my PATH and it is getting added but not working. I mean, the object of adding it to the path is so I can access... (2 Replies)
Discussion started by: tastybrownies
2 Replies

4. UNIX for Dummies Questions & Answers

How to add path to root user

I am trying to add path for root. In /etc directory there is no .bash_profile file it has only profile file can any one say how to add path for root user ? is it possible to add path in profile file for root user. (18 Replies)
Discussion started by: elango963
18 Replies

5. UNIX for Dummies Questions & Answers

Add directory to a global PATH

Guys, I did a search on this but couldn't find any thing. I need to add /home/scadm/scripts to the PATH. If I do the below it works for the session I'm in. If I close it and reopen it doesnt work. PATH=$PATH\:/home/scadm/scripts ; export PATH I also want this path added to all the... (3 Replies)
Discussion started by: miltonrods
3 Replies

6. Shell Programming and Scripting

add path variable permanently

Hi, I have added the path variable as below export... (4 Replies)
Discussion started by: burton
4 Replies

7. Shell Programming and Scripting

how to add a path variable

Hi, I tried to add a path vairable export GPLOAD_CONNECT_STR= -U crm -h sdc-gp1-dev1 -d wmgpdev but it throws the below error -bash: export: `-U': not a valid identifier -bash: export: `-h': not a valid identifier -bash: export: `sdc-gp1-dev1': not a valid identifier -bash: export:... (2 Replies)
Discussion started by: burton
2 Replies

8. Solaris

add PATH as root

Sorry this maybe a dumb one, but I am root and want to add something to my PATH. Is the right place to do it here: /usr/dt/config/dtspcdenv ? If so, after I add it, how do I source it? Neither "source <file>" nor ". <file>" work. How does the above file work... is there another... (5 Replies)
Discussion started by: steve701
5 Replies

9. Solaris

How to add new paths to $PATH

Hi all, I downloaded a tarball of coreutils .... extracted only to find out that i had to build it... But when i executed ./configure, this is what i got checking build system type... i386-pc-solaris2.11 checking host system type... i386-pc-solaris2.11 configure: autobuild project... GNU... (2 Replies)
Discussion started by: wrapster
2 Replies

10. Shell Programming and Scripting

add bin to variable PATH and save changes

i wrote a script and is running. I add the path bin to variable PATH, i.e. PATH=$PATH/bin. i add this to PATH in order to run the script in any path working directory. Thats ok. The problem is as son as i close the session and start a new session, changes are lost. How can i tell the shell or... (1 Reply)
Discussion started by: alexcol
1 Replies
Login or Register to Ask a Question