如何解析Fedora Core 6 GCC系统

发布时间:2021-11-02 10:53:46 作者:柒染
来源:亿速云 阅读:130

如何解析Fedora Core 6 GCC系统,针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。

这里将介绍Fedora Core 6 GCC问题的解决方法,把Linux系统管理技术分为3个方面分别介绍。系统地介绍Fedora 9的基础知识及其应用。Linux的基础知识,包括Fedora的安装、磁盘分区、Linux的基础操作,旨在让读者对Linux有个初步的认识。Linux系统涉及的各种管理知识和技术,如系统引导和关机、进程控制、文件系统管理、系统备份、软件配置以及cron和系统曰志的管理使用等。Fedora Core 6 GCC安装vmware tool的问题。

安装Fedora Core 6 GCC开发工具

# 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内核文件,升级完后,重新启动系统

# 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",会出现安装包,选择*.gz的文件,解压到一个目录下就可以)
以下是Fedora Core 6 GCC命令行中具体实现方法,我是在图形界面下实现的
# 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解压目标目录,

执行以下代码,一路回车按下来 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]
我安照网上的安装步骤,做到这步后就安装上下去了。提示以下错误:
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系统问题的解答就分享到这里了,希望以上内容可以对大家有一定的帮助,如果你还有很多疑惑没有解开,可以关注亿速云行业资讯频道了解更多相关知识。

推荐阅读:
  1. centos6编译及安装ZLMediaKit解析
  2. Fedora CoreOS怎么入门

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

上一篇:Windows Terminal中如何设置UI成为默认打开方式

下一篇:Redis的特点有哪些

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》