Re: [問題] 請教這個 DEB 安裝包是哪個機器
※ 引述《xrancyma (陳慧鈴)》之銘言:
: ※ 引述《jtmh ()》之銘言:
: : 從上層目錄 http://packages.debian.org/sid/i386/libc6-amd64 的介紹看來,
: : 應該是給 AMD64 機器用的,
: : i386 的在此:http://packages.debian.org/sid/i386/libc6
: 為什麼會有這麼奇怪的東西?
: 一個是 libc6-i386_2.7-18_amd64.deb
: 另一個是 libc6-amd64_2.7-18_i386.deb
: 為什麼會有這兩種東西呢?真的很納悶啊!
: 可以解釋一下其中的奧義嗎?
有關命名規則:
中文版
http://ftp.oss.tw/pub/Mirror/Linux/Debian/ch-system.zh-tw.html
英文版
http://www.debian.org/doc/manuals/reference/ch-system.en.html
請看 2.2.3 Debian 套件檔名的命名
節錄:
The Debian package filenames conform to the following convention:
foo_ver-rev_arch.deb
where, usually, foo is the package name, ver is the upstream version number,
rev is the Debian revision number, and arch is the target architecture.
-----------------------------------------------------------------------
有關 libc6-amd64 的說明:
http://packages.debian.org/etch/libc6-amd64
節錄:
GNU C Library: 64bit Shared libraries for AMD64
-----------------------------------------------------------------------
有關 libc6-i386 的說明:
http://packages.debian.org/etch/libc6-i386
節錄:
GNU C Library: 32bit shared libraries for AMD64
-----------------------------------------------------------------------
看懂命名規則與說明之後,您會發現這兩個套件都是為 AMD64 而設計的共享函式
庫,第一個 libc6-amd64 是編寫 64-bit 程式用的,第二個 libc6-i386 是編寫
32-bit 程式用的,至於為什麼會有 libc6-i386_2.7-18_amd64 與
libc6-amd64_2.7-18_i386... 很簡單,就是跨系統編譯,您可以在 AMD64 編寫
32-bit 程式,也可以在 x86 編寫 64-bit 程式。
跨系統編譯相關文章:
http://ubuntuforums.org/showthread.php?t=518979
節錄:
Installing 'lib64gcc1','libc6-amd64' and 'libc6-dev-amd64' lets me compile
programs for 64-bit.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.116.247.13
推
01/24 10:12, , 1F
01/24 10:12, 1F
討論串 (同標題文章)
Linux 近期熱門文章
21
56
PTT數位生活區 即時熱門文章