Skip to main content
Aug 3, 2017 3:19 AM UTC

MC: Problem starting Midnight Commander

I’ve installed mc on USS from your package, but get this error when I try to run it:

Warning: file /usr/local/mc/share/mc/extfs/extfs.ini not found
Warning: file /usr/local/mc/share/mc/extfs/sfs.ini not found

Cannot set pty terminal modes: EDC5139I Operation not permitted. (139)
read (subshell_pty…): EDC5137I Inappropriate I/O control operation. (137)

Do you have an idea about what is going wrong?

    20 replies

    Aug 4, 2017 9:05 AM UTC

    You can rename it to end in “.txt”.

    Never mind - here it is.

     export PS1=’\\s-\\v’:‘$PWD’:’>'
     #
     export CICS_HOME="/service/c520/u"
     export JAVA_HOME="/usr/lpp/java/J7.1_64/bin"
     #
     export GIT_SHELL=$HOME"/bin/bash"
     export GIT_EXEC_PATH=$HOME"/libexec/git-core"
     export GIT_TEMPLATE_DIR=$HOME"/share/git-core/templates"
     # # common the environment variables
     export PATH="/bin:“$HOME”/bin"
     export PATH=$PATH":/usr/lpp/java/J7.1_64/bin:.“
     export MANPATH=”/usr/man/%L:“$HOME”/man/%L"
     export LIBPATH="/lib:/usr/lib:“$HOME”/lib:.“
     export PERL5LIB=$HOME”/lib/perl5"
     # # ASCII support the environment variables
     export _BPXK_AUTOCVT=ON
     export _CEE_RUNOPTS=“FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)“
     export _TAG_REDIR_ERR=txt
     export _TAG_REDIR_IN=txt
     export _TAG_REDIR_OUT=txt
     #
     export BASH_PREFIX=$HOME”/bin"
     export PERL_PREFIX=$HOME”/bin"
     #
     INSTALL=$HOME"/python"
     export RELEASE_NAME=python-2017-04-12
     # # export RELEASE_TYPE=py27 # or py36 or both, to match the download
     export RELEASE_TYPE=py36
     export RELEASE_DIR=$INSTALL/$RELEASE_NAME-$RELEASE_TYPE
     # # export PYTHON_ENV=python27 # pr python36 or both, to match your desired environment
     export PYTHON_ENV=python36
     export PKGS_BASE=$RELEASE_DIR/pkgs
     #
     export PYTHON_HOME=$RELEASE_DIR/$PYTHON_ENV
     export PATH=$PATH:$PYTHON_HOME/bin
     export LIBPATH=$LIBPATH:$PYTHON_HOME/lib
     export FFI_LIB=$PYTHON_HOME/lib/ffi
     export TERMINFO=/u/g22392/share/mc
     # export TERMINFO=$PYTHON_HOME/share/terminfo
     export PKG_CONFIG_PATH=$PYTHON_HOME/lib/pkgconfig:$PYTHON_HOME/share/pkgconfig
    Aug 4, 2017 9:10 AM UTC

    Never mind - here it is.

     export PS1=’\\s-\\v’:‘$PWD’:’>'
     #
     export CICS_HOME="/service/c520/u"
     export JAVA_HOME="/usr/lpp/java/J7.1_64/bin"
     #
     export GIT_SHELL=$HOME"/bin/bash"
     export GIT_EXEC_PATH=$HOME"/libexec/git-core"
     export GIT_TEMPLATE_DIR=$HOME"/share/git-core/templates"
     # # common the environment variables
     export PATH="/bin:“$HOME”/bin"
     export PATH=$PATH":/usr/lpp/java/J7.1_64/bin:.“
     export MANPATH=”/usr/man/%L:“$HOME”/man/%L"
     export LIBPATH="/lib:/usr/lib:“$HOME”/lib:.“
     export PERL5LIB=$HOME”/lib/perl5"
     # # ASCII support the environment variables
     export _BPXK_AUTOCVT=ON
     export _CEE_RUNOPTS=“FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)“
     export _TAG_REDIR_ERR=txt
     export _TAG_REDIR_IN=txt
     export _TAG_REDIR_OUT=txt
     #
     export BASH_PREFIX=$HOME”/bin"
     export PERL_PREFIX=$HOME”/bin"
     #
     INSTALL=$HOME"/python"
     export RELEASE_NAME=python-2017-04-12
     # # export RELEASE_TYPE=py27 # or py36 or both, to match the download
     export RELEASE_TYPE=py36
     export RELEASE_DIR=$INSTALL/$RELEASE_NAME-$RELEASE_TYPE
     # # export PYTHON_ENV=python27 # pr python36 or both, to match your desired environment
     export PYTHON_ENV=python36
     export PKGS_BASE=$RELEASE_DIR/pkgs
     #
     export PYTHON_HOME=$RELEASE_DIR/$PYTHON_ENV
     export PATH=$PATH:$PYTHON_HOME/bin
     export LIBPATH=$LIBPATH:$PYTHON_HOME/lib
     export FFI_LIB=$PYTHON_HOME/lib/ffi
     export TERMINFO=/u/g22392/share/mc
     # export TERMINFO=$PYTHON_HOME/share/terminfo
     export PKG_CONFIG_PATH=$PYTHON_HOME/lib/pkgconfig:$PYTHON_HOME/share/pkgconfig

    But it runs fine on USS. It’s only MC that doesn’t work.
    The codepage is changed when I save it in USS via Topaz Workbench.

    Aug 8, 2017 8:07 AM UTC

    Never mind - here it is.

     export PS1=’\\s-\\v’:‘$PWD’:’>'
     #
     export CICS_HOME="/service/c520/u"
     export JAVA_HOME="/usr/lpp/java/J7.1_64/bin"
     #
     export GIT_SHELL=$HOME"/bin/bash"
     export GIT_EXEC_PATH=$HOME"/libexec/git-core"
     export GIT_TEMPLATE_DIR=$HOME"/share/git-core/templates"
     # # common the environment variables
     export PATH="/bin:“$HOME”/bin"
     export PATH=$PATH":/usr/lpp/java/J7.1_64/bin:.“
     export MANPATH=”/usr/man/%L:“$HOME”/man/%L"
     export LIBPATH="/lib:/usr/lib:“$HOME”/lib:.“
     export PERL5LIB=$HOME”/lib/perl5"
     # # ASCII support the environment variables
     export _BPXK_AUTOCVT=ON
     export _CEE_RUNOPTS=“FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)“
     export _TAG_REDIR_ERR=txt
     export _TAG_REDIR_IN=txt
     export _TAG_REDIR_OUT=txt
     #
     export BASH_PREFIX=$HOME”/bin"
     export PERL_PREFIX=$HOME”/bin"
     #
     INSTALL=$HOME"/python"
     export RELEASE_NAME=python-2017-04-12
     # # export RELEASE_TYPE=py27 # or py36 or both, to match the download
     export RELEASE_TYPE=py36
     export RELEASE_DIR=$INSTALL/$RELEASE_NAME-$RELEASE_TYPE
     # # export PYTHON_ENV=python27 # pr python36 or both, to match your desired environment
     export PYTHON_ENV=python36
     export PKGS_BASE=$RELEASE_DIR/pkgs
     #
     export PYTHON_HOME=$RELEASE_DIR/$PYTHON_ENV
     export PATH=$PATH:$PYTHON_HOME/bin
     export LIBPATH=$LIBPATH:$PYTHON_HOME/lib
     export FFI_LIB=$PYTHON_HOME/lib/ffi
     export TERMINFO=/u/g22392/share/mc
     # export TERMINFO=$PYTHON_HOME/share/terminfo
     export PKG_CONFIG_PATH=$PYTHON_HOME/lib/pkgconfig:$PYTHON_HOME/share/pkgconfig

    Not sure I explained my self that well.
    I still can’t use Midnight Commander, still get the same error.
    My .bashrc works for other stuff.

    Aug 8, 2017 8:12 AM UTC

    I’ve installed mc on USS from your package, but get this error when I try to run it:

    Warning: file /usr/local/mc/share/mc/extfs/extfs.ini not found
    Warning: file /usr/local/mc/share/mc/extfs/sfs.ini not found

    Cannot set pty terminal modes: EDC5139I Operation not permitted. (139)
    read (subshell_pty…): EDC5137I Inappropriate I/O control operation. (137)

    Do you have an idea about what is going wrong?

    Regarding the warnings you should set
    export MC_DATADIR=/path_to_your_directory/share/mc
    (path_to_your_directory means the directory where your mc is installed).

    Regarding the permissions: could you please show a listing of your /dev/ directory?

    Aug 8, 2017 8:48 AM UTC

    Regarding the warnings you should set
    export MC_DATADIR=/path_to_your_directory/share/mc
    (path_to_your_directory means the directory where your mc is installed).

    Regarding the permissions: could you please show a listing of your /dev/ directory?

    This is the content of /dev:

    bash-4.3:/dev:>dir
    total 32
    drwxrwxrwx 2 DS2TDIST SYS1 8192 Aug 3 09:24 .
    drwxr-xr-x 11 G36320 D8781 8192 Oct 10 2013 …
    c-w–w--w- 1 DS2TDIST SYS1 9, 0 Aug 2 21:10 console
    crw-rw-rw- 1 DS2TDIST SYS1 5, 0 Aug 2 21:14 fd0
    crw-rw-rw- 1 DS2TDIST SYS1 5, 1 Aug 2 21:14 fd1
    crw-rw-rw- 1 DS2TDIST SYS1 5, 2 Aug 3 09:24 fd2
    crw-rw-rw- 1 DS2TDIST SYS1 5, 4 Aug 2 21:13 fd4
    crw-rw-rw- 1 DS2TDIST SYS1 5, 5 Aug 2 21:13 fd5
    srw-rw-rw- 1 DS2TDIST SYS1 0 Aug 2 21:13 log
    crwxrwxrwx 1 DS2TDIST SYS1 4, 0 Aug 2 21:10 null
    c-w------- 1 DS2TDIST SYS1 9, 1 Aug 2 21:10 operlog
    crw-rw-rw- 1 DS2TDIST SYS1 1, 0 Aug 8 14:42 ptyp0000
    crw-rw-rw- 1 DS2TDIST SYS1 1, 1 Aug 8 14:42 ptyp0001
    crw-rw-rw- 1 DS2TDIST SYS1 4, 2 Aug 2 21:10 random
    crw-rw-rw- 1 DS2TDIST SYS1 3, 0 Aug 2 21:10 tty
    crw–w---- 1 G22392 DFSGRP 2, 0 Aug 8 14:42 ttyp0000
    crw-rw-rw- 1 DS2TDIST SYS1 2, 1 Aug 8 13:23 ttyp0001
    crw-rw-rw- 1 DS2TDIST SYS1 4, 2 Aug 2 21:10 urandom
    crw-rw-rw- 1 DS2TDIST SYS1 4, 1 Aug 2 21:10 zero
    bash-4.3:/dev:>

    After setting the MC_DATADIR I get these error messages:
    Cannot set pty terminal modes: EDC5139I Operation not permitted. (139)
    read (subshell_pty…): EDC5137I Inappropriate I/O control operation. (137)

    Aug 8, 2017 9:34 AM UTC

    I’ve installed mc on USS from your package, but get this error when I try to run it:

    Warning: file /usr/local/mc/share/mc/extfs/extfs.ini not found
    Warning: file /usr/local/mc/share/mc/extfs/sfs.ini not found

    Cannot set pty terminal modes: EDC5139I Operation not permitted. (139)
    read (subshell_pty…): EDC5137I Inappropriate I/O control operation. (137)

    Do you have an idea about what is going wrong?

    was targeted against:

    Warning: file /usr/local/mc/share/mc/extfs/extfs.ini not found
    Warning: file /usr/local/mc/share/mc/extfs/sfs.ini not found

    Aug 8, 2017 9:41 AM UTC

    This is the content of /dev:

    bash-4.3:/dev:>dir
    total 32
    drwxrwxrwx 2 DS2TDIST SYS1 8192 Aug 3 09:24 .
    drwxr-xr-x 11 G36320 D8781 8192 Oct 10 2013 …
    c-w–w--w- 1 DS2TDIST SYS1 9, 0 Aug 2 21:10 console
    crw-rw-rw- 1 DS2TDIST SYS1 5, 0 Aug 2 21:14 fd0
    crw-rw-rw- 1 DS2TDIST SYS1 5, 1 Aug 2 21:14 fd1
    crw-rw-rw- 1 DS2TDIST SYS1 5, 2 Aug 3 09:24 fd2
    crw-rw-rw- 1 DS2TDIST SYS1 5, 4 Aug 2 21:13 fd4
    crw-rw-rw- 1 DS2TDIST SYS1 5, 5 Aug 2 21:13 fd5
    srw-rw-rw- 1 DS2TDIST SYS1 0 Aug 2 21:13 log
    crwxrwxrwx 1 DS2TDIST SYS1 4, 0 Aug 2 21:10 null
    c-w------- 1 DS2TDIST SYS1 9, 1 Aug 2 21:10 operlog
    crw-rw-rw- 1 DS2TDIST SYS1 1, 0 Aug 8 14:42 ptyp0000
    crw-rw-rw- 1 DS2TDIST SYS1 1, 1 Aug 8 14:42 ptyp0001
    crw-rw-rw- 1 DS2TDIST SYS1 4, 2 Aug 2 21:10 random
    crw-rw-rw- 1 DS2TDIST SYS1 3, 0 Aug 2 21:10 tty
    crw–w---- 1 G22392 DFSGRP 2, 0 Aug 8 14:42 ttyp0000
    crw-rw-rw- 1 DS2TDIST SYS1 2, 1 Aug 8 13:23 ttyp0001
    crw-rw-rw- 1 DS2TDIST SYS1 4, 2 Aug 2 21:10 urandom
    crw-rw-rw- 1 DS2TDIST SYS1 4, 1 Aug 2 21:10 zero
    bash-4.3:/dev:>

    After setting the MC_DATADIR I get these error messages:
    Cannot set pty terminal modes: EDC5139I Operation not permitted. (139)
    read (subshell_pty…): EDC5137I Inappropriate I/O control operation. (137)

    Not sure about the listing of /dev. In my installation /dev/ttyp0000 has group TTY. Don’t know if that is required.

    Could you check that your system has a group TTY and if yes, could you please assign
    chgrp TTY /dev/ttyp0000

    However, not sure if this is the cause of any evil.

    Tatiana Balaburkina
    Rocketeer
    Aug 8, 2017 10:17 AM UTC

    This is the content of /dev:

    bash-4.3:/dev:>dir
    total 32
    drwxrwxrwx 2 DS2TDIST SYS1 8192 Aug 3 09:24 .
    drwxr-xr-x 11 G36320 D8781 8192 Oct 10 2013 …
    c-w–w--w- 1 DS2TDIST SYS1 9, 0 Aug 2 21:10 console
    crw-rw-rw- 1 DS2TDIST SYS1 5, 0 Aug 2 21:14 fd0
    crw-rw-rw- 1 DS2TDIST SYS1 5, 1 Aug 2 21:14 fd1
    crw-rw-rw- 1 DS2TDIST SYS1 5, 2 Aug 3 09:24 fd2
    crw-rw-rw- 1 DS2TDIST SYS1 5, 4 Aug 2 21:13 fd4
    crw-rw-rw- 1 DS2TDIST SYS1 5, 5 Aug 2 21:13 fd5
    srw-rw-rw- 1 DS2TDIST SYS1 0 Aug 2 21:13 log
    crwxrwxrwx 1 DS2TDIST SYS1 4, 0 Aug 2 21:10 null
    c-w------- 1 DS2TDIST SYS1 9, 1 Aug 2 21:10 operlog
    crw-rw-rw- 1 DS2TDIST SYS1 1, 0 Aug 8 14:42 ptyp0000
    crw-rw-rw- 1 DS2TDIST SYS1 1, 1 Aug 8 14:42 ptyp0001
    crw-rw-rw- 1 DS2TDIST SYS1 4, 2 Aug 2 21:10 random
    crw-rw-rw- 1 DS2TDIST SYS1 3, 0 Aug 2 21:10 tty
    crw–w---- 1 G22392 DFSGRP 2, 0 Aug 8 14:42 ttyp0000
    crw-rw-rw- 1 DS2TDIST SYS1 2, 1 Aug 8 13:23 ttyp0001
    crw-rw-rw- 1 DS2TDIST SYS1 4, 2 Aug 2 21:10 urandom
    crw-rw-rw- 1 DS2TDIST SYS1 4, 1 Aug 2 21:10 zero
    bash-4.3:/dev:>

    After setting the MC_DATADIR I get these error messages:
    Cannot set pty terminal modes: EDC5139I Operation not permitted. (139)
    read (subshell_pty…): EDC5137I Inappropriate I/O control operation. (137)

    Did you use to start MC this way:

    mc -u

    Aug 8, 2017 10:29 AM UTC

    Not sure about the listing of /dev. In my installation /dev/ttyp0000 has group TTY. Don’t know if that is required.

    Could you check that your system has a group TTY and if yes, could you please assign
    chgrp TTY /dev/ttyp0000

    However, not sure if this is the cause of any evil.

    I forgot to say if your system does not have a group TTY (which of course must have an omvs segment) then this is a problem for sure.

    Aug 10, 2017 2:43 AM UTC

    Did you use to start MC this way:

    mc -u

    Thanks Tatyana,

    The mc -u did the trick. Works now.
    So these two solutions worked for me:

    export MC_DATADIR=/path_to_your_directory/share/mc
    mc -u

    Thanks a lot for your help.

    BR
    Torben