Article ID 695 Article Title ERROR: "Cannot open console device" error on Linux Article URL http://www.dataaccess.com/KBasePublic/KBPrint.asp?ArticleID=695 KBase Category Linux Date Created 01/18/1999 Last Edit Date 09/12/2003
Article Text
PROBLEM:
I get the error "Cannot open console device" on Linux as soon as I try to run DataFlex 3.1d.
This usually happens when trying to run DataFlex 3.1d with a newer version of Linux than it was tested with, for example, using Red Hat 5.1 or 6.0.
DataFlex 3.1d was tested on these versions of Linux:
Red Hat version 5.0, kernel 2.032
Caldera version 1.2, kernel 2.033
SOLUTION 1:
The TERMINFO environment variable needs to be set to where Linux's terminfo files are.
Do NOT point them to the directory where DataFlex's terminfo files are, but to the directory where Linux's terminfo files are.
SOLUTION 2:
The location for the terminfo files was changed from /usr/lib/terminfo (ncurses 1.9.9e) to /usr/share/terminfo (ncurses 1.9.9g).
Make the symlink /usr/lib/terminfo point to /usr/share/terminfo, by doing 'ln -s /usr/lib/terminfo /usr/share/terminfo'.
SOLUTION 3:
This problem is sometimes caused by dfsetup's failure to determine the screen size. You can solve this problem by setting the LINES and COLS environment variables.
NOTE: You can add this code to the bottom of your setup script:
//CODE:
LINES=25
COLS=80
export LINES COLS
//CODE_END
Links Related to this Article
DAW Knowledge Base article 806: RedHat LINUX & DataFlex
Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2024 Data Access Corporation. All rights reserved.
The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.