Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

not able to install any software on my SOLARIS9 on SPARC 2

Status
Not open for further replies.

withu

ISP
May 3, 2003
60
IN
Dear All,

I am trying to install few software like MIMEDEFANG & it's different module but not able to install any one...due to the

make compiler not working ...

Any suggestion ..
I am getting the following error :-

#make
/usr/ucb/cc: language optional software package not installed
error code 1
make:fatal error:command failed for target 'Base 64.0'


I HAVE INSTALLED GCC VER 3.3.2 THEN ALSO THIS IS NOT WORKING ..pL HELP ..I AM STRUGGLING FROM 2 DAYS !!!!!

WITH Best regards,
WITH U
 
u mean to say :-
#ln -s gcc /usr/ucb/cc

?

With best regards,
WithU
 
when I used that command :

#ln -s gcc /usr/ucb/cc

It returned an error as :-
ln: cannot create /usr/ucb/cc:file exist !!

With best regards,
WITHU
 
Suggest you rename /usr/ucb/cc to /usr/ucb/cc.old before doing the link. Then make the permissions to the link the same as those of the original. HTH.
 
no success ...

After doing that above, Error messege was somewhat modified

sh: cc: not found ..

make:fatal error:command failed for target 'Base 64.0'

With regards,
WITHU
 
From an earlier thread contributed by Annihilanic (whatever happened to him?):

Use:

CC=/usr/local/bin/gcc
export CC

... before you run configure.

HTH.
 
I didn't get you ..Pl don't mind and let me know in detail.
gcc-3.3.2 is already installed on m/c

With best regards,
WITHU
 
there are many possible solutions:

1) link /usr/local/bin/gcc (or wherever your gcc resides) to /usr/ucb/cc
mv /usr/ucb/cc /usr/ucb/cc.save
ln -s /usr/local/bin/gcc /usr/ucb/cc

2) link gcc to cc in /usr/local/bin --> edit PATH!
cd /usr/local/bin
ln -s gcc cc

3) edit ./configure or makefile to search for/use gcc instead of cc

4) edit PATH in .profile .cshrc .elsewhere to find gcc

Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
Solaris System Manager; I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Dear Franz,

I did follwoing NOTE I am using bash and there my path is /usr/sbin :-

1)
#mv /usr/ucb/cc /usr/ucb/cc.save
#ln -s /usr/local/bin/gcc /usr/ucb/cc

2)
#cd /usr/local/bin
#ln -s gcc cc >>>>It gave error as this file exist so,
#mv cc cc.save1
#ln -s gcc cc

After this ,I didn't get what do u mean by the 3) point.

my .profile

#more .profile
stty istrip
PATH=/usr/bin:/usr/ucb:/etc:/usr/ccs/bin/:/usr/sbin/:.
export PATH

After Going to directory for installation
--------------------------------------------------------
# make
cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend -DVERSION=\"3.00\" -DXS_VERSION=\"3.00\" -KPIC -I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE Base64.c
cc: unrecognized option `-KPIC'
cc: language depend not recognized
cc: Base64.c: linker input file unused because linking not done
Running Mkbootstrap for MIME::Base64 ()
chmod 644 Base64.bs
rm -f blib/arch/auto/MIME/Base64/Base64.so
LD_RUN_PATH="" cc -G Base64.o -o blib/arch/auto/MIME/Base64/Base64.so
cc: Base64.o: No such file or directory
cc: no input files
*** Error code 1
make: Fatal error: Command failed for target `blib/arch/auto/MIME/Base64/Base64.so'

--------------------------------------------------------

I am really fed up .Added to this I downloaded & install the latest make for Sparc Sol9 and installed but no success till now :-((

With best regards,
WITHU
 
You don't need to do any of this confusing crap. Just make sure that "gcc" is in your PATH, and it will all "just work".
 
Dear Octorian,

I already mentioned what's the present PATH defined for me and as far as I can make out gcc is there ...

But still not able to succeed.

With best regards,
WITHU
 
hi,

now after setting the environment CC as gcc or linking to gcc

cc -v shows as gcc-3.3.2 version

but then also I am not able to compile that file ...and it returns the same eror messege what I put up earlier :-(

make
cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend -DVERSION=\"3.00\" -DXS_VERSION=\"3.00\" -KPIC -I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE Base64.c
cc: unrecognized option `-KPIC'
cc: language depend not recognized
cc: Base64.c: linker input file unused because linking not done
Running Mkbootstrap for MIME::Base64 ()
chmod 644 Base64.bs
rm -f blib/arch/auto/MIME/Base64/Base64.so
LD_RUN_PATH="" cc -G Base64.o -o blib/arch/auto/MIME/Base64/Base64.so
cc: Base64.o: No such file or directory
cc: no input files
*** Error code 1
make: Fatal error: Command failed for target `blib/arch/auto/MIME/Base64/Base64.so'
 
is it the problem with the perl version I am using to do

#perl Makefile.PL

Present version is 5.6.1 (with 44 patches installed)
 
As far as I can see, you don't have the path to gcc in your PATH. You can set it with:

export PATH=$PATH:/usr/local/bin

As octorian noted above, this should 'just work'.
 
Hi all,

Thanks for all your posting ..Now I was able to solve the problem with some sort of tweaking.
###############3
When perl is built on sun, the Configure script determines the name of the compiler and the options it wants, and records them in a module called Config.pm .
Later, when one build a module, this saved information is used to create the Makefile that will actually do the compile. Sun's "bundled" compiler wants
options like -xO3 and -KPIC, whereas gcc wants things like -O3 and -fPIC..... So, the conflict..


Thus,
after command > #perl Makefile.PL
results in Makefile and then edited the -KPIC option to resulting option as per gcc...

After 2 days of struggle at last it is over for time being no idea what next in offering..

With Best regards,
WITHU

Thanks again..
Pl reply to my SATAN problem ..
 
Withu - thanks for posting the results of your endeavours, glad you sorted it and explained what you did in the end - something that doesn't always happen. For that reason, have a star. Sorry, know nothing about SATAN (though he probably does me!). Regards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top