Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

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

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.

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.

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'

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.

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

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 paththanks.

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......!!!!

![]() |
Prevent message echo
|
CPU load indication in UN...
|

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