Linux 如何在 ubuntu 12.04 机器上运行 .exe 文件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17946070/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-07 00:24:11  来源:igfitidea点击:

How can I run .exe file on ubuntu 12.04 machine?

linuxubuntu-12.04java-ee-7

提问by ur truly friend

In my organization C developers developed one Application and given to us as a .exeformat.

在我的组织中,C 开发人员开发了一个应用程序并作为一种.exe格式提供给我们。

If any end-user send any Httprequest.This .exewill be run, for this I wrote the Javacode(ProcessBuilder()) and deployed in Application Server(Apache Tomcat).It's working fine.These everything was done in my local system(Windows 7).

如果任何最终用户发送任何Http请求.exe。这将被运行,为此我编写了Java代码(ProcessBuilder())并部署在 .Application Server(Apache Tomcat)它工作正常。这些一切都在我的本地系统(Windows 7)中完成。

But we are using Ubuntu 12.04as a server.Here that .exefile is not working.

但是我们Ubuntu 12.04用作服务器。这里该.exe文件不起作用。

How can I fix this.

我怎样才能解决这个问题。

回答by Basile Starynkevitch

You basically can't execute a windows executable on Linux (but maybe try with wine).

您基本上无法在 Linux 上执行 Windows 可执行文件(但可以尝试使用wine)。

You should ask the source code of that C application inside your organization, and port it and compile it (with gcc -Wall -gat first) on your Linux server.

您应该在您的组织内部询问该 C 应用程序的源代码,并gcc -Wall -g在您的 Linux 服务器上移植和编译它(首先使用)。

I suggest you to install Linux on your local machine (or laptop) to learn it first.

我建议你先在本地机器(或笔记本电脑)上安装 Linux 来学习它。

回答by Rana Ranvijay Singh

You need to install wine software if you want to run a .exe file in ubuntu . installing the wine software in ubuntu is a simple two step process. Type the command in the terminal

如果要在 ubuntu 中运行 .exe 文件,则需要安装 wine 软件。在 ubuntu 中安装 wine 软件是一个简单的两步过程。在终端输入命令

sudo apt-get update
sudo apt-get install wine1.5

Once the wine is installed, you can open any .exe file using wine . Say this , i have a file game.exe , right click - open with - wine .

安装 wine 后,您可以使用 wine 打开任何 .exe 文件。这么说吧,我有一个文件 game.exe,右键单击-用-wine 打开。

回答by Pramod Pai

You need to install wine software if you want to run a .exe file in ubuntu . installing the wine software in ubuntu is a simple two step process. Type the command in the terminal

如果要在 ubuntu 中运行 .exe 文件,则需要安装 wine 软件。在 ubuntu 中安装 wine 软件是一个简单的两步过程。在终端输入命令

sudo apt-get update

sudo apt-get 更新

sudo apt-get install wine1.5 (1.5 changes with what ever number the latest edition is)

sudo apt-get install wine1.5(1.5 随最新版本的数字而变化)

Even better go to Ubuntu software center and install thru GUI based process

更好的是转到 Ubuntu 软件中心并通过基于 GUI 的过程进行安装

Once the wine is installed, you can open any .exe file using wine . Say this , i have a file pumpai.exe , right click - open with - wine . And Enjoy...Its Open Source..........

安装 wine 后,您可以使用 wine 打开任何 .exe 文件。这么说吧,我有一个文件 pumpai.exe,右键单击-用-wine 打开。并享受......它的开源......

Pramod Pai

帕莫德派