詳解討論Fedora Core 6 GCC系統(tǒng)
這里將介紹Fedora Core 6 GCC問題的解決方法,把Linux系統(tǒng)管理技術(shù)分為3個(gè)方面分別介紹。系統(tǒng)地介紹Fedora 9的基礎(chǔ)知識(shí)及其應(yīng)用。Linux的基礎(chǔ)知識(shí),包括Fedora的安裝、磁盤分區(qū)、Linux的基礎(chǔ)操作,旨在讓讀者對(duì)Linux有個(gè)初步的認(rèn)識(shí)。Linux系統(tǒng)涉及的各種管理知識(shí)和技術(shù),如系統(tǒng)引導(dǎo)和關(guān)機(jī)、進(jìn)程控制、文件系統(tǒng)管理、系統(tǒng)備份、軟件配置以及cron和系統(tǒng)曰志的管理使用等。Fedora Core 6 GCC安裝vmware tool的問題。
安裝Fedora Core 6 GCC開發(fā)工具
# Install software called by by VMware Tools
yum install gcc
Fedora Core 6 GCC安裝內(nèi)核文件
# Install kernel header files
yum install kernel-devel
檢查Fedora Core 6 GCC內(nèi)核文件的版本是否匹配,如果不匹配需要進(jìn)行升級(jí)
# Check it matches the running kernel
uname -r # running kernel
rpm -q kernel-devel # installed kernel headers
第3不中如果不匹配,則需要升級(jí)Fedora Core 6 GCC內(nèi)核文件,升級(jí)完后,重新啟動(dòng)系統(tǒng)
# It the two versions do not match, run
yum -y upgrade kernel kernel-devel
# then reboot (but only if they did not match).
查找Fedora Core 6 GCC內(nèi)核文件的位置,安裝VMware-tool工具時(shí)候需要
# Find out where the kernel headers are
ls -d /usr/src/kernels/$(uname -r)*/include
# You may need this later.
下載虛擬機(jī)Fedora Core 6 GCC工具安裝包
即:VMware-tool安裝包,并解壓(具體就是在虛擬機(jī)工具欄上,點(diǎn)擊"VM"->"Install VMware Tools",會(huì)出現(xiàn)安裝包,選擇*.gz的文件,解壓到一個(gè)目錄下就可以)
以下是Fedora Core 6 GCC命令行中具體實(shí)現(xiàn)方法,我是在圖形界面下實(shí)現(xiàn)的
# If you already have VMwareTools-5.5.2-29772.tar.gz
on disk, SKIP THIS STEP!
# Download VMware-workstation-5.5.2-29772.tar.gz from vmware.com
# Extract the VMware Tools iso from it
tar --strip-components=3 -zxvf VMware-workstation-5.5.2-29772.tar.gz \
vmware-distrib/lib/isoimages/linux.iso
# Create a temporary mount point
mkdir /mnt/vmtools-temp
# Mount the image
mount -o loop linux.iso /mnt/vmtools-temp
# Copy VMware Tools from the mount
cp /mnt/vmtools-temp/VMwareTools-5.5.2-29772.tar.gz /tmp/
# Unmount the image and tidy up
umount /mnt/vmtools-temp
rmdir /mnt/vmtools-temp
rm linux.iso
# Unpack VMware Tools to a temporary directory
cd /tmp/
tar zxvf VMwareTools-5.5.2-29772.tar.gz
進(jìn)入Fedora Core 6 GCC解壓目標(biāo)目錄,
執(zhí)行以下代碼,一路回車按下來 cd /tmp/vmware-tools-distrib/
./vmware-install.pl
直到該步驟,拷貝粘貼第5步的路徑,然后一直按回車,直到選擇屏幕分辨率。
What is the location of the directory of C header files that match your running
kernel? [/usr/src/kernels/2.6.18-1.2849.fc6-i686/include]
我安照網(wǎng)上的安裝步驟,做到這步后就安裝上下去了。提示以下錯(cuò)誤:
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] /usr/src/kernels/2.6.20-1.2952.fc6-i686/include
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.20-1.2952.fc6). Even if the module were to
compile successfully, it would not load into the running kernel.
以上介紹Fedora Core 6 GCC安裝。
【編輯推薦】