Wine cannot run the exe solution (Pathnotfind)

Source: Internet
Author: User

The downloaded wine has never been able to run the exe file normally. It has been a long time since it has not found any cause for a large number of searches on the Internet (it seems that no one has ever encountered the same problem ), the system version and wine version are excluded from repeated experiments. Finally, we found that it was originally a problem with the path of the wine and exe files.

To solve the problem:

After wine is properly installed, the specified exe and other legal windows executable files cannot be run.

Symptom:

When double-click the exe file in the graphic interface, a wine dialog box is displayed, with the content "Path not find ".

Execute the file in the command line and prompt (assuming the program is/home/userx/abc.exe ):

Wine: cannot find L "unix \ home \ userx \ abc.exe"

Even if you enter the complete path name, the following prompt is displayed:

Wine: cannot find L "\ home \ userx \ abc.exe"

These factors are irrelevant to the problem:

32-bit or 64-bit linux system.

Wine version.

Cause:

Wine can only run the exe program placed under "Directory (including subdirectories) with windows drive letters configured in wine.

When running the exe, wine needs to use a valid windows path to represent the path of the exe file, in $ HOME /. the dosdevices directory under wine stores the valid path ing (from the drive letter to the Linux path) Symbolic Link. Only the configured linux path prefix can be converted to a windows drive letter, which is then executed by wine.

By default, only C: is valid and is automatically configured as $ HOME/. wine/driver_c.

Solution:

Method 1:

Place the exe program to be run in a location under $ HOME/. wine/driver_c.

Method 2:

Configure path ing for the directory where the exe program is placed in linux.

There are two configuration methods:

2.1 modify the blank symbolic link file under $ HOME/. wine/dosdevices/to make a link to the desired path.

Or

2.2 Use winecfg to configure location. You can configure directories manually or automatically. There is an auto detection that maps the linux Mount point corresponding to each disk partition to a windows drive letter based on the disk partition information.

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.