C executables problem

Hi.

Recently I wanted to install Python on my Solaris 10 11/06 x86 box, But during installation I got an error that installation cant continue due to c compiler do not create executables.

I did install Studio 11 with, as I understood, c / c++ compilers. Thus I do not understand what should be a problem.

Unfortunately my skills of working with Unix systems are extremely low, thus would you be so nice to provide answers in step by step way for a total noob?

Thank you for your posts.

[517 byte] By [Bi0Za] at [2007-11-26 17:11:30]
# 1
Hello.Do you know which C compiler executable is executed by the pearl installation program?There is an "cc" executable that simply prints the error message "no C compiler installed". This executable is not overwritten when installing Sun Studio.Martin
Martin_Rosenaua at 2007-7-8 23:39:20 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2

Usually a problem with your LD_LIBRARY_PATH environment variable. It's better to use LD_LIBRARY_PATH_32 and LD_LIBRARY_PATH_64 instead, since merged library paths for both bit modes causes most of the build problems. You can't mix 32-bit binaries with 64-bit binaries when linking. The ld command might also not be found, or the Python configure and Makefiles are GNU-centric and need to be built with GCC or modified to work with Sun Studio. Sun Studio is not the problem usually, sometimes you end up having to install Blastwave's versions of binutils and gmake to make it work, and even then be sure you have the other environment variables set correctly. (PATH, INCLUDE_PATH, LD_LIBRARY_PATH32, LD_LIBRARY_PATH_64, CC, and CXXFLAGS)

Eg:

~/.bash_login

export \

PATH="/bin:/usr/bin:/usr/ccs/bin:/usr/sfw/bin:/opt/SUNWspro/bin" \

LD_LIBRARY_PATH_32="/lib:/usr/lib:/usr/sfw/lib:/opt/csw/lib" \

LD_LIBRARY_PATH_64="/lib/64:/usr/lib/64:/usr/sfw/lib/64:/opt/csw/lib/64" \

INCLUDE_PATH="/usr/include:/usr/sfw/include:/opt/csw/include" \

CC="/opt/SUNWspro/bin/cc"

Type which cc to see which cc it uses. It needs to be /opt/SUNWspro/bin/cc. Symlink /opt/SUNWspro/bin/cc to /usr/ccs/bin/cc using ln -s, sometimes this needs to be done depending on the order of your PATH.

All else fails, install blastwave from http://www.blastwave.org/ and change your PATH, LD_LIBRARY_PATH_32, and LD_LIBRARY_PATH_64 to prefer /opt/csw/X in front of the others. Then symlink gcc to cc in /opt/csw/gcc3/bin and add /opt/csw/gcc3/bin into the beginning of the PATH also. Use gmake and gmake install, and change the CC to point to /opt/csw/gcc3/bin/gcc.

Also, try installing the Blastwave version of Python, it's almost fully up to date with the current version. If you need a 64-bit version you must build it and the dependencies however. An example would be Apache, which needs some manual interaction to rebuild srclib/apr-util/xml/expat as a 64-bit binary/library, then if you need PHP you must build PHP, libxml2, jpeg, png, gif, tiff, etc in a self-isolated location as 64-bit so they can link.

Yes, it's a bit of information that could blow up your head, try installing Blastwave by installing pkg_get.pkg from http://blastwave.org using pkgadd -d pkg_get.pkg as root. Then type pkg-get -i python. (Yes, it's like apt-get or yum, but using SVR4 packages)

mipsdra at 2007-7-8 23:39:20 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...