471,337 Members | 985 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Python and Solaris 10

I'm having a bit of a problem trying to install Python on a Solaris 10
system. I didn't have this kind of problem when trying to install it
on Solaris 8.

Has anyone else experienced this problem? I've tried adding CC=gcc
into the configure script, and have also tried running ./configure
--with-gcc with no luck. I appears that this is dead set to using c++
which isn't working.

MAILBOT:root:8:Python-2.4.2:# ./configure
checking MACHDEP... sunos5
checking EXTRAPLATDIR...
checking for --without-gcc... no
checking for --with-cxx=<compiler>... no
checking for c++... c++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... configure: error: cannot run
C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

I know this is sort of long, but here's the config log.

"config.log" 232 lines, 5017 characters
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by python configure 2.4, which was
generated by GNU Autoconf 2.59. Invocation command line was

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = MAILBOT
uname -m = sun4u
uname -r = 5.10
uname -s = SunOS
uname -v = Generic_118822-20

/usr/bin/uname -p = sparc
/bin/uname -X = System = SunOS
Node = MAILBOT
Release = 5.10
KernelID = Generic_118822-20
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 1

/bin/arch = sun4
/usr/bin/arch -k = sun4u
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /bin
PATH: /usr/bin
PATH: /sbin
PATH: /opt/FSFgroff/bin
PATH: /usr/sbin
PATH: /etc
PATH: /usr/ucb
PATH: /usr/openwin/bin
PATH: /usr/local/bin
PATH: /usr/lib
PATH: /usr/local/custom
PATH: /usr/ccs/bin
PATH: /usr/opt/SUNWmd/sbin
PATH: /opt/FSFgzip/bin
PATH: /usr/local/sbin
PATH: /usr/local/lib
PATH: /usr/local/include
PATH: .
## ----------- ##
## Core tests. ##
## ----------- ##

configure:1444: checking MACHDEP
configure:1578: result: sunos5
configure:1584: checking EXTRAPLATDIR
configure:1599: result:
configure:1618: checking for --without-gcc
configure:1667: result: no
configure:1673: checking for --with-cxx=<compiler>
configure:1694: result: no
configure:1713: checking for c++
configure:1729: found /usr/local/bin/c++
configure:1739: result: c++
configure:1779: checking for C++ compiler default output file name
configure:1782: c++ conftest.cc >&5
ld: warning: symbol `clog' has differing types:
(file
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/libstdc++.so
type=OBJT; file /usr/lib/libm.so type=FUNC
);
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/libstdc++.so
definition taken
configure:1785: $? = 0
configure:1831: result: a.out
configure:1836: checking whether the C++ compiler works
configure:1842: ./a.out
ld.so.1: a.out: fatal: libstdc++.so.2.10.0: open failed: No such file
or directory
../configure: line 1843: 167 Killed ./$ac_file
configure:1845: $? = 137
configure:1854: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_prog_CXX=c++

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR=''
BASECFLAGS=''
BLDLIBRARY=''
BLDSHARED=''
BUILDEXEEXT=''
CC=''
CCSHARED=''
CFLAGS=''
CFLAGSFORSHARED=''
CONFIGURE_MACOSX_DEPLOYMENT_TARGET=''
CONFIG_ARGS=''
CPP=''
CPPFLAGS=''
CXX='c++'
DEFS=''
DLINCLDIR=''
DLLLIBRARY=''
DYNLOADFILE=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXTRAMACHDEPPATH=''
EXTRAPLATDIR=''
HAVE_GETHOSTBYNAME=''
HAVE_GETHOSTBYNAME_R=''
HAVE_GETHOSTBYNAME_R_3_ARG=''
HAVE_GETHOSTBYNAME_R_5_ARG=''
HAVE_GETHOSTBYNAME_R_6_ARG=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
INSTSONAME=''
LDFLAGS=''
LDLAST=''
LDLIBRARY=''
LDLIBRARYDIR=''
LDSHARED=''
LIBC=''
LIBM=''
LIBOBJS=''
LIBRARY=''
LIBS=''
LIBTOOL_CRUFT=''
LINKCC=''
LINKFORSHARED=''
LN=''
LTLIBOBJS=''
MACHDEP='sunos5'
MACHDEP_OBJS=''
MAINOBJ='python.o'
OBJEXT=''
OPT=''
OTHER_LIBTOOL_OPT=''
PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
PACKAGE_NAME='python'
PACKAGE_STRING='python 2.4'
PACKAGE_TARNAME='python'
PACKAGE_VERSION='2.4'
PATH_SEPARATOR=':'
PYTHONFRAMEWORK=''
PYTHONFRAMEWORKDIR='no-framework'
PYTHONFRAMEWORKINSTALLDIR=''
PYTHONFRAMEWORKPREFIX=''
RANLIB=''
RUNSHARED=''
SGI_ABI=''
SHELL='/bin/bash'
SHLIBS=''
SIGNAL_OBJS=''
SO=''
SOVERSION='1.0'
SRCDIRS=''
THREADHEADERS=''
THREADOBJ=''
TRUE=''
UNICODE_OBJS=''
USE_SIGNAL_MODULE=''
USE_THREAD_MODULE=''
VERSION='2.4'
ac_ct_CC=''
ac_ct_RANLIB=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='NONE'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define _BSD_TYPES 1
#define _GNU_SOURCE 1
#define _NETBSD_SOURCE 1
#define _POSIX_C_SOURCE 200112L
#define _XOPEN_SOURCE 600
#define _XOPEN_SOURCE_EXTENDED 1
#define __BSD_VISIBLE 1

configure: exit 1

Any and all help would be greatly appreciated.

Thank you,
Layne Meier
Atlanta, GA

Jan 12 '06 #1
4 1846
I've built it with both GCC and Sun Studio compilers.

Try adding /usr/sfw/bin to your path.

Or set CC=/usr/sfw/bin/gcc

casevh

Jan 12 '06 #2
I get the same result.

Layne
On Jan 12, 2006, at 1:21 PM, ca****@comcast.net wrote:
I've built it with both GCC and Sun Studio compilers.

Try adding /usr/sfw/bin to your path.

Or set CC=/usr/sfw/bin/gcc

casevh

--
http://mail.python.org/mailman/listinfo/python-list


Jan 12 '06 #3
It looks like it is finding c++ in /usr/local/bin. Is that the compiler
you want to use?

I was assuming you want to use the Sun provided GCC located in
/usr/sfw/bin.

Try

CC=/usr/sfw/bin/gcc CXX=/usr/sfw/bin/g++ ./configure

casevh

Jan 12 '06 #4
Thank you, thank you, thank you. This works so much better.

Layne
On Jan 12, 2006, at 2:24 PM, ca****@comcast.net wrote:
It looks like it is finding c++ in /usr/local/bin. Is that the compiler
you want to use?

I was assuming you want to use the Sun provided GCC located in
/usr/sfw/bin.

Try

CC=/usr/sfw/bin/gcc CXX=/usr/sfw/bin/g++ ./configure

casevh

--
http://mail.python.org/mailman/listinfo/python-list


Jan 12 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by dave | last post: by
reply views Thread by mwidj | last post: by
2 posts views Thread by Gary Robinson | last post: by
reply views Thread by Kurt B. Kaiser | last post: by
4 posts views Thread by milan_sanremo | last post: by
4 posts views Thread by Martijn de Munnik | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.