PHP: 深入pack/unpack
2015-12-30 09:40
696 查看
转自:http://www.linuxinsight.com/vmware-workstation-7.1.3-runs-great-on-linux-kernel-2.6.37.html
Of course, only after you patch the installation. :) I can't remember
when was the last time Workstation run without patching, that was
really long long time ago. Maybe it's Linus' fault, he moves too fast,
who can tell... :)
Also, you won't be able to compile and run the 2.6.37 kernel with the
legacy BKL (Big Kernel Lock) disabled, Workstation still depends on
lock_kernel() and unlock_kernel() primitives. Let's hope VMware fixes
that in their next revision.
Anyway... the patch is relatively small this time, but many files had
to be patched for the modules to compile properly, so I propose a
slightly different methodology for patching.
Go to the module source directory and untar all archives:
Apply the patch:
Pack all archives once again, and get rid of the unpacked directories:
Now you can rebuild and load modules:
After that, Workstation runs fast and trouble free as usual. Have fun!
Of course, only after you patch the installation. :) I can't remember
when was the last time Workstation run without patching, that was
really long long time ago. Maybe it's Linus' fault, he moves too fast,
who can tell... :)
Also, you won't be able to compile and run the 2.6.37 kernel with the
legacy BKL (Big Kernel Lock) disabled, Workstation still depends on
lock_kernel() and unlock_kernel() primitives. Let's hope VMware fixes
that in their next revision.
Anyway... the patch is relatively small this time, but many files had
to be patched for the modules to compile properly, so I propose a
slightly different methodology for patching.
Go to the module source directory and untar all archives:
cd /usr/lib/vmware/modules/source for file in * do tar xvf $file done
Apply the patch:
patch -p1 < /path/to/vmware-workstation-7.1.3-kernel-2.6.37.patch
Pack all archives once again, and get rid of the unpacked directories:
for file in *-only do tar cvf `basename $file -only`.tar $file done rm -rf *-only
Now you can rebuild and load modules:
vmware-modconfig --console --install-all
After that, Workstation runs fast and trouble free as usual. Have fun!
相关文章推荐
- PHP汉字转换拼音的函数代码
- PHP 在源码中实现换行使得页面源码更精致美观
- PHP通过计算经纬度获取附近的数据信息
- PHP运行环境之IIS FastCGI 进程意外退出解决办法
- PHP json_decode 对 JSON 格式的字符串进行编码并获取对应的值
- Thinkphp 使用过程中,模型中使用其它表却总是没起作用的解决办法
- PHP实现懒加载
- x86 TargetPlatform with XBAPs
- php获取当前页面完整URL地址
- PHP代码优化的40条建议
- STP PVST+
- php命令行查看已安装的模块的方式
- 编译php系统的一个小问题
- 使用PHP如何实现高效安全的ftp服务器(二)
- PHP汉字转换拼音的函数代码
- 如何写php守护进程(Daemon)
- 分享PHP守护进程类
- PHP使用strtotime获取上个月、下个月、本月的日期
- thinkPHP导出csv文件及用表格输出excel的方法
- 详解PHP中的null合并运算符