Problem :
Unable to perform non-root installer with RPM installer as per documentation.
Installing without root user permissions -
https://www.microfocus.com/documentation/visual-cobol/VC40/DevHub/GUID-BC84C5EB-9B6E-4802-9068-60276006EF15.html
Installer -
visualcobol_devhub_4.0_redhat_x86_64.rpm
[user@slc01 ~]$ cd $HOME
[user@slc01 ~]$ mkdir -p $HOME/rpmdb
[user@slc01 ~]$ rpm --initdb --dbpath $HOME/rpmdb
[user@slc01~]$ rpm --root $HOME --dbpath $HOME/rpmdb --relocate /usr=$HOME \\ --nodeps -i --nodeps --prefix=$HOME/VisualCOBOL visualcobol_devhub_4.0_redhat_x86_64.rpm
rpm: cannot use --prefix with --relocate or --excludepath
[user@slc01 ~]$
Resolution :
The docs are incorrect and will be updated in the next release.
First part is correct.
cd $HOME
mkdir -p $HOME/rpmdb
rpm --initdb --dbpath $HOME/rpmdb
But there are platform specific commands to do the install.
For SuSE 11
MFCMD="-noroot" rpm --root $HOME --dbpath rpmdb -i --nodeps --prefix=$HOME/VisualCOBOL
For SuSE 12
MFCMD="-noroot" rpm --dbpath $HOME/rpmdb -i --nodeps --prefix=$HOME/VisualCOBOL
For Red Hat
MFCMD="-noroot" rpm --dbpath $HOME/rpmdb -i --nodeps --prefix=$HOME/VisualCOBOL
#MFDS
#EnterpriseDeveloper
