Thanks Peter, but I guess have installed the CC compiler.
In this path is CC : /usr/ucb/ and the path of gcc is :
/usr/local/bin/
Look this documentation of CC:
The red lines are critical.
I don't have this Directory: /opt/SUNWspro,
I don't have this link: /usr/ccs/bin/ucbcc
Need I install some product for /opt/SUNWspro exist?
Thanks for you help
This is a Spanish version:
Gracias Peter, pero creo que tengo instalado el compilador CC
El archivo "CC" esta en /usr/ucb/ y el archivo "GCC" esta en
/usr/local/bin/
Mira la documentacion del archivo CC
Las lineas criticas en este archivo son:
/opt/SUNWspro, este directorio no existe
/usr/ccs/bin/ucbcc este link ucbcc no existe
Podrias decirme que se necesita para que este directorio /opt/SUNWspro
exista?
Gracias por tu ayuda y disculpa la molestia
$ man cc
Reformatting page. Please Wait... done
SunOS/BSD Compatibility Package Commands cc(1B)
NAME
cc - C compiler
SYNOPSIS
/usr/ucb/cc [ options ]
DESCRIPTION
/usr/ucb/cc is the interface to the BSD Compatibility Pack-
age C compiler. It is a script that looks for the link
/usr/ccs/bin/ucbcc to the C compiler. The /usr/ccs/bin/ucbcc
link is available only with the SPROcc package, whose
default location is /opt/SUNWspro. The /usr/ucb/cc interface
is identical to /usr/ccs/bin/ucbcc, except that BSD headers
are used and BSD libraries are linked before base
libraries. The /opt/SUNWspro/man/man1/acc.1 man page is
available only with the SPROcc package.
OPTIONS
The /usr/ucb/cc interface accepts the same options as
/usr/ccs/bin/ucbcc, with the following exceptions:
-Idir Search dir for included files whose names do not begin
with a slash (/) prior to searching the usual direc-
tories. The directories for multiple -I options are
searched in the order specified. The preprocessor
first searches for #include files in the directory
containing sourcefile, and then in directories named
with -I options (if any), then /usr/ucbinclude, and
finally, in /usr/include.
-Ldir Add dir to the list of directories searched for
libraries by /usr/ccs/bin/ucbcc. This option is passed
to /usr/ccs/bin/ld and /usr/lib. Directories specified
with this option are searched before /usr/ucblib and
/usr/lib.
-Y P, dir
Change the default directory used for finding
libraries.
EXIT STATUS
The following exit values are returned:
0 Successful compilation or link edit.
>0 An error occurred.
FILES
/usr/ccs/bin/ld
link editor
/usr/lib/libc
SunOS 5.8 Last change: 24 Feb 1998 1
SunOS/BSD Compatibility Package Commands cc(1B)
C library
/usr/ucbinclude
BSD Compatibility directory for header files
/usr/ucblib
BSD Compatibility directory for libraries
/usr/ucblib/libucb
BSD Compatibility C library
/usr/lib/libsocket
library containing socket routines
/usr/lib/libnsl
library containing network functions
/usr/lib/libelf
library containing routines to process ELF object
files
/usr/lib/libaio
library containing asynchronous I/O routines
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Availability | SUNWscpu |
|_____________________________|_____________________________|
SEE ALSO
ld(1), a.out(4), attributes(5)
NOTES
The -Y P, dir option may have unexpected results and should
not be used.
SunOS 5.8 Last change: 24 Feb 1998 2
$
-----Mensaje original-----
De: Peter Wickett [SMTP:[EMAIL PROTECTED]]
Enviado el: Thursday, January 25, 2001 12:44 PM
Para: César Garcia
Asunto: RE: I need help !! for DBI Install
Hi Cesar,
You're going to need to do two things:
1) Download the gcc compiler - you are running a Sun System so
you can
actually get a binary distribution
from sunsite.doc.ic.ac.uk I think its in
/pub/sun/freeware/sparc/5.8 (or
somthing similar) - if you don't have gzip
on your system get that too.
2) unzip the gcc package.
3) do a package add on gcc.
4) you should now have a working c compiler.
5) Download the source of perl (try ftp.perl.org)
7) now unzip the perl source.
8) read the readme for the various configure option e.g
directory where you
want to install it etc
9) with most freeware packages you do
configure
make
make test
make install
10) You should now have anew version of perl
11) You can go go back to your DBI Install.
Hope this helps.
I'm out of the office now so if you've goit any more questions I
won't be
able to answer until tomorrow.
All the best
Peter Wickett
PS - my wife is Spanish from Barcelona and we are looking to
come back to
Spain (to Barcelona) in April (I assume you are Spanish) - if
you have any
suggestions for jobs (6 years Solaris admin plus Oracle, Mysql,
Perl, and C
and Apache) - please let me know!!
> -----Original Message-----
> From: César Garcia [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 25, 2001 5:29 PM
> To: 'Peter Wickett'
> Subject: RE: I need help !! for DBI Install
>
>
> Hi Peter, thanks for you Replay, I send the configuration of
my Perl,
> and tell me what I can do for my solution.
>
> $ perl -V
> Summary of my perl5 (5.0 patchlevel 5 subversion 3)
configuration:
> Platform:
> osname=solaris, osvers=2.8, archname=sun4-solaris
> uname='sunos localhost 5.8 sun4u sparc sunw,ultra-1 '
> hint=previous, useposix=true, d_sigaction=define
> usethreads=undef useperlio=undef d_sfio=undef
> Compiler:
> cc='cc', optimize='-xO3 -xdepend', gccversion=
> cppflags=''
> ccflags =''
> stdchar='char', d_stdstdio=define, usevfork=false
> intsize=4, longsize=4, ptrsize=4, doublesize=8
> d_longlong=define, longlongsize=8, d_longdbl=define,
longdblsize=16
> alignbytes=8, usemymalloc=n, prototype=define
> Linker and Libraries:
> ld='cc', ldflags =''
> libpth=/lib /usr/lib /usr/ccs/lib
> libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
> libc=/lib/libc.so, so=so, useshrplib=true,
libperl=libperl.so
> Dynamic Linking:
> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-R
> /usr/perl5/5.00503/sun4-solaris/CORE'
> cccdlflags='-KPIC', lddlflags='-G'
>
>
> Characteristics of this binary (from libperl):
> Built under solaris
> Compiled at Dec 22 1999 00:00:57
> @INC:
> /usr/perl5/5.00503/sun4-solaris
> /usr/perl5/5.00503
> /usr/perl5/site_perl/5.005/sun4-solaris
> /usr/perl5/site_perl/5.005
> .
> $
>
> Note: My DBI folder is in "/app/dbi-1.13" not in "/usr/local"
is this a
> problem?
>
>
> -----Mensaje original-----
> De: Peter Wickett [SMTP:[EMAIL PROTECTED]]
> Enviado el: Thursday, January 25, 2001 11:46
AM
> Para: César Garcia
> Asunto: RE: I need help !! for DBI Install
>
> Hi Cesar,
>
> Sounds like you don't have a C compiler
installed. The
> sun C compiler
> doesn't come cheap - but you could install gcc
and
> compile with that.
>
> Peter Wickett
>
> > -----Original Message-----
> > From: César Garcia
[mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 25, 2001 4:02 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: RV: I need help !! for DBI Install
> >
> >
> >
> >
> > Hi, I try install DBI-1.13 but this is the
message
> error when run
> > "make":
> >
> > $ make
> > cc -c -xO3 -xdepend -DVERSION=\"1.13\"
> -DXS_VERSION=\"1.13\"
> > -KPIC -I/usr/perl5/5.00503/sun4-solaris/CORE
> -DDBI_NO_THREADS Perl.c
> > /usr/ucb/cc: language optional software
package not
> installed
> > *** Error code 1
> > make: Fatal error: Command failed for target
`Perl.o'
> >
> > $
> >
> > I Installed Oracle8i, Apache Server and Unix .
> >
> > Thanks.
> >
>
>