【发布时间】:2015-05-06 15:10:22
【问题描述】:
我正在尝试在 OpenShift 上在线安装“whois”, 由于权限,我无法使用 yum 安装
\> yum install whois
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:
Error: rpmdb open failed
我不知道任何其他安装包的方法,所以考虑编译源代码。
make 可用。
\> 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
那么如何在 OpenShift 上通过 SSH 编译源代码? 非常感谢!
编辑:
我可以make 包裹但不能install 包裹。
更新: 添加环境变量和相关数据。
$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
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
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'.
【问题讨论】:
标签: compilation installation makefile openshift openshift-cartridge