lldb exits automatically on launch

Hi ALL,

I build lldb for i386 architecture on linux platform, When I launch lldb,
it exits automatically after a wait of few seconds and does not wait for any
command.

The below is the log that lldb outpts before exiting.

-----snip---
mtyagi@mtyagi-ubuntu:~/lldb/new_lldb/build/Debug+Asserts/bin$ ./lldb
Cannot read termcap database;
using dumb terminal settings.
Cannot read termcap database;
using dumb terminal settings.
Cannot read termcap database;
using dumb terminal settings.
Traceback (most recent call last):
  File "<console>", line 1, in <module>
ImportError: No module named gnu_libstdcpp
Traceback (most recent call last):
  File "<console>", line 1, in <module>
ImportError: No module named CFString
Cannot read termcap database;
using dumb terminal settings.
mtyagi@mtyagi-ubuntu:~/lldb/new_lldb/build/Debug+Asserts/bin$
-----snip---

will appreciate any help regarding this.

regards
Tyagi

Try setting your PYTHONPATH in a way that it finds the Python files in:
examples/summaries # objc.py
examples/summaries/cocoa # various Cocoa classes
examples/synthetic # gnu_libstdcpp.py, libcxx.py
source/Interpreter # embedded_interpreter.py

and the lldb.py that was built with lldb.

I don't know if the Makefile on Linux copies these files to a known location or not. On Mac OS X they all get copied to the built framework.

Regards,

  Filipe

P.S: I don't know what you have to do to get rid of the termcap errors.