编译安装带WineTools的WineCVS

简介:

Alright, well, i've tried the latest Wine CVS and winetools and I have to say i'm impressed, wine is not too far behind Cedega and I think in the next year Wine might take the step ahead of them. Granted, they deserve to be ahead, they are the creators and Transgaming kind of stole their project and are hogging it for themselves. 
好吧,我已经在尝试着用最新的Wine CVS和Winetools了,我不得不说给我印象深刻的是Wine并没落后Cedega太远,我认为明年Wine也许能超越他们。但是,他们的领先也是应该的,他们是创造者,用Transgaming的方式默默地进行他们的项目并完善它。 

So I present to you all, a howto on how to install the latest Wine CVS, installing wine tools and getting everything you'll need for the road. 
因此我将介绍给你全部,一个关于如何安装最新的Wine CVS,如何安装Wine tools和如何得到你所需东西方法的指南。 

1) Getting The Development Libraries to compile wine: 
1) 得到开发库以编译Wine: 

We also need a few development libs to compliment this: 
我们需要一些开发库来进行编译: 

xlibs-dev will allow you to compile wine with x support, the reason behind why most compilations of wine fail under Ubuntu. 
xlibs-deb 将使你编译的Wine带有x支持,这也是大多数Wine在Ubuntu系统中编译失败的原因。 

代码:

sudo apt-get install xlibs-dev 
 

If you want OpenGL support, don't forget to get these libs here: 
如果你想要OpenGL支持,不要忘了下面这些库: 
代码:

sudo apt-get install xlibmesa-glu-dev 
 

Heres two other packages that will make it so wine compiles, and are required during the wine compilation, these are the bison and flex packages. 
另外还有两个包是Wine编译期间所需要的,它们是bison和flex包。 
代码:

sudo apt-get install bison flex 
 


This package here is for winetools, i'll explain this later on. 
下面的包是winetools需要的,我稍后再解释。 
代码:

sudo apt-get install libgtk-1.2 libgtk-1.2-common 
 

And lastly, we need to get the cvs package to even be able to grab the cvs streight from winehq. 
最后,我们需要得到CVS包以便能从Winehq上抓取CVS。 
代码:

sudo apt-get install cvs 
 


2) Getting the Wine CVS 
2) 得到Wine CVS 

Now we need to pop up a terminal, and lets make a cvs directory. You can do this wherever, but I strongly recommend having one for organization purposes. 
现在我们需要打开一个终端,并创建一个CVS目录。你可以在任何地方创建它,但我强烈建议能有组织的创建。 
代码:

mkdir cvs 
 

Lets go to it now. 
现在让我们开始吧。 
代码:

cd cvs 
 

Now, that we are in our cvs directory, and have the right packages, lets connect to the wine cvs now. 
现在我们在我们的CVS目录中了,并有一个正确的包,让我们现在连接到Wine CVS吧。 

There are two servers, a US server, and a Europe server, if you are in the U.S. follow the U.S. howto under here on how to connect to the cvs, if you are in Europe, then do the same for the Europe connection. 
有两个服务器,美国的和欧洲的。如果你在美国,那么根据美国的说明怎样去连接CVS,如果你在欧洲,那么同样的方式连接欧洲服务器。 

To be able to connect, you must type these on your command line and when you connect, it will not say anything, do not be worried 
为了能连接,你必须在你连接时你的命令行里键入,别担心,它不会有任何问题。 

How to Connect to the Wine U.S. CVS Server: 
怎样连接Wine的美国CVS服务器: 
代码:

export CVSROOT=:pserver:cvs@cvs.winehq.org:/home/wine 
 

How to Connect to the Wine Europe Server: 
怎样连接Wine的欧洲服务器: 
代码:

export CVSROOT=:pserver:cvs@rhlx01.fht-esslingen.de:/home/wine 
 

Now that we have connected to it, now its time to login 
现在我们已经连上了,开始登录: 
代码:

cvs login 
 

the password has and always will be cvs for their cvs login. 
在CVS登录时,密码总是cvs。 

Now that you are logged in, its time to download the wine cvs. 
现在你已经登录了,那么接下来就是下载Wine CVS了。 
代码:

cvs -z 0 checkout wine 
 

Now it will start downloading a bunch of stuff, depending on your connection will depend on how long it will take, this is about 40 megabytes. 
现在开始下载,下载时间依赖于你的连接速度,它大概有40M左右。 

3) Compiling and installing Wine 
3) 编译安装Wine 

Now that we have our wine cvs here now, we need to compile it, lets go to your new wine directory inside your cvs directory. 
现在我们已经有了Wine CVS,我们需要对它进行编译,让我们到你CVS目录中的新wine目录中。 
代码:

cd wine 
 

Now, we need to compile this baby, this is the longest part but the easiest hehe.. 
我们需要编译它,这是最花时间的但它也是最容易的。呵呵... 
代码:

./tools/wineinstall 
 

Now it will start the configure script and will ask you a question at the end of the script about logging into root to install wine, just say yes, and let it rock. It will take quite a while, i'm running a AMD 64 3200+ overclocked at 2.3 ghz and it took me about 20 minutes. On my 900 mhz AMD Athlon it took me approx. 50 minutes. So be patient, watch some tv or something. 
它开始运行配置脚本并在脚本最后询问你是否以根用户安装Wine,只需回答是,并让它运行。它将花费相当长的时间,我运行的机器,处理器 AMD64 3200+,时钟2.3GHz,花了它大概20分钟左右。而在我们900MHz的AMD Athlon处理器上花了将近50分钟。所以耐心点,去看看电视什么的。 

Ahh, we have the latest version of wine cvs now compiled, but to install it, ahh wait, it says here to login to root, lets say yes 
啊哈,我们现在已经编译好了Wine CVS最新的版本,只需要安装它了,啊等等,它要求根用户权限,让我们回答是。 

Now it will install the stuff, does not take long a minute or two, and then it will ask you a question about adding in the default wine config at .wine/config 
现在它将安装,只需要一到两分钟,然后它会问你是否要在.wine/config文件中添加Wine的配置。 

Lets say no. We are going to do something more interesting today kids. 
回答不。我们打算做更多事。 

4) Installing Winetools 
4) 安装Winetools 

Now, for the fun stuff, finally! right? hehe , lets go download winetools, here is the url: 
现在有趣的结束了!是吗?呵呵,让我们下载Winetools,这儿有URL: 

But Before I give you the url, we should just get all linuxy and use wget, screw the browsers , in your home directory just make a temp directory since this directory won't be here very long.... 
但在我给你URL之前,我们(should just get all linuxy) 用wget,调节浏览器,在你的家目录中创建临时目录,因为这目录不需要保留很长时间。 
代码:

mkdir temp 
 


Lets go to it now. 
现在让我们进入它。 
代码:

cd ./temp 
 

And finally, lets download the winetools. 
最后,我们下载Winetools。 
代码:

wget http://home.comcast.net/~bloodsport/wine/winetools/winetools-211jo.tar.gz 
 

This you may notice is off my personal webstorage, why did I do this? Because my links will never die , anyways lets start on installing this beast. 
也许你注意是从我的网络硬盘上下载的,为什么要这样做呢?因为我的链接从来就没死过,不管怎样,让我们开始安装吧。 

Lets extract the new tar.gz file now. 
让我们解压新的tar.gz文件。 
代码:

tar -xzf winetools-211jo.tar.gz 
 

It should had created a new directory called winetools, lets go to it now 
它将创建一个叫winetools的新目录,让我们进入它。 
代码:

cd winetools 
 

To install it, its simple. 
安装它,这很简单。 
代码:

sudo sh install.sh 
 

Now its in, thank god right? hehe, lets get out of this temp directory, if you followed my step, just do this. 
如果你是按我的步骤进行,只需要做。 
代码:

cd .. 
 

One more time. 
一到几次 
代码:

cd .. 
 

And now, its time to remove the temp directory to cleanup our mess. 
现在,可以删除临时目录以避免混乱。 
代码:

rm -rf temp 
 

Cleaned, just like that, hehe, well anyway lets rock n roll with winetools. 
象那样清除之后,呵呵, 

On your command line, just type wt2 and it should come right up saying something about you using a different version of wine that is not recommended, just click ok, don't worry about that 
在你的命令行里,只需要键入wt2,它会提示你使用了一个不被推荐的Wine版本。点击OK,别担心它! 

The GPL License for the software, and the creator, email him if you want and tell him how awesome his winetools are 
对软件和创建者遵循GPL许可证,如果你想告诉创建者他的Winetools如何的话,可以发邮件给他。 

Just click ok after the intro and now you should see the menu with base setup and all the good stuff we want. Lets start with base setup. 
在简介之后点击OK,并在基本安装后就可以看到菜单了,我们选全部组件。让我们开始基本安装。 

Since we did not create a wine config through the wine install script, which I told you to do this for a reason , and if you didn't follow my instructions, no big deal, we can remove it here, just pop up a terminal and type: 
因为在wine安装脚本安装时没创建Wine配置文件,就如我要你所做的那样。如果你没有按照我的步骤处理的话,没关系,我们可以删除它,只需要打开终端并键入: 
代码:

rm -rf .wine 
 

Done, but if you did follow my instructions, lets continue. 
好了,但如果你是按照我的步骤来的话,让我们继续。 

Create a fake windows drive is the first one 
首先创建一个伪Windows驱动 

It should create everything for you, and don't worry if you see any errors through your time in winetools don't worry about it. 
它可以为你创建每一个东西,如果你在运行Winetools时看到错误时,别担心。 

Next up is DCOM98 and you're probably asking me, why not install the fonts? Reason why, is because the links are dead to the fonts from winetools, it will just hang, try it if you do not believe me hehe, anyways, install DCOM98. 
接下来是DCOM98,你可能问我为什么不安装字体呢?原因是因为从winetools到字体的链接是死链接,它会被挂起,如果你不相信我的话,你可以试试,呵呵,无论如何,安装DCOM98。 

After DCOM98 is installed, it'll go through its regular routine of shutting down wine after its installed and doing a simulated windows reboot. Next up is Internet Explorer 6.0 SP1, just download it for the language you want. And it will install. 
在安装了DCOM98之后,在关闭Wine时也将经历日常例程并将模拟窗口重启。下一步是安装下载你所需语言的IE6.0 SP1。 

After its done, go back to the main menu. 
然后返回主菜单 

Now lets install windows system software, install it in this order: 
现在让我们安装Windows系统软件,按下列顺序安装: 

Windows Installer 
Microsoft Foundation Classes 4.0 
Visual Basic 5 Runtime 
Visual Basic 6 Runtime 
Visual C++ run-time English -- or german if you are german. 
MDAC 2.8 English -- or german if you once again german 
Jet 4.0 SP8 English -- Or german if you have german blood! 
Windows Script 5.6 English -- Or German if you can drink 50 gallons of beer and still not pass out. 

HTML Help Update Package 
Common Controls 5.0 

Now that you have them all installed, lets go back to the main menu. 
现在你将他们全部安装,让我们回到主菜单。 

Lets exit... 
让我们退出... 

Now what!? What about our great fonts? Yeah yeah... Lets move onto fonts... 
什么!?我们主要的字体?是的是的...让我们安装字体 

5) Installing Windows Fonts 
5) 安装Windows字体 

Now that we have our wine pretty much setup now, we need fonts. I have all the windows fonts you will need uploaded to my storage. I recommend doing this from the command line. 
现在我们要把我们的Wine设置得更加漂亮,我们需要字体。在我上传的网络硬盘上有你所需的全部Windows字体。我建议在命令行中执行。 

Lets make another temp directory first. 
首先让我们创建另一个临时目录。 
代码:

mkdir temp 
 


Now go there. 
进入该目录 
代码:

cd temp 
 

Download the fonts. 
下载字体 
代码:

wget http://home.comcast.net/~bloodsport/wine/fonts/winfonts.tar.gz 
 

Now extract the fonts 
现在解压字体 
代码:

tar -xzf winfonts.tar.gz 
 

time to install them all one by one. I also want to remind everyone, do not install the andale32.exe it fails on wine for some reason, but you can try it if you want. 
然后一个个地安装它们。我也想提醒每个人,不要安装andale32.exe,基于某种原因,它在wine上不能成功安装,但如果你想的话,可以试试。 

To install them you will need to do this: 
安装他们你需要执行: 
代码:

wine arial32.exe 
 

That will come up with a menu, just click ok then it will install it then it will say the font has been successfully installed. Do this with the rest of them. 
那将出现在菜单里,点击OK,然后它将被安装,并且提出字体安装成功,并运行剩下来的字体。 

wine then the name of the font executable. 
Wine 然后执行字体名。 

When you are done, I am proud to say, you have a full blown wine install with the latest cvs, was it that hard? No, just time consuming and it looks longer than it really is because I talked too much on the HOWTO 

当你完成后,我可以自豪的说,你已经用最新的CVS进行了一个完整的Wine安装了,它难吗?不,它只要费时间,它看上去比实际更长,因为我在这个指南里说得太多了。



本文转自 firehare 51CTO博客,原文链接:http://blog.51cto.com/firehare/588211,如需转载请自行联系原作者

相关文章
|
24天前
|
消息中间件 Java Kafka
jafka如何进行编译安装?
【10月更文挑战第20天】jafka如何进行编译安装?
14 1
|
C语言
编译安装gcc
编译安装gcc
编译安装ccache
编译安装ccache
129 0
|
Go 开发工具 git
gpbackup编译安装
Greenplum6开始,gpbackup需要自己编译安装
1229 0
|
C语言 云计算