2013-07-25 35 views
0

背景: 我有一個3節點cassandra(1.2.5)羣集,我試圖在其中一個節點上安裝datastax。我下面從說明:我有以下已經安裝http://www.datastax.com/docs/opscenter/install/install_deb


Java的版本= 1.6.0_24
蟒蛇-V = 2.6.6
OpenSSL的版本= 0.9.8g 2007年10月19日datastax opscenter安裝失敗,'沒有這樣的選項: - post-install'錯誤

問題: 當我運行'sudo apt-get install opscenter-free'時,安裝開始,但是出現錯誤:
update-python-modules:錯誤:沒有這樣的選項: - post-install dpkg:error processing opscenter-免費(--configure): 子流程安裝後腳本返回錯誤退出狀態2

可能的根本原因: 通過搜索錯誤我可以收集它看起來像蟒蛇問題。

我跑LS上看到蟒蛇所在,這裏的一些結果:
LS的/ usr/local/bin目錄=蟒蛇python2.6的python2.7
LS的/ usr/bin中/ =蟒蛇的python2.5

作爲如果我運行'python -V'結果是2.6.6。
我不明白如何讓我的opscenter安裝程序查看相應的版本? 或如何理解它指的是哪個python?

回答

2

這是最有可能從自由的OpsCenter封裝以下問題:

# cause any deferred python module compilation (like for telephus) to be done 
# now, before the initscript starts 
if which update-python-modules >/dev/null 2>&1; then 
    update-python-modules --post-install 
fi 

更新的Python模塊自帶的蟒蛇支持包。它看起來像二進制文件是可用的,但無論安裝過程發現的任何版本都不識別--post-install選項。

如果which update-python-modules指向腳本的較舊版本(< = 2.5)或較新版本(3.0+),則可以嘗試刪除包含該版本的任何軟件包或更新python-support軟件包。

相關問題