What is the location of the directory of C header files that match

前几天做的oracle data guard一直因为虚拟机的时间同步问题而每次都要重新设置时间,搞得很麻烦。今天终于把虚拟机的时间同步问题解决了。不过遇到不小的麻烦!

虚拟机的时间问题最好的解决方法就是通过安装虚拟机工具

    1、启动并进入Linux系统。

    2、然后选择虚拟机菜单中的“虚拟机/安装VMware-Tools”,此时就会有把VMware-tools文件映像到CD-ROM中。

    3、把“VMwareTools-6.0.2-59824.i386.rpm,VMwareTools-6.0.2-59824.tar.gz”文件复制到自己的需要的位置中,然后选择一种安装方式。在此我选VMwareTools-6.0.2-59824.tar.gz。

    4、解压

    # tar -zxvf VmwareTools-6.0.2-59824.tar.gz

    5、进入/home/tsm/Tools/vmware-tools-distrib目录中,

    cd /home/tsm/Tools/vmware-tools-distrib

    6、输入 ./vmware-install.pl进行安装,一路默认就遇到这个问题了

What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]The directory

    7、没有办法到网上找了一大资料,然后按照[root@localhost ~]#yum install kernel-devel对kernel进行的安装,没有想到最后安装的版本和当前的版本小号不一致

当前运行的为2.6.18-238.el5,而更新安装的为 2.6.18-274.12.1.e15-i686错误变成了kernel headers (version 2.6.18-238.el5xen) does not match

  8、最后没有办法只能重新安装一个和当前运行版本相同的kernel,大家可以上这个网站http://www.kernel.org/pub/linux/kernel/v2.6/找到和自己相同版本号(uname -r)的kernel下载安装

  9、下载后[root@localhost ~]#tar zxvf linux-2.6.18.tar.gz -C /usr/src 将解压的文件存放到指定的位置

   10、进入/usr/src目录下,用[root@localhost ~]mv linux-2.6.18 linux将解压好的文件夹名“linux-2.6.18”改变成“linux”

   11、 进入/usr/src/linux目录下。分别运行: 
make mrproper
make oldconfig
make
执行第二个命令时碰到提示一路回车就行,第三个命令如果要完全执行完的话,可能会需要几个小时,最好让它编译完毕之后,再装虚拟机工具。如果在make刚开始执行时,即使生成了version.h和utsrelease.h,若按Ctrl+C强行退出编译。在安装完VM-ware Tools后,很可能导致系统无法正常启动

  12、编译完毕后,进入/usr/src/linux/include/linux,用[root@localhost ~]#vi utsrelease.h (按i是插入,修改完后按Esc,然后按Shift+:,输入wq!按回车,修改完毕可以用#more utsrelease.h查看是否修改成功)将里面的版本号改成2.6.18-238.el5
同上再修改version.h,在原来的基础上增加一行#define UTS_RELEASE "2.6.18-238.el5",保存退出。

   13、重启reboot后就可以成功安装VMware-Tools

AI Overview Implementing selective checkout with checkboxes on a cart page typically involves allowing users to select specific items in their cart for purchase, rather than requiring them to purchase all items. This functionality is not a standard feature in most e-commerce platforms and usually requires custom development or the use of specialized plugins/apps. General Approach: Modify the Cart Template: Add a checkbox next to each item in the cart. Ensure the checkbox is linked to the specific product or line item. Handle User Selections: Use JavaScript to detect changes in checkbox states (checked/unchecked). When a checkbox is selected or deselected, update the cart's subtotal and potentially the items that will be included in the checkout process. Adjust the Checkout Process: When the user proceeds to checkout, ensure that only the items corresponding to the selected checkboxes are passed to the order. This may involve modifying the platform's core checkout logic or using hooks/filters provided by the platform. Platform-Specific Considerations: WooCommerce (WordPress): Requires custom code in functions.php or a custom plugin to add checkboxes, manage selections, and modify the checkout process. You might use AJAX to update the cart dynamically as selections are made. Shopify: Involves modifying theme files (e.g., cart-template.liquid, theme.js) to add checkboxes and JavaScript to handle the logic. This often requires familiarity with Liquid (Shopify's templating language) and JavaScript. Other Platforms: The specific implementation will vary based on the platform's architecture and extensibility options. It may involve similar approaches of template modification and custom code. Important Notes: Complexity: Implementing selective checkout can be complex and may require advanced coding skills. User Experience: Carefully consider the user experience implications of selective checkout to ensure it is intuitive and does not cause confusion. Testing: Thoroughly test the functionality to ensure that selected items are correctly processed and that no loopholes exist (e.g., refreshing the page causing issues with selected items). I want to achieve this selective checkbox function in my cart page. Im using woocommerce and woodmart theme. Please advice on what to do
最新发布
07-30
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值