Search

libtermcap.so.2 no such file or directory

If you are using a new version of ubuntu, i think 9.04 or above, and you get the error(might work with other distros too)



Here is the work around. libtermacp.so.2 is no longer a part of ubuntu, its obsolete and instead of that libncurses can be used. So run the following commands on your terminal




you will see a set of libncurse.so. files for eg :

/lib/libncurses.so.5
/lib/libncurses.so.5.7 etc


If you do not see such files then you will have to install libncurses, which you can do using the synaptic package manager or




(You can use yum in case you are using redhat).

once you find the libnucrses.so.5.7 file run the following command



Then retry the operation that gave you the libtermcap error, you should not see the error any more.

6 comments:

  1. Hi Tux!

    Thanks a lot for this post! Now IRAF runs on my Ubuntu 10.04 64-bit. :)

    Best regards,
    Rich

    ReplyDelete
  2. Awesome. Much appreciated. Thanks for sharing.

    (P.S. Small typo in the locate command.)

    ReplyDelete
  3. glad it helped and thanks for the feedback :-)

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. Hi
    I am getting following errors in UBUNTU12.10 please help me..

    users@users-Inspiron-5520:~$ spice
    spice: error while loading shared libraries: libtermcap.so.2: cannot open
    shared object file: No such file or directory.
    users@usres-Inspiron-5520:~$ ngspice
    ngspice: error while loading shared libraries: libXaw.so.8: cannot open
    shared object file: No such file or directory

    ReplyDelete