I am not certain why Henrik removed the libncurses.so.4 library, but Stata
will infact run with the libncurses.5 library on RedHat 7.3.
[cph@thrall ~]$ /usr/local/stata7/stata
___ ____ ____ ____ ____ tm
/__ / ____/ / ____/
___/ / /___/ / /___/ 7.0 Copyright 1984-2002
Statistics/Data Analysis Stata Corporation
4905 Lakeway Drive
College Station, Texas 77845 USA
800-STATA-PC http://www.stata.com
979-696-4600 [email protected]
979-696-4601 (fax)
20-user Stata for Linux (network) perpetual license:
Serial number: 1
Licensed to: Pete Huckelba
StataCorp
Notes:
1. (-m# option or -set memory-) 1.00 MB allocated to data
2. Command line editing enabled
Note: Your site can add messages to the introduction by editing the file
stata.msg in the directory where Stata is installed.
. query compilenumber
Compile number 110
. !cat /proc/version
Linux version 2.4.18-10 ([email protected]) (gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)) #1 Wed Aug 7 11:39:21 EDT 2002
. !uname -a
Linux thrall.stata.com 2.4.18-10 #1 Wed Aug 7 11:39:21 EDT 2002 i686 unknown
. !rpm -q ncurses
ncurses-5.2-26
. !ldd /usr/local/stata7/stata
libncurses.so.4 => /usr/lib/libncurses.so.4 (0x40031000)
libm.so.6 => /lib/i686/libm.so.6 (0x40072000)
libdl.so.2 => /lib/libdl.so.2 (0x40094000)
libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
What we see here is that console Stata, compilenumber 110 is looking expressly
for the libncurses version 4 of the library. If you do not have that library
installed, you will need to make a symbolic link from your library, to the
library that Stata is requesting.
[root@thrall lib]# ls -la libncurses*
-rw-r--r-- 1 root root 412242 Apr 8 09:13 libncurses.a
-rwxr-xr-x 1 root root 222310 Apr 8 09:13 libncurses++.a
lrwxrwxrwx 1 root root 15 Jun 12 01:08 libncurses.so -> libncurses.so.5
lrwxrwxrwx 1 root root 17 Jun 12 01:05 libncurses.so.4 -> libncurses.so.4.0
-rwxr-xr-x 1 root root 256184 Jan 29 2002 libncurses.so.4.0
lrwxrwxrwx 1 root root 17 Jun 12 00:50 libncurses.so.5 -> libncurses.so.5.2
-rwxr-xr-x 1 root root 290511 Apr 8 09:13 libncurses.so.5.2
If my machine did not have that library, as Henrik's apparently does not, I
could simply do something like:
# ln -s /usr/lib/libncurses.so /usr/lib/libncurses.so.4
This way our pointer to libncurses.so.4 will always point to the most current
version that is installed on the machine. To verify:
[root@thrall lib]# rm libncurses.so.4
rm: remove `libncurses.so.4'? y
[root@thrall lib]# ln -s libncurses.so libncurses.so.4
[root@thrall lib]# /usr/local/stata7/stata
___ ____ ____ ____ ____ tm
/__ / ____/ / ____/
___/ / /___/ / /___/ 7.0 Copyright 1984-2002
Statistics/Data Analysis Stata Corporation
4905 Lakeway Drive
College Station, Texas 77845 USA
800-STATA-PC http://www.stata.com
979-696-4600 [email protected]
979-696-4601 (fax)
20-user Stata for Linux (network) perpetual license:
Serial number: 1
Licensed to: Pete Huckelba
StataCorp
Notes:
1. (-m# option or -set memory-) 1.00 MB allocated to data
2. Command line editing enabled
Note: Your site can add messages to the introduction by editing the file
stata.msg in the directory where Stata is installed.
. !ls -la /usr/lib/libncurse*
-rw-r--r-- 1 root root 412242 Apr 8 09:13 /usr/lib/libncurses.a
-rwxr-xr-x 1 root root 222310 Apr 8 09:13 /usr/lib/libncurses++.a
lrwxrwxrwx 1 root root 15 Jun 12 01:08 /usr/lib/libncurses.so -> libncurses.so.5
lrwxrwxrwx 1 root root 13 Sep 24 10:49 /usr/lib/libncurses.so.4 -> libncurses.so
-rwxr-xr-x 1 root root 256184 Jan 29 2002 /usr/lib/libncurses.so.4.0
lrwxrwxrwx 1 root root 17 Jun 12 00:50 /usr/lib/libncurses.so.5 -> libncurses.so.5.2
-rwxr-xr-x 1 root root 290511 Apr 8 09:13 /usr/lib/libncurses.so.5.2
Pete
Stata Corporation
4905 Lakeway Drive
College Station, TX 77845
(979)696-4600
> Dear All,
>
> This is a message for all using Stata 7 on an updated RedHat 7.3:
> Version 5.2 of the package ncurses is not compatible with Stata 7, and
> this will disallow you to run Stata in non-GUI-mode. The remedy I found,
> was to install a package providing backwards compatibility, ie.
> ncurses4-5.0-5.i386.rpm, available from rpmfind. I think Stata should
> consider updating their executables so as to make them compatible with
> the newest versions of the ncurses library.
>
> Best,
>
> Henrik
>
> PS: The error message is shown below:
>
> [localhost]# stata
> /usr/local/stata/stata: error while loading shared libraries:
> libncurses.so.4: cannot open shared object file: No such file or directory
>
>
> --
> Henrik St�vring, M.Sc.
>
> Workplaces:
> National Centre for Registerbased Research
> Aarhus University
> T�singegade 1
> 8000 �rhus C
> Phone: (+45) 8942 6817
> Fax: (+45) 8942 6813
>
> Research Unit of General Practice
> University of Southern Denmark
> Campusvej 55
> DK-5220 Odense M
> Phone: (+45) 6550 3091
> Fax: (+45) 6591 8296
> email: [email protected]
> Homepage: http://www.isd.sdu.dk/~stovring
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/