vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| xweb <xweb@katamail.com> wrote: x> Hi, i'm trying to install a version 5.004 of perl on AIX machine but the x> config of perl says " your cc compiler don't seems working ".I have x> installed perl 5.002. Does your C compiler work? :-) What compilers are installed, and what do 'which cc' and 'which gcc' show? Regards, Nicholas |
| |||
| In 4072a3fa$0$199$75868355@news.frii.net, Nicholas Dronen, ndronen@io.frii.com, il 6-04-2004 14:35 ha scritto: > xweb <xweb@katamail.com> wrote: > x> Hi, i'm trying to install a version 5.004 of perl on AIX machine but the > x> config of perl says " your cc compiler don't seems working ".I have > x> installed perl 5.002. > > Does your C compiler work? :-) > > What compilers are installed, and what do 'which cc' and 'which > gcc' show? > > Regards, > > Nicholas > Thanks Nicholas i' am in serious difficulty. I' am a programmer and i don't know well this system (AIX). cc -v Reading specs from /usr/local/lib/gcc-lib/rs6000-ibm-aix4.1.4.0/2.7.2/specs gcc version 2.7.2 gcc -v Using builtin specs. gcc version 2.95.1 19990816 (release) ###ERROR From perl sh configure ....Use which C compiler? [cc] Checking for GNU cc in disguise and/or its version number... *** WHOA THERE!!! *** Your C compiler "cc" doesn't seem to be working! You'd better start hunting for one and let me know about it. perl -V Summary of my perl5 (5.0 patchlevel 2) configuration: Platform: osname=aix, osver=4.1.0.0, archname=aix uname='aix r6 1 4 000017273500 ' hint=recommended, useposix=true Compiler: cc='cc', optimize='-O', gccversion= cppflags='-qmaxmem=8192 -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -D_NO_PROTO' ccflags ='-qmaxmem=8192 -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -D_NO_PROTO' stdchar='unsigned char', d_stdstdio=define, usevfork=false voidflags=15, castflags=1, d_casti32=define, d_castneg= intsize=4, alignbytes=8, usemymalloc=n, randbits=15 Linker and Libraries: ld='ld', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib libs=-ldbm -lld -lm -lc -lbsd -lPW libc=/usr/lib/libc.a, so=o Dynamic Linking: dlsrc=dl_aix.xs, dlext=o, d_dlsymun=, ccdlflags='-bE cccdlflags=' ', lddlflags='-H512 -T512 -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -b noentry -lc -L/usr/local/lib' @INC: /usr/local/lib/perl5 /usr/loca/bin/perl-5.002/lib /usr/local/lib/perl5/aix/5.002 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/aix /usr/local/lib/perl5/site_perl . |
| |||
| xweb <xweb@katamail.com> writes: > Nicholas Dronen ha scritto: > > Does your C compiler work? :-) > cc -v > Reading specs from /usr/local/lib/gcc-lib/rs6000-ibm-aix4.1.4.0/2.7.2/specs > gcc version 2.7.2 > > gcc -v > Using builtin specs. > gcc version 2.95.1 19990816 (release) This says that you have *extremely* old gcc masquerading as 'cc', and a much more recent 'gcc'. This doesn't answer whether either of them works, but chances are that 'cc' doesn't. Try configuring perl with 'gcc' instead of 'cc', or *verify* that your compilers work, e.g. thus: echo "int main() { return 0; }" > junk.c && cc -o junk junk.c && ./junk && echo "OK" If the above does not result in an "OK", your cc does not work. Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. |
| |||
| In m31xn141dr.fsf@salmon.parasoft.com, Paul Pluzhnikov, ppluzhnikov-nsp@charter.net, il 6-04-2004 16:38 ha scritto: > echo "int main() { return 0; }" > junk.c && > cc -o junk junk.c && ./junk && echo "OK" Nothing!! with cc collect2: /usr/lib/libc.a: not an import library with gcc cpp: installation problem, cannot exec `cpp': The parameter or environment lists are too long. |
| |||
| xweb <xweb@katamail.com> wrote: x> In m31xn141dr.fsf@salmon.parasoft.com, Paul Pluzhnikov, x> ppluzhnikov-nsp@charter.net, il 6-04-2004 16:38 ha scritto: >> echo "int main() { return 0; }" > junk.c && >> cc -o junk junk.c && ./junk && echo "OK" x> Nothing!! x> with cc x> collect2: /usr/lib/libc.a: not an import library x> with gcc x> cpp: installation problem, cannot exec `cpp': The parameter or environment x> lists are too long. What you do now is read the INSTALL file in the perl source distribution. There you will find that you can use: sh Configure -Dcc=gcc to tell Configure to use a different cc than your broken old one. Regards, Nicholas |
| |||
| Nicholas Dronen <ndronen@io.frii.com> writes: > What you do now is read the INSTALL file in the perl source Didn't you read his message? His gcc doesn't work either. xweb <xweb@katamail.com> writes: > I have tried to install gcc-3.3.0.0 > Response: 0509-022 Cannot load library libintl.a[shr.o]. You need to find a working compiler. It is not clear what you mean by 'tried to install gcc-3.3.0.0', presumably a pre-compiled gcc-3.3 package you got from somewhere. That package may have other prerequisites you are missing; probably the GNU binutils. Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. |
| |||
| > It is not clear what you mean by 'tried to install gcc-3.3.0.0', > presumably a pre-compiled gcc-3.3 package you got from somewhere. > That package may have other prerequisites you are missing; probably > the GNU binutils. Now, i have a good version of gcc and it's works!( with your test "ok" i have put it in another dir and i add this path to system. Nothing!! |
| ||||
| In BC997D5B.26BB3%xweb@katamail.com, xweb, xweb@katamail.com, il 7-04-2004 9:41 ha scritto: > >> It is not clear what you mean by 'tried to install gcc-3.3.0.0', >> presumably a pre-compiled gcc-3.3 package you got from somewhere. >> That package may have other prerequisites you are missing; probably >> the GNU binutils. > > Now, i have a good version of gcc and it's works!( with your test "ok" i > have put it in another dir and i add this path to system. > Nothing!! > now gcc -v Reading specs from /home/fulcrum/usr/local/bin/../lib/gcc-lib/powerpc-ibm-aix4.3.2.0/3.3.2/spec s Configured with: ../gcc-3.3.2/configure --disable-nls Thread model: aix gcc version 3.3.2 |