LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   find the ncurses information in Solaris OS (https://www.linuxquestions.org/questions/solaris-opensolaris-20/find-the-ncurses-information-in-solaris-os-464848/)

msgforsunil 07-17-2006 08:47 AM

find the ncurses information in Solaris OS
 
How do I find the ncurses information (means the version number)in Solaris OS, if its installed on
a. Default path
b. Installed on non default path

jlliagre 07-17-2006 02:33 PM

Solaris comes with curses, which is SVR4 curses. ncurses was designed to provide SVR4 curses compatibility.

If your application has a dependency on ncurses custom extensions, you can install ncurses from the companion cd, package SUNWncur, current version is 5.5.

msgforsunil 07-18-2006 01:13 AM

OK. I have a machine where in somebody has installed a libncurses, then how do I go about and identify its version, if its installed on
a. Default path
b. Installed on non default path

I guess when installed on default path, it would be listed in the pkginfo command, what if if its installed on non default path?

jlliagre 07-18-2006 01:25 AM

There is no default path for ncurses, as it is non standard for Solaris.
If it cames from a package, the packager is likely to have included the version number in the pkginfo file.

If it is not, it may have the version appended to one of the shared libraries files, e.g. /opt/csw/lib/libncurses.so.5.4.

If the header files are delivered, the version is also in the ncurses.h file, e.g.:
/* These are defined only in curses.h, and are used for conditional compiles */
#define NCURSES_VERSION_MAJOR 5
#define NCURSES_VERSION_MINOR 4
#define NCURSES_VERSION_PATCH 20040208

msgforsunil 07-19-2006 01:24 AM

Thanks, its quite useful one.


All times are GMT -5. The time now is 07:30 PM.