
Hello all,
I have some problem for installing mailman under Solaris 9.
At first I tried to install python from the source, unsuccessfully because a problem of "libstdc++.so.5" which is not compatible.
After, I installed the Solaris package:
root@vanuatu # pkginfo | grep python application SMCpython python
Python 2.2.2 (#1, Feb 11 2003, 06:15:33)
Apache is running: root@vanuatu # /usr/apache/bin/httpd -v Server version: Apache/1.3.26 (Unix) Server built: Jun 25 2002 09:37:00
When I run:
mailman@vanuatu # ./configure --prefix=/usr/local/mailman --with-mail-gid=other --with-cgi-gid=nobody
It work fine except: ... ... Traceback (most recent call last): File "conftest.py", line 2, in ? from socket import * File "/usr/local/lib/python2.2/socket.py", line 41, in ? from _socket import * ImportError: No module named _socket checking for default mail host name... Can't open conftest.out
checking for default URL host component... Can't open conftest.out
... ...
creating build/cron/mailpasswds creating build/cron/nightly_gzip creating build/cron/senddigests configuration completed at Mon Apr 14 12:40:21 MEST 2003
At next time, I launched:
mailman@vanuatu # make
for d in bin cron misc Mailman scripts src templates messages tests;
do
(cd $d; make);
done
for d in Cgi Logging Archiver Handlers Bouncers Queue MTA Gui Commands;
do
(cd $d; make);
done
gcc -c -I. -DPREFIX="\"/usr/local/mailman\""
-DPYTHON="\"/usr/local/bin/python\"" -DHELPFUL -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 ./common.c
gcc -c -I. -DPREFIX="\"/usr/local/mailman\""
-DPYTHON="\"/usr/local/bin/python\"" -DHELPFUL -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 ./vsnprintf.c
gcc -DSCRIPT="\"admindb\"" -I. -DCGI_GROUP="\"nobody\"" -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o
vsnprintf.o -o admindb ./cgi-wrapper.c
gcc -DSCRIPT="\"admin\"" -I. -DCGI_GROUP="\"nobody\"" -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o
vsnprintf.o -o admin ./cgi-wrapper.c
gcc -DSCRIPT="\"confirm\"" -I. -DCGI_GROUP="\"nobody\"" -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o
vsnprintf.o -o confirm ./cgi-wrapper.c
gcc -DSCRIPT="\"create\"" -I. -DCGI_GROUP="\"nobody\"" -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o
vsnprintf.o -o create ./cgi-wrapper.c
gcc -DSCRIPT="\"edithtml\"" -I. -DCGI_GROUP="\"nobody\"" -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o
vsnprintf.o -o edithtml ./cgi-wrapper.c
gcc -DSCRIPT="\"listinfo\"" -I. -DCGI_GROUP="\"nobody\"" -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o
vsnprintf.o -o listinfo ./cgi-wrapper.c
gcc -DSCRIPT="\"options\"" -I. -DCGI_GROUP="\"nobody\"" -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o
vsnprintf.o -o options ./cgi-wrapper.c
gcc -DSCRIPT="\"private\"" -I. -DCGI_GROUP="\"nobody\"" -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o
vsnprintf.o -o private ./cgi-wrapper.c
gcc -DSCRIPT="\"rmlist\"" -I. -DCGI_GROUP="\"nobody\"" -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o
vsnprintf.o -o rmlist ./cgi-wrapper.c
gcc -DSCRIPT="\"roster\"" -I. -DCGI_GROUP="\"nobody\"" -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o
vsnprintf.o -o roster ./cgi-wrapper.c
gcc -DSCRIPT="\"subscribe\"" -I. -DCGI_GROUP="\"nobody\"" -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o
vsnprintf.o -o subscribe ./cgi-wrapper.c
gcc -I. -DMAIL_GROUP="\"other\"" -g -O2 -g -O2 -DHAVE_STRERROR=1
-DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1 -DHAVE_SYSLOG_H=1
-DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o vsnprintf.o -o mailman
./mail-wrapper.c
And install it:
... ... Compiling /usr/local/mailman/Mailman/htmlformat.py ... Compiling /usr/local/mailman/Mailman/i18n.py ... Compiling /usr/local/mailman/Mailman/mm_cfg.py ... Compiling /usr/local/mailman/Mailman/versions.py ... Traceback (most recent call last): File "bin/update", line 47, in ? from Mailman import Utils File "/usr/local/mailman/Mailman/Utils.py", line 35, in ? import cgi File "/usr/local/lib/python2.2/cgi.py", line 39, in ? import urllib File "/usr/local/lib/python2.2/urllib.py", line 26, in ? import socket File "/usr/local/lib/python2.2/socket.py", line 41, in ? from _socket import * ImportError: No module named _socket *** Error code 1 make: Fatal error: Command failed for target `update' mailman@vanuatu #
If I check the file "/usr/local/lib/python2.2/socket.py" :
24
25 [*] not available on all platforms!
26
27 Special objects:
28
29 SocketType -- type object for socket objects
30 error -- exception raised for I/O errors
31
32 Integer constants:
33
34 AF_INET, AF_UNIX -- socket domains (first argument to socket()
call) 35 SOCK_STREAM, SOCK_DGRAM, SOCK_RAW -- socket types (second argument) 36 37 Many other constants may be defined; these may be used in calls to 38 the setsockopt() and getsockopt() methods. 39 """ 40 41 from _socket import *
My questions:
- Is there a known problem about this _socket module ?
- I don't know python, is it possible to install this module ?
- Is exist a Solaris mailman package for Solaris 9 ?
I tried to install mailman with root account AND mailman account, error messages are identical. I compiled Apache, python and mailman successfully under a Solaris 8 box (for testing).
Can you help me ?
Thanks in advance and sorry for my english ...
--
Jean Berthold EOS - energie ouest suisse Chemin de Mornex 10 , CP 570 CH-1001 Lausanne , Switzerland Tel. : +41 (0)21 341 24 58 Fax : +41 (0)21 341 20 49 E-Mail : jean.berthold@eos-gd.ch
...Unix is like a wigwam - no windows, no gates, apache inside...

Not much help, but apparently you are not the first to have a rough time installing Python on Solaris:
http://mail.python.org/pipermail/python-bugs-list/2002-November/014410.html
On Mon, 2003-04-14 at 07:17, Jean Berthold wrote:

Hello,
Now I tried to re-install Python from the sources.
"./configure" seems working correctly
but "./make" :
Modules/python.o \
libpython2.2.a -lsocket -lnsl -ldl -lpthread -lthread -lm
case $MAKEFLAGS in
*-s*) CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g -O3 -Wall
-Wstrict-prototypes' ./python -E ./setup.py -q build;;
*) CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes'
./python -E ./setup.py build;;
esac
ld.so.1: ./python: fatal: libstdc++.so.5: open failed: No such file or directory
*** Error code 137
make: Fatal error: Command failed for target `sharedmods'
if I try a find to locate this libstdc++.so.5 root@vanuatu # find / -type f -exec grep "libstdc++.so.5" /dev/null {} \; /var/sadm/install/contents:/usr/local/lib/libstdc++.so=libstdc++.so.5.0.0 s none SMCgcc /var/sadm/install/contents:/usr/local/lib/libstdc++.so.5=libstdc++.so.5.0.0 s none SMCgcc /var/sadm/install/contents:/usr/local/lib/libstdc++.so.5.0.0 f none 0755 bin bin 8402256 43236 1030525336 SMCgcc /var/sadm/install/contents:/usr/local/lib/sparcv9/libstdc++.so=libstdc++.so.5.0.0 s none SMCgcc /var/sadm/install/contents:/usr/local/lib/sparcv9/libstdc++.so.5=libstdc++.so.5.0.0 s none SMCgcc /var/sadm/install/contents:/usr/local/lib/sparcv9/libstdc++.so.5.0.0 f none 0755 bin bin 5441032 32551 1030525394 SMCgcc /usr/local/lib/libstdc++.la:dlname='libstdc++.so.5' /usr/local/lib/libstdc++.la:library_names='libstdc++.so.5.0.0 libstdc++.so.5 libstdc++.so' /usr/local/lib/sparcv9/libstdc++.la:dlname='libstdc++.so.5' /usr/local/lib/sparcv9/libstdc++.la:library_names='libstdc++.so.5.0.0 libstdc++.so.5 libstdc++.so'
My $PATH: root@vanuatu # print $PATH /usr/ccs/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/sfw/sbin:/opt/sfw/bin:/usr/openwin/bin:/usr/dt/bin:/usr/apache/bin
Is this path correct or do I need change it for including /usr/local/lib/sparcv9 ?
root@vanuatu # which gcc /usr/local/bin/gcc root@vanuatu # which python /usr/local/bin/python root@vanuatu # which apachectl /usr/apache/bin/apachectl root@vanuatu #
I tried to change my path, unsuccessfully ...
Usually, all libraries are automatically used by the system, Im right ?
Jon Carnes a écrit :
--
Jean Berthold EOS - energie ouest suisse Chemin de Mornex 10 , CP 570 CH-1001 Lausanne , Switzerland Tel. : +41 (0)21 341 24 58 Fax : +41 (0)21 341 20 49 E-Mail : jean.berthold@eos-gd.ch
...Unix is like a wigwam - no windows, no gates, apache inside...

Dear Jean,
I had the same problem. You should check your library path (LD_LIBRARY_PATH) or add /usr/local/lib to the default library path. I used the 'crle' command, which creates the /var/ld/ld.config file. # crle -u -l /usr/local/lib
Regards Hans-Peter
Am Dienstag, 15. April 2003 10.26 schrieben Sie:
--
Hans-Peter Zahno | mailto:Hans-Peter.Zahno@unifr.ch Universitaet Freiburg/Informatikdienst| Phone: +41(0)26 300 72 07 av. de l'Europe 20 | Fax: +41(0)26 300 97 04 CH-1700 Freiburg - Switzerland | http://www.unifr.ch

Hello Hans-Peter,
Many thanks !
I configured the library path with the crle command and python compile without problems.
Thanks to all list members for your help and have a nice week-end !
Jean Berthold
Hans-Peter Zahno a écrit :
--
Jean Berthold EOS - energie ouest suisse Chemin de Mornex 10 , CP 570 CH-1001 Lausanne , Switzerland Tel. : +41 (0)21 341 24 58 Fax : +41 (0)21 341 20 49 E-Mail : jean.berthold@eos-gd.ch
...Unix is like a wigwam - no windows, no gates, apache inside...

Not much help, but apparently you are not the first to have a rough time installing Python on Solaris:
http://mail.python.org/pipermail/python-bugs-list/2002-November/014410.html
On Mon, 2003-04-14 at 07:17, Jean Berthold wrote:

Hello,
Now I tried to re-install Python from the sources.
"./configure" seems working correctly
but "./make" :
Modules/python.o \
libpython2.2.a -lsocket -lnsl -ldl -lpthread -lthread -lm
case $MAKEFLAGS in
*-s*) CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g -O3 -Wall
-Wstrict-prototypes' ./python -E ./setup.py -q build;;
*) CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes'
./python -E ./setup.py build;;
esac
ld.so.1: ./python: fatal: libstdc++.so.5: open failed: No such file or directory
*** Error code 137
make: Fatal error: Command failed for target `sharedmods'
if I try a find to locate this libstdc++.so.5 root@vanuatu # find / -type f -exec grep "libstdc++.so.5" /dev/null {} \; /var/sadm/install/contents:/usr/local/lib/libstdc++.so=libstdc++.so.5.0.0 s none SMCgcc /var/sadm/install/contents:/usr/local/lib/libstdc++.so.5=libstdc++.so.5.0.0 s none SMCgcc /var/sadm/install/contents:/usr/local/lib/libstdc++.so.5.0.0 f none 0755 bin bin 8402256 43236 1030525336 SMCgcc /var/sadm/install/contents:/usr/local/lib/sparcv9/libstdc++.so=libstdc++.so.5.0.0 s none SMCgcc /var/sadm/install/contents:/usr/local/lib/sparcv9/libstdc++.so.5=libstdc++.so.5.0.0 s none SMCgcc /var/sadm/install/contents:/usr/local/lib/sparcv9/libstdc++.so.5.0.0 f none 0755 bin bin 5441032 32551 1030525394 SMCgcc /usr/local/lib/libstdc++.la:dlname='libstdc++.so.5' /usr/local/lib/libstdc++.la:library_names='libstdc++.so.5.0.0 libstdc++.so.5 libstdc++.so' /usr/local/lib/sparcv9/libstdc++.la:dlname='libstdc++.so.5' /usr/local/lib/sparcv9/libstdc++.la:library_names='libstdc++.so.5.0.0 libstdc++.so.5 libstdc++.so'
My $PATH: root@vanuatu # print $PATH /usr/ccs/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/sfw/sbin:/opt/sfw/bin:/usr/openwin/bin:/usr/dt/bin:/usr/apache/bin
Is this path correct or do I need change it for including /usr/local/lib/sparcv9 ?
root@vanuatu # which gcc /usr/local/bin/gcc root@vanuatu # which python /usr/local/bin/python root@vanuatu # which apachectl /usr/apache/bin/apachectl root@vanuatu #
I tried to change my path, unsuccessfully ...
Usually, all libraries are automatically used by the system, Im right ?
Jon Carnes a écrit :
--
Jean Berthold EOS - energie ouest suisse Chemin de Mornex 10 , CP 570 CH-1001 Lausanne , Switzerland Tel. : +41 (0)21 341 24 58 Fax : +41 (0)21 341 20 49 E-Mail : jean.berthold@eos-gd.ch
...Unix is like a wigwam - no windows, no gates, apache inside...

Dear Jean,
I had the same problem. You should check your library path (LD_LIBRARY_PATH) or add /usr/local/lib to the default library path. I used the 'crle' command, which creates the /var/ld/ld.config file. # crle -u -l /usr/local/lib
Regards Hans-Peter
Am Dienstag, 15. April 2003 10.26 schrieben Sie:
--
Hans-Peter Zahno | mailto:Hans-Peter.Zahno@unifr.ch Universitaet Freiburg/Informatikdienst| Phone: +41(0)26 300 72 07 av. de l'Europe 20 | Fax: +41(0)26 300 97 04 CH-1700 Freiburg - Switzerland | http://www.unifr.ch

Hello Hans-Peter,
Many thanks !
I configured the library path with the crle command and python compile without problems.
Thanks to all list members for your help and have a nice week-end !
Jean Berthold
Hans-Peter Zahno a écrit :
--
Jean Berthold EOS - energie ouest suisse Chemin de Mornex 10 , CP 570 CH-1001 Lausanne , Switzerland Tel. : +41 (0)21 341 24 58 Fax : +41 (0)21 341 20 49 E-Mail : jean.berthold@eos-gd.ch
...Unix is like a wigwam - no windows, no gates, apache inside...
participants (3)
-
Hans-Peter Zahno
-
jean.berthold@eos-gd.ch
-
Jon Carnes