2012-08-29 30 views
0
while installing the package Test-5.0-201208280707.amd64.rpm 

I have a 64 bit RHEL 6 Machine and it's architecture is i386 

# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.3 (Santiago) 
# rpm --eval '%{_arch}' 
i386 


When i try to install a package using rpm 

rpm -ihv Test-5.0-201208280707.amd64.rpm it complain me the error 

「package Test-5.0-201208280707.amd64 is intended for a amd64 architecture」 

when the same thing i try with x86_64 rhel5 architecture it work fine 

回答

0

封裝測試,5.0-201208280707.amd64旨在爲AMD64架構

RPM是預編譯包,並且安裝程序應該用於x86_64類型的體系結構而不是i386。你不能將可執行文件安裝在不同的平臺上,而不是一個平臺上,而不是一個平臺,否則結果可能是毀滅性的。

+0

如何與x86_64的macines相同的安裝程序工作 – anish

+0

這是專爲x86_64的這就是爲什麼 – perilbrain

+0

@anish: - http://www.linuxquestions.org/questions/linux-software-2/i386-vs-x86_64-a- 413527 / – perilbrain

0

您的64位機器正在32位模式下運行。

在32位模式下,您只能安裝32位rpm。

在64位模式下,您可以同時安裝32位和64位rpm。

如果您確實想要安裝64位模式的rpm,則必須使用64位安裝光盤重新安裝系統。