Computing.Net > Forums > Solaris > /usr/ucb/cc: language optional software

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

/usr/ucb/cc: language optional software

Reply to Message Icon

Name: Ajay
Date: July 13, 2001 at 10:56:18 Pacific
Comment:

Hello,

Can some one help me to resolve this issue? I'm having trouble with installing TCL/TK 8.3.3 on SUN Solaris system. I downloaded from http://www.scriptics.com/, I untar and I'm trying to compiling for Sun Solaris and my error for compiling is listed below.

# uname -snrvmapiX
SunOS sunclnt8 5.8 Generic sun4u sparc SUNW,Ultra-5_10System = SunOS
Node = sunclnt8
Release = 5.8
KernelID = Generic
Machine = sun4u
BusType =
Serial =
Users =
OEM# = 0
Origin# = 1
NumCPU = 1

# make
cc -c -O -KPIC -I./../generic -I. -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DUSEGETWD=1 -DNO_STRERROR=1 -DNO_GETWD=1 -DNO_WAIT3=1 -DNO_UNAME=1 -DNO_REALPATH=1 -DNO_DIRENT_H=1 -DNO_STDLIB_H=1 -DNO_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DNO_FD_SET=1 -DTM_IN_SYS_TIME=1 -DHAVE_SYS_TIME_H=1 -DNO_FSTATFS=1 -DNO_MEMMOVE=1 -DNO_STRING_H=1 -Dmode_t=int -Dpid_t=int -Dsize_t=unsigned -Duid_t=int -Dgid_t=int -DUSE_DIRENT2_H=1 -DNO_UNION_WAIT=1 -DNO_GETTOD=1 -DGETTOD_NOT_DECLARED=1 -DHAVE_NET_ERRNO_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 -DTCL_SHLIB_EXT=\".so\" ./../generic/regcomp.c
/usr/ucb/cc: language optional software package not installed
*** Error code 1
make: Fatal error: Command failed for target `regcomp.o'

I did find command to look up the gcc and its not finding in my system, but CC is there in /usr/ucb/cc .

Regard



Sponsored Link
Ads by Google

Response Number 1
Name: Balron
Date: July 15, 2001 at 17:54:06 Pacific
Reply:

Hello
Frist of all (Sorry for my english) i live in sweden and can't spell words very well
well this problem has been Great problem for many guys i know and some of the guys on the net the thing is that nn some versions of Solaris, there is a cc executable in the user's path, but all it does is display an error message and fail
anyway try to do like this and se if it will works
env CC=gcc ../configure



0

Response Number 2
Name: Ajay
Date: July 20, 2001 at 07:08:07 Pacific
Reply:

Balron,

Thanks for your advice. I try your option, but it's still not working. Here is what I did. I'm in /tcl/tcl8.3.3/unix directory.

#env CC=gcc ../configure

and my error message:

env: No such file or directory.


0

Response Number 3
Name: Jeff
Date: August 13, 2001 at 10:01:56 Pacific
Reply:

As Balron pointed out /usr/ucb/cc is just a wrapper with an error message in the default installation.

You still need to install a compiler. Go to www.sunfreeware.com and grab the latest gcc. After that is installed be sure to add /usr/local/bin to your path before /usr/ucb.


0

Response Number 4
Name: Jarrett Jones
Date: August 27, 2001 at 09:49:59 Pacific
Reply:

Try;

CC=gcc
export CC


0

Response Number 5
Name: Hsiao-lung Chang
Date: October 4, 2001 at 10:50:35 Pacific
Reply:

Hi, Ajay.

Did anyone ever get back to you on a solution to this?

I'm running into the same problem on multiple softwares.

Thanks.

cc -c -I../src -I../gd1.3 -xO3 -xdepend -DVERSION=\"1.000331\"
-DXS_VERSION=\"1.000331\" -KPIC -I/usr/perl5/5.00503/sun4-solaris/CORE
-DPERLPATCHLEVEL=5 RRDs.c
/usr/ucb/cc: language optional software package not installed
*** Error code 1
make: Fatal error: Command failed for target `RRDs.o'


0

Related Posts

See More



Response Number 6
Name: Victor Sanz
Date: October 9, 2001 at 08:27:37 Pacific
Reply:

hello

I'm having the same problem.
/usr/ucb/cc: language optional software...

but I can't solve it by any of the ways shown above cause gcc tells me:
unrecognized option '-KPIC'

what can I do?
where can I find a version of cc or gcc that accepts that option?

thanks.


0

Response Number 7
Name: Johnny Jiang
Date: October 18, 2001 at 17:09:57 Pacific
Reply:

Hi all,

Here is the solution you may go for it!
1) Install gcc 3.0.1 from http://www.sunfreeware.com/ (using 'pkgadd' to install it)
2) Set the PATH to /usr/local/bin for 'gcc'
3) Copy gcc to cc by using 'cp gcc cc' at gcc directory
4) Change /usr/ucb/cc name to other such as 'ccback'
5) Typy 'cc' to verify if it works.

For Sun C compiler problem, you may see http://everythingsolaris.org/articles/iaug/frameset.html.

Ok, any questions please email me.

Johnny Jiang


0

Response Number 8
Name: Brian Hung
Date: December 13, 2001 at 11:36:15 Pacific
Reply:

Hello Johnny
I'm having problems to 'pkgadd' the gcc.3.0.2.tar.gz, or gunzip the file.
What options I should use when I typed 'pkgadd'.
Also, in Solaris 8 there isn't such a path /usr/local/bin.
Should I create such a path

thanks.


0

Response Number 9
Name: Ricky
Date: December 14, 2001 at 14:11:18 Pacific
Reply:

Guys:
I think the problem is: those options/arguments used for cc was incompatible to gcc, /usr/ucb/cc is merely a Berkeley wrapper function. If we link cc go gcc then it will reject most of those arguments, I'm scratching my heads tuning those options.....

Help......!!!!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Prevent message echo CPU load indication in UN...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: /usr/ucb/cc: language optional software

/usr/ucb/cc: language optional software www.computing.net/answers/solaris/usrucbcc-language-optional-software/385.html

HELP: language option software package n www.computing.net/answers/solaris/help-language-option-software-package-n/1991.html

cc isn't working!! www.computing.net/answers/solaris/cc-isnt-working/4265.html