Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ncurses/curses on solaris #38134

Closed
iainmorrison mannequin opened this issue Mar 10, 2003 · 6 comments
Closed

ncurses/curses on solaris #38134

iainmorrison mannequin opened this issue Mar 10, 2003 · 6 comments
Assignees
Labels
build The build process and cross-build

Comments

@iainmorrison
Copy link
Mannequin

iainmorrison mannequin commented Mar 10, 2003

BPO 700780
Nosy @loewis, @akuchling

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/akuchling'
closed_at = <Date 2003-10-23.17:53:03.000>
created_at = <Date 2003-03-10.11:54:04.000>
labels = ['build', 'invalid']
title = 'ncurses/curses on solaris'
updated_at = <Date 2003-10-23.17:53:03.000>
user = 'https://bugs.python.org/iainmorrison'

bugs.python.org fields:

activity = <Date 2003-10-23.17:53:03.000>
actor = 'akuchling'
assignee = 'akuchling'
closed = True
closed_date = None
closer = None
components = ['Build']
creation = <Date 2003-03-10.11:54:04.000>
creator = 'iainmorrison'
dependencies = []
files = []
hgrepos = []
issue_num = 700780
keywords = []
message_count = 6.0
messages = ['15054', '15055', '15056', '15057', '15058', '15059']
nosy_count = 3.0
nosy_names = ['loewis', 'akuchling', 'iainmorrison']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue700780'
versions = []

@iainmorrison
Copy link
Mannequin Author

iainmorrison mannequin commented Mar 10, 2003

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

@iainmorrison iainmorrison mannequin closed this as completed Mar 10, 2003
@iainmorrison iainmorrison mannequin added the invalid label Mar 10, 2003
@iainmorrison iainmorrison mannequin assigned akuchling Mar 10, 2003
@iainmorrison iainmorrison mannequin closed this as completed Mar 10, 2003
@iainmorrison iainmorrison mannequin added build The build process and cross-build invalid labels Mar 10, 2003
@iainmorrison iainmorrison mannequin assigned akuchling Mar 10, 2003
@iainmorrison iainmorrison mannequin added the build The build process and cross-build label Mar 10, 2003
@akuchling
Copy link
Member

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.

@loewis
Copy link
Mannequin

loewis mannequin commented Mar 15, 2003

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.

@iainmorrison
Copy link
Mannequin Author

iainmorrison mannequin commented Mar 25, 2003

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

@loewis
Copy link
Mannequin

loewis mannequin commented Mar 30, 2003

Logged In: YES
user_id=21627

What is the ncurses portion of running setup.py?

@akuchling
Copy link
Member

Logged In: YES
user_id=11375

No response to query in six months; closing the bug.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build
Projects
None yet
Development

No branches or pull requests

1 participant