Hi,
I cannot get matplotlib to install on my Solaris 10 platform, and would
really appreciate some help.
I've installed the latest version of python from a Solaris 10 package:
% /usr/local/bin/python -V
Python 2.4.2
Added various modules including Numarray and numeric:
% /usr/local/bin/python
Python 2.4.2 (#1, Oct 3 2005, 01:55:05)
[GCC 3.3.2] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
import numarray
import Numeric
^D
Then downloading and unpacking the latest version, matplotlib-0.84
However, it doesn't matter which version of gcc that I use with
setenv CC gcc
where gcc can be either the version that comes with Solaris 10:
% /usr/sfw/bin/gcc -v
gcc version 3.4.3
% setenv CC /usr/sfw/bin/gcc
% /usr/local/bin/python setup.py build
GTK requires pygtk
GTKAgg requires pygtk
running build
running build_py
creating build
creating build/lib.solaris-2.10-sun4u-2.4
copying lib/pylab.py -> build/lib.solaris-2.10-sun4u-2.4
creating build/lib.solaris-2.10-sun4u-2.4/matplotlib
copying lib/matplotlib/__init__.py ->
build/lib.solaris-2.10-sun4u-2.4/matplotlib
copying lib/matplotlib/_contour.py ->
build/lib.solaris-2.10-sun4u-2.4/matplotlib
...
/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/char_traits.
h: In static member function `static wchar_t*
std::char_traits<wchar_t>::move(wchar_t*, cons
t wchar_t*, size_t)':
/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/char_traits.
h:336: error: `wmemmove' undeclared (first use this function)
/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/char_traits.
h: In static member function `static wchar_t*
std::char_traits<wchar_t>::copy(wchar_t*, cons
t wchar_t*, size_t)':
/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/char_traits.
h:340: error: `wmemcpy' undeclared (first use this function)
/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/char_traits.
h: In static member function `static wchar_t*
std::char_traits<wchar_t>::assign(wchar_t*, si
ze_t, wchar_t)':
/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/char_traits.
h:344: error: `wmemset' undeclared (first use this function)
error: command '/usr/sfw/bin/gcc' failed with exit status 1
(whole message file is the first attachtment)
or my own built version:
/usr/local/bin/gcc -v
gcc version 3.3.2
which matches the version that python itself was built with:
% setenv CC /usr/local/bin/gcc
% /usr/local/bin/python setup.py build
GTK requires pygtk
GTKAgg requires pygtk
running build
running build_py
creating build
creating build/lib.solaris-2.10-sun4u-2.4
copying lib/pylab.py -> build/lib.solaris-2.10-sun4u-2.4
creating build/lib.solaris-2.10-sun4u-2.4/matplotlib
...
/usr/include/pthread.h:305: error: parse error before `)' token
/usr/include/pthread.h:306: error: `pthread_barrierattr_t' was not
declared in
this scope
/usr/include/pthread.h:306: error: parse error before `,' token
/usr/include/pthread.h:308: error: parse error before `*' token
/usr/include/pthread.h:309: error: `pthread_barrier_t' was not declared in
this
scope
/usr/include/pthread.h:309: error: parse error before `,' token
/usr/include/pthread.h:311: error: `pthread_barrier_t' was not declared in
this
scope
/usr/include/pthread.h:311: error: parse error before `)' token
/usr/include/pthread.h:312: error: `pthread_barrier_t' was not declared in
this
scope
/usr/include/pthread.h:312: error: parse error before `)' token
error: command '/usr/local/bin/gcc' failed with exit status 1
(whole message file is the second attachtment)
Any help would really be appreciated as I need matplotlib to install.
cheers,
hardip
matplotlib1 (79.7 KB)
matplotlib2 (75.4 KB)
···
-------------------------------------------------------------------------------
Hardip S. Sanghera (hss@...240...)
Institute of Astronomy Phone (office): 44 (0)1223 766663
Madingley Road Fax: 44 (0)1223 337523
Cambridge CB3 0HA
United Kingdom