溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

如何解析Fedora Core 6 GCC系統(tǒng)

發(fā)布時間:2021-11-02 10:53:46 來源:億速云 閱讀:142 作者:柒染 欄目:系統(tǒng)運維

如何解析Fedora Core 6 GCC系統(tǒng),針對這個問題,這篇文章詳細介紹了相對應的分析和解答,希望可以幫助更多想解決這個問題的小伙伴找到更簡單易行的方法。

這里將介紹Fedora Core 6 GCC問題的解決方法,把Linux系統(tǒng)管理技術分為3個方面分別介紹。系統(tǒng)地介紹Fedora 9的基礎知識及其應用。Linux的基礎知識,包括Fedora的安裝、磁盤分區(qū)、Linux的基礎操作,旨在讓讀者對Linux有個初步的認識。Linux系統(tǒng)涉及的各種管理知識和技術,如系統(tǒng)引導和關機、進程控制、文件系統(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安裝內核文件

# Install kernel header files
yum install kernel-devel

檢查Fedora Core 6 GCC內核文件的版本是否匹配,如果不匹配需要進行升級

# Check it matches the running kernel
uname -r # running kernel
rpm -q kernel-devel # installed kernel headers

第3不中如果不匹配,則需要升級Fedora Core 6 GCC內核文件,升級完后,重新啟動系統(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內核文件的位置,安裝VMware-tool工具時候需要

# Find out where the kernel headers are
ls -d /usr/src/kernels/$(uname -r)*/include
# You may need this later.

下載虛擬機Fedora Core 6 GCC工具安裝包

即:VMware-tool安裝包,并解壓(具體就是在虛擬機工具欄上,點擊"VM"->"Install VMware Tools",會出現(xiàn)安裝包,選擇*.gz的文件,解壓到一個目錄下就可以)
以下是Fedora Core 6 GCC命令行中具體實現(xiàn)方法,我是在圖形界面下實現(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

進入Fedora Core 6 GCC解壓目標目錄,

執(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)上的安裝步驟,做到這步后就安裝上下去了。提示以下錯誤:
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系統(tǒng)問題的解答就分享到這里了,希望以上內容可以對大家有一定的幫助,如果你還有很多疑惑沒有解開,可以關注億速云行業(yè)資訊頻道了解更多相關知識。

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內容。

AI