When vmtools is not compiled by Vmware, "sh: Line 1: 3815 error..." is reported ..." To solve the problem.

Source: Internet
Author: User

Always use VMware 6.0 45731 and run Debian 3.1r5 testing.

We are still busy with our homework. Just yesterday, I wanted to install ATI graphics card driver for the virtual machine, and then upgraded GCC from 4.1.1 to 4.1.2 by the way, then the share folder function of the virtual machine fails. reinstall vmware-tools and an error is reported.

"Your kernel is based on GCC 4.1.2, while your GCC is GCC 4.1.3 (I don't know why), and ask if you want to recompile it ",

I re-compiled it and reported the following error.

"Sh: Line 1: 3815 segment error insmod '-p'/tmp/vmware-config2/vmxnet. o'>/dev/null 2> & 1"

After installation (despite the error, press enter all the way), the mouse can be used, but the share folder function still does not work.

I tried it all night. I finally searched the internet and found similar errors on linuxsir.org. Then I solved the problem :)

The link is as follows: http://bbs.linuxsir.org/showthread.php? T = 306886

The method is to modify the code in the vmware-config-tools.pl

> Sub check_answer_binpath {
> My $ answer = shift;
> My $ source = shift;
>-My $ fullpath;
> + My $ fullpath = internal_which ($ answer );
>
>-If (not (internal_which ($ answer) eq '')){
>-Return $ answer;
> + If ($ fullpath ne ''){
> + Return $ fullpath;
>}Finally, I felt that many Linux tools do not support backward compatibility. This problem is very serious and will definitely lose many users, the dependency of APT-Get is also not good. xfce4 and gnome are installed, so when xfce4 is uninstalled, something in GNOME will also be deleted !! (APT-Get remove)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.