'unable to execute cc: No such file or directory' with distutilson Solaris

T

Tim Edwards

Hi,

I'm trying to compile http://sourceforge.net/projects/astlib/ 0.17.1 on
a Solaris 10 SPARC system. This python module uses distutils.ccompiler.
The problem seems to be that although I have gcc installed in
/usr/sfw/bin/gcc it keeps trying to execute the command 'cc', which
doesn't work:

cc -c actread.c -o actread.o
unable to execute cc: No such file or directory
error: command 'cc' failed with exit status 1


I've tried modifying the setup.py file to specify "cc.compiler =
'/usr/sfw/bin/gcc'" and setting the $CC envrionment var.
But I get the same error everytime. Can someone suggest how to change
where distutils is looking for the compiler?

Thanks

Tim Edwards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top