473,748 Members | 2,595 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_se t=
ac_cv_env_CC_va lue=
ac_cv_env_CFLAG S_set=
ac_cv_env_CFLAG S_value=
ac_cv_env_CPPFL AGS_set=
ac_cv_env_CPPFL AGS_value=
ac_cv_env_CPP_s et=
ac_cv_env_CPP_v alue=
ac_cv_env_LDFLA GS_set=
ac_cv_env_LDFLA GS_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_targe t_alias_set=
ac_cv_env_targe t_alias_value=
ac_cv_exeext=
ac_cv_prog_CXX= c++

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

AR=''
BASECFLAGS=''
BLDLIBRARY=''
BLDSHARED=''
BUILDEXEEXT=''
CC=''
CCSHARED=''
CFLAGS=''
CFLAGSFORSHARED =''
CONFIGURE_MACOS X_DEPLOYMENT_TA RGET=''
CONFIG_ARGS=''
CPP=''
CPPFLAGS=''
CXX='c++'
DEFS=''
DLINCLDIR=''
DLLLIBRARY=''
DYNLOADFILE=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXTRAMACHDEPPAT H=''
EXTRAPLATDIR=''
HAVE_GETHOSTBYN AME=''
HAVE_GETHOSTBYN AME_R=''
HAVE_GETHOSTBYN AME_R_3_ARG=''
HAVE_GETHOSTBYN AME_R_5_ARG=''
HAVE_GETHOSTBYN AME_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_O PT=''
PACKAGE_BUGREPO RT='http://www.python.org/python-bugs'
PACKAGE_NAME='p ython'
PACKAGE_STRING= 'python 2.4'
PACKAGE_TARNAME ='python'
PACKAGE_VERSION ='2.4'
PATH_SEPARATOR= ':'
PYTHONFRAMEWORK =''
PYTHONFRAMEWORK DIR='no-framework'
PYTHONFRAMEWORK INSTALLDIR=''
PYTHONFRAMEWORK PREFIX=''
RANLIB=''
RUNSHARED=''
SGI_ABI=''
SHELL='/bin/bash'
SHLIBS=''
SIGNAL_OBJS=''
SO=''
SOVERSION='1.0'
SRCDIRS=''
THREADHEADERS=' '
THREADOBJ=''
TRUE=''
UNICODE_OBJS=''
USE_SIGNAL_MODU LE=''
USE_THREAD_MODU LE=''
VERSION='2.4'
ac_ct_CC=''
ac_ct_RANLIB=''
bindir='${exec_ prefix}/bin'
build_alias=''
datadir='${pref ix}/share'
exec_prefix='NO NE'
host_alias=''
includedir='${p refix}/include'
infodir='${pref ix}/info'
libdir='${exec_ prefix}/lib'
libexecdir='${e xec_prefix}/libexec'
localstatedir=' ${prefix}/var'
mandir='${prefi x}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transfo rm_name='s,x,x, '
sbindir='${exec _prefix}/sbin'
sharedstatedir= '${prefix}/com'
sysconfdir='${p refix}/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_E XTENDED 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 1992
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2110
by: dave | last post by:
downaloded from ftp.python.org and failed to unzip the files: x Python-2.3.1/Mac/OSXResources/app/Resources/English.lproj/Documentation/ide/index.html, 9909 bytes, 20 tape blocks x Python-2.3.1/Mac/OSXResources/app/Resources/English.lproj/Documentation/ide/IDE.gif, 10249 bytes, 21 tape blocks tar: directory checksum error
0
996
by: mwidj | last post by:
I'm building python extension for some solaris specific functions. My setup.py looks like this: setup.py: from distutils.core import setup, Extension sol_ex = Extension('sun.solaris', )
2
1934
by: Gary Robinson | last post by:
I'm in the market for a server to run some python code which is optimized via psyco. Sun T2100 servers come with Solaris 10, which comes with python pre-installed. Since those servers use the 64-bit Opteron box, I would assume that the Python is a 64-bit version. (Does anyone know whether this is true/false?)
3
3717
by: skip | last post by:
I'm having no success building the curses module on Solaris 8 (yes, I know it's ancient - advancing the state-of-the-art is not yet an option) for Python 2.4. Sun provides an apparently ancient version of curses in /usr/lib, so I downloaded and installed ncurses 5.5, both using default settings and using --with-shared. When the curses module is linked against libcurses.so I get some strange error about acs32map being undefined (which...
0
1443
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 407 open ( +3) / 3393 closed (+17) / 3800 total (+20) Bugs : 888 open (+28) / 6145 closed (+14) / 7033 total (+42) RFE : 232 open ( +3) / 236 closed ( +1) / 468 total ( +4) New / Reopened Patches ______________________
4
5098
by: milan_sanremo | last post by:
Under Solaris 10 I installed tcl 8.5 and tk8.5 and they work just fine. I built both with ../configure -prefix /usr/local/python/lib I then set LD_RUN_PATH to /usr/local/python/lib and ran the ./configure for Python 2.5 with no arguments. When I run make, it states: INFO: Can't locate Tcl/Tk libs and/or headers running build_scripts
4
6480
by: Martijn de Munnik | last post by:
Hi, I want to compile python on my solaris 10 system (amd 64 bit). I did the following: ../configure --prefix=/opt/64/python make which resulted in this error:
0
1808
by: mg | last post by:
When make gets to the _ctypes section, I am getting the following in my output: building '_ctypes' extension creating build/temp.solaris-2.10-i86pc-2.5/home/ecuser/Python-2.5.1/ Modules/_ctypes creating build/temp.solaris-2.10-i86pc-2.5/home/ecuser/Python-2.5.1/ Modules/_ctypes/libffi creating build/temp.solaris-2.10-i86pc-2.5/home/ecuser/Python-2.5.1/ Modules/_ctypes/libffi/src
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8830
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9541
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9321
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9247
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8242
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.