Products Resources Support About Us

Rocket Software

Git z/OS fatal: cannot run less: EDC5129I No such file or directory

I just started to try git z/OS in our env. following some steps in git documentation website

I have successfully clone a repository, create a branch (git branch testing)

When I issue the command git log --oneline --decorate
It has this error message:
fatal: cannot run less: EDC5129I No such file or directory

less is not a standard zOS OMVS shell command, it should be in bash. the error appears that it can not find the less command.

did a echo $GIT_SHELL, output is /_PRDS/PTZ/bash/bin/bash, which is our Rocket bash installation directory.

Any expert here know what’s the problem ?

Following is output of env | sort

$ env | sort
COLUMNS=160
DS_PASSWORD=xxxxxxxxxxxxxxxxxx
DS_USERNAME=erickung@au1.ibm.com
DS_WEB_URL=https://cnwbzp1238.cn.dst.ibm.com:8443
GIT_EXEC_PATH=/_PRDS/PTZ/git/libexec/git-core
GIT_MAN_PATH=/_PRDS/PTZ/git/man
GIT_SHELL=/_PRDS/PTZ/bash/bin/bash
GIT_SSL_CAINFO=/u/uisc196/etc/cacert.pem
GIT_TEMPLATE_DIR=/_PRDS/PTZ/git/share/git-core/templates
GSDPATH=/_PRDS/LCLGSD
HOME=/u/uisc196
JAVA_HOME=/_PRDS/JAVA64/SAJV80M
LANG=C
LIBPATH=/lib:/usr/lib:.:/usr/lpp/Printsrv/lib:/usr/lib/java_runtime::/_PRDS/JAVA8/SAJV80M/bin::/_PRDS/JAVA8/SAJV80M/bin/classic::/_PRDS/JAVA8/SAJV80M:
LINES=58
LOGNAME=UISC196
LYNX_CFG=/_PRDS/LCLGSD/lib/lynx.cfg
MAIL=/usr/mail/UISC196
MANPATH=/_PRDS/PTZ/git/man:/_PRDS/PTZ/python/man:/_PRDS/PTZ/openssl/ssl/man:/_PRDS/PTZ/curl/share/man:/_PRDS/PTZ/bash/man:/_PRDS/MVSTOOLS/USS/man:/usr/lpp/Print
srv/man/%L:/usr/man/%L:
NLSPATH=/usr/lpp/gskssl/lib/nls/msg/En_US.IBM-1047/%N:/usr/lib/nls/msg/%L/%N:/usr/lpp/Printsrv/%L/%N:/usr/lib/nls/msg/%L/%N.cat:
OPENSSL_CONF=/_PRDS/PTZ/openssl/ssl/openssl.cnf
PATH=/_PRDS/PTZ/git/bin:/_PRDS/PTZ/python/bin:/_PRDS/PTZ/openssl/bin:/_PRDS/PTZ/curl/bin:/_PRDS/PTZ/bash/bin:/_PRDS/MVSTOOLS/bin:/usr/lpp/Printsrv/bin:/_PRDS/JA
VA8/SAJV80M/bin:/bin:/usr/sbin:/_PRDS/LCLGSD/bin:/_PRDS/LCLGSD/exec:/_PRDS/LCLGSD/shell:/_PRDS/LCLGSD/opensource/bin:.:/_PRDS/JAVA8/SAJV80M/:/_PRDS/JAVA8/SAJV80
M/bin/classic/::JAVA_HOME=/_PRDS/JAVA8/SAJV80M/bin:/_PRDS/RTC606/SBLZHFS/scmtools/eclipse:/_PRDS/RTC606/SBLZHFS/buildsystem/buildengine/eclipse:/_PRDS/RTC606/SB
LZHFS/buildagent:/_PRDS/WSEDO/SAKGZFS/bin:/var/ucd/ucdagent/bin:/var/ucd/ucdagent/opt/udclient:/usr/lpp/gskssl/bin:/_PRDS/JAVA64/SAJV80M/bin
PERL5LIB=/_PRDS/PTZ/git/share/perl/5.24.1
PYTHONHOME=/_PRDS/PTZ/python/bin
PYTHONPATH=/_PRDS/PTZ/python/lib/python2.7
SCM_WORK=/u/uisc196/rtc2
SHELL=/bin/sh
TERM=dumb
TMOUT=3600
TZ=EET-10EETDT,M10.1.0,M4.1.0/03
ZLANG=IBM-037
_=/bin/env
_BPXK_AUTOCVT=ON
_BPX_TERMPATH=OMVS
_C89_CLIB_PREFIX=SYS1
_C89_PLIB_PREFIX=SYS1
_C89_SLIB_PREFIX=SYS1
_C89_WORK_UNIT=SYSALLDA
_CC_CLIB_PREFIX=SYS1
_CC_PLIB_PREFIX=SYS1
_CEE_RUNOPTS=FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)
_CXX_CLIB_PREFIX=SYS1
_CXX_PLIB_PREFIX=SYS1
_TAG_REDIR_ERR=txt
_TAG_REDIR_IN=txt
_TAG_REDIR_OUT=txt
rtcid=erickung@au1.ibm.com
rtcproj=Erick EEBAW JKE Banking
rtcrep=https://igartctrain02.swg.usma.ibm.com:9443/ccm

Hi ecsk,

Please setup ‘more’ as default pager for git.

Thanks,
Alexander

I was able to get less working on z/OS under Rocket’s bash.

I uploaded an Ansible role where you can find installation instructions -

https://galaxy.ansible.com/gitaaron/ansible_role_less4zos