[Python-bugs-list] [ python-Bugs-700780 ] ncurses/curses on solaris
SourceForge.net
noreply@sourceforge.net
Tue, 25 Mar 2003 08:11:51 -0800
Bugs item #700780, was opened at 2003-03-10 11:54
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=700780&group_id=5470
Category: Build
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Iain Morrison (iainmorrison)
Assigned to: Nobody/Anonymous (nobody)
Summary: ncurses/curses on solaris
Initial Comment:
solaris 8 [sparc]
gcc 3.2.2
python 2.2.2
I am having trouble with curses support. ncurses 5.3
is installed in the standard solaris manner
** Configuration summary for NCURSES 5.3 20021012:
bin directory: /usr/local/bin
lib directory: /usr/local/lib
include directory: /usr/local/include/ncurses
man directory: /usr/local/man
terminfo directory: /usr/local/share/terminfo
** Include-directory is not in a standard location
is not picked up by ./configure.
checking for ncurses.h... no
Python builds fine but
./python ./Lib/test/test_curses.py -u curses
Traceback (most recent call last):
File "./Lib/test/test_curses.py", line 11, in ?
import curses, sys, tempfile
File
"/usr/local/src/python/Python-2.2.2/Lib/curses/__init__.py",
line 15, in ?
from _curses import *
ImportError: No module named _curses
I'm doing something wrong but I'm nor sure what. Do I
need to have ncurses overwrite the default Solaris
curses? If so will anything break?
many thanks
iain morrison
iain.morrison@mrc-cbu.cam.ac.uk
----------------------------------------------------------------------
>Comment By: Iain Morrison (iainmorrison)
Date: 2003-03-25 16:11
Message:
Logged In: YES
user_id=720523
Using
setenv CPPFLAGS -I/usr/local/include/ncurses
and running
./configure
I get
checking for ncurses.h... yes
However the Makefile is identival to that produced without CPPFLAGS
set. The curses test still fails
178 tests OK.
15 tests skipped:
test_al test_bsddb test_cd test_cl test_curses test_dl
test_email_codecs test_gdbm test_gl test_imgfile
test_linuxaudiodev test_locale test_openpty test_winreg
test_winsound
./python ./Lib/test/test_curses.py -u curses
Traceback (most recent call last):
File "./Lib/test/test_curses.py", line 11, in ?
import curses, sys, tempfile
File "/usr/local/src/python/Python-2.2.2-test/Lib/curses/__init__.py",
line 15, in ?
from _curses import *
ImportError: No module named _curses
diff configure-output ../Python-2.2.2/configure-output
39c39
< checking for ncurses.h... yes
---
> checking for ncurses.h... no
diff Makefile ../Python-2.2.2/Makefile
Anything else I can try
iain
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2003-03-15 13:44
Message:
Logged In: YES
user_id=21627
Did you expect to use ncurses, or did you mean to use curses?
What is the ncurses portion of running setup.py?
To eliminate setup.py problems, you can always edit
Modules/Setup.
----------------------------------------------------------------------
Comment By: A.M. Kuchling (akuchling)
Date: 2003-03-14 15:45
Message:
Logged In: YES
user_id=11375
Your compiler may not be looking in /usr/local/ for headers and libraries. You shouldn't install ncurses over Solaris curses; locally-installed software belongs in /usr/local/, period.
When you run the configure script, you can supply environment variables to add compiler flags; run configure --help to see a list.
I'd suggest something like 'CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure', and see if it picks up ncurses.h then.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=700780&group_id=5470