I am trying to install "whois" in OpenShift on the Internet, I cannot install with yum due to permissions
\> yum install whois error: cannot open Packages database in /var/lib/rpm CRITICAL:yum.main: Error: rpmdb open failed
I do not know alternative ways to install the package, so consider the possibility of compiling the source code.
make is available.
\> make -version GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for x86_64-redhat-linux-gnu
so how can i compile the source code via ssh on openshift? Thank you very much!
Edit: I can make package, but cant install package.
Update: Adds environment variables and related data.
$PATH
[app-domain.rhcloud.com whois-5.2.7]\> echo $PATH /var/lib/openshift/{{ directory_hash }}/python//virtenv/bin:/var/lib/openshift/{{ directory_hash }}/python//bin:/opt/rh/python27/root/usr/bin:/bin:/usr/bin:/usr/sbin
install
[app-domain.rhcloud.com whois-5.2.7]\> which install /var/lib/openshift/{{ directory_hash }}/python/bin/install
Error message during make install
[app-domain.rhcloud.com whois-5.2.7]\> make install BASEDIR=./destdir/ install -d ./destdir//usr/bin/ /var/lib/openshift/{{ directory_hash }}/python//bin/install: line 10: version: unbound variable make: *** [install-whois] Error 1
Error message during make /path/to/install
[app-domain.rhcloud.com whois-5.2.7]\> make /var/lib/openshift/{{ directory_hash }}/python/bin/install BASEDIR=./destdir/ make: Nothing to be done for `/var/lib/openshift/{{ directory_hash }}/python/bin/install'.