Author Topic: Error opening terminal: xterm  (Read 3525 times)

Pyrates

  • Full Member
  • ***
  • Posts: 198
    • View Profile
    • http://www.pipsfrank.de
Error opening terminal: xterm
« on: September 30, 2004, 03:21:34 pm »
Hi there!

When I try to start nano, I get the error message from above. What should I set TERM to in order to use nano? Thanks for any pointers...

Cheers
Philipp
\" ... and the Vogon will do things to you that you wish you\'d never been born, or, if you\'re a clearer minded thinker, that the Vogon had never been born.\"

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Error opening terminal: xterm
« Reply #1 on: September 30, 2004, 04:56:58 pm »
I think you might need to install libncurses (the ncurses package). You'll then need to symlink libncurses.so.5 to libncurses.so.4


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

ironstorm

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • http://
Error opening terminal: xterm
« Reply #2 on: October 01, 2004, 01:12:04 am »
Quote
Si
Quote
I think you might need to install libncurses (the ncurses package). You'll then need to symlink libncurses.so.5 to libncurses.so.4

ncurses installs automatically, symlinking libncurses.so.5 to libncurses.so.4 still gives:

Error opening terminal: xterm.

I'd have thought that if ncurses was missing nano would have failed with a linker error, not that particular one -- maybe there is something wrong with the one of the terminal info type packages.

mike_r

  • Newbie
  • *
  • Posts: 29
    • View Profile
    • http://
Error opening terminal: xterm
« Reply #3 on: October 04, 2004, 03:41:09 pm »
You also need to install ncurses-terminfo. This fixed it for me. It should be added to someone's dependency chain somewhere ...

Mike
Mike R
Zaurus SL-C3100, OZ 3.5.4.1, 512 MB Lexar SD
Z+Python+numpy=Data crunching pocket workstation

Pyrates

  • Full Member
  • ***
  • Posts: 198
    • View Profile
    • http://www.pipsfrank.de
Error opening terminal: xterm
« Reply #4 on: October 05, 2004, 04:19:54 am »
Dang, none of those did help  Well, I mean, thanks anyway, your help is appreciated. Any other ideas?

Cheers
Philipp
\" ... and the Vogon will do things to you that you wish you\'d never been born, or, if you\'re a clearer minded thinker, that the Vogon had never been born.\"

mike_r

  • Newbie
  • *
  • Posts: 29
    • View Profile
    • http://
Error opening terminal: xterm
« Reply #5 on: October 05, 2004, 12:13:24 pm »
Hmm, I've just started playing with OZ 3.5.1, so I don't think I've installed too many things to confuse the issue. I installed ncurses, ncurses-terminfo, and nano. Possibly relevant environment variables in the opie-terminal are:

CONSOLE=/dev/console
TERM=vt100

Did you run ipkg-link add ... after you installed each of the packages? Did you run ldconfig?

Sorry if you've already done all of this, but these are some of the things I've done along the way to get everything happy.

Good luck.

Mike
Mike R
Zaurus SL-C3100, OZ 3.5.4.1, 512 MB Lexar SD
Z+Python+numpy=Data crunching pocket workstation

Pyrates

  • Full Member
  • ***
  • Posts: 198
    • View Profile
    • http://www.pipsfrank.de
Error opening terminal: xterm
« Reply #6 on: October 08, 2004, 03:46:35 am »
Hmm, yeah, you guessed well. I didn't run ldconfig, I think that's what the package installation should  do... anyway, of course I tried, but still, no go. I did run ipkg-link add though... I also changed the TERM variable, but nothing works... HELP! Thanks, mike_r.

Cheers
Philipp
\" ... and the Vogon will do things to you that you wish you\'d never been born, or, if you\'re a clearer minded thinker, that the Vogon had never been born.\"

r2satellite

  • Newbie
  • *
  • Posts: 4
    • View Profile
Error opening terminal: xterm
« Reply #7 on: October 09, 2004, 05:17:20 am »
I've made a script to install nano on a OZ 3.5.1 system here:  http://linux.cs.id.ucsb.edu/~ryanr/scripts/install_nano.sh
Will install ncurses and ncurses-terminfo if needed.  Requires a net connection for wgets.

Pyrates

  • Full Member
  • ***
  • Posts: 198
    • View Profile
    • http://www.pipsfrank.de
Error opening terminal: xterm
« Reply #8 on: October 11, 2004, 03:26:15 pm »
Thanks for that script

Didn't work out, though  Maybe you're able to help me? I've uninstalled nano, ncurses-terminfo and ncurses (and ipkg-link removed them) before, and edited the script to  fit my needs (destination ram and fdest /mnt/ram). Here's the output:
Quote
ncurses ...
ncurses_5.4-r0_arm.i 100% |*****************************|   327 KB    00:00 ETA
Connecting to openzaurus.org[66.35.250.210]:80
ipkg: ***  Couldnt kill old gunzip process *** aborting
*** Command: add
*** Locating package
Package "ncurses" not found.
SCRIPT: Fixing broken symlinks ...
ncurses-terminfo_5.4 100% |*****************************|   336 KB    00:00 ETA
Connecting to openzaurus.org[66.35.250.210]:80
ipkg: ***  Couldnt kill old gunzip process *** aborting
SCRIPT: ipkg-link of ncurses-terminfo ... this could take a while ...
*** Command: add
*** Locating package
Package "ncurses-terminfo" not found.
SCRIPT: ncurses installation failed
SCRIPT: Installing nano ...
nano_1.3.0-r0_arm.ip 100% |*****************************| 50624       00:00 ETA
Connecting to openzaurus.org[66.35.250.210]:80
Installing nano (1.3.0-r0) to ram...
Installing nano (1.3.0-r0) to ram...
nano: unsatisfied recommendation for nano-locale
Installing ncurses (5.4-r0) to ram...
Downloading http://openzaurus.org/official/unstable/3...._5.4-r0_arm.ipk
Configuring nano
Configuring ncurses
Successfully done.
*** Command: add
*** Locating package
*** Found package on /mnt/ram
*** Adding nano
*** Done.

SCRIPT: nano installed.
Nano is installed indeed, I still have the same error message though... Thanks for any help!

Cheers
Philipp
\" ... and the Vogon will do things to you that you wish you\'d never been born, or, if you\'re a clearer minded thinker, that the Vogon had never been born.\"