Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I installed wine using: 'sudo apt-get install wine' ... however, when I right click to open an .exe file with wine, nothing happens.
Also, someone suggested that I use: 'wine program.exe'... however, when I run this in temrinal, I get an error message that says, 'could not load L"c:\\windows\\system32\\program.exe": Module not found'.
What do I do to fix this?
Lastly, is the best way to install wine using 'sudo aptitude install wine'?
When someone says do "wine program.exe" they mean that you should substitute the "program.exe" part for the name of the program executable. You will probably have to have changed to the directory where the program is installed too.
You should also provide more information - what distro (and version) are you using? What program are you trying to run? What version of wine are you using? Did you check the wine application database to see if it is compatible?
Hmmm... checking: C:\windows\system32\ contains the system files does it not? Is OP trying to run windows under wine?
The OP want to run "an .exe file". Not Windows itself. If you call wine with an argument, this is taken to be the path or name of an executable which wine should execute. If it is not a full path, it will be searched for in the current directory, then the Windows PATH and finally the C:\Windows\System32 directory. If the program is not found in any of these, the message which is printed is the one mentioned.
The solution is to change to the directory where the program is found before calling wine. You could also copy the program to the C:\Windows\System32 directory before calling wine, but this is less likely to work - many apps care what the working directory is, and it should be where the program is installed.
Note that when I refer to C:\Windows\System32 under wine, I am actually referring to $HOME/.wine/drive_c/Windows/System32... or whatever the wine settings make the actual path to the windows/wine files.
Also, applications that use shared files- and supply the version they need- dump them in the Windows system folder (because it's in the startup file's PATH statement, and therefore you won't need the entire path defined in the call- only the filename). To simplify execution of the program, Wine obligingly creates all necessary folders during program installation. (drive_c/Program Files/ is another example).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.