Important statement: This article is my 2011.10 post on my previous Itpub blog, documenting some of the setbacks that have been experienced in installing and downloading Cygwin Linux simulation environment under Windows. To this day, I believe it will also be of great reference value to the students of my 51CTO new course "based on Cocostudio to develop a cross-platform thumb FreeCell game", so move it here.
Also, remind the participants: since you have chosen cocos2d-x, this development tool must mean that you have the desire to create a cross-mainstream mobile platform (in my opinion should be: iphone,android and very likely, for the former will pose a great threat to the Windows Phone 8) The ambitions of the game, then, building an Android development environment in your Windows (recommended WIN7 64-bit or WIN8) environment is likely to mean you have to go through an unusual process of failure-believing that you will be more and more courageous and ultimately succeed in achieving your goals. For this reason, I suggest that you refer to my all the way back to the finishing of a few small articles--perhaps to you a little help.
In my previous article, "Cygwin must read," I introduced some important details of downloading Cygwin. However, today I am more excited because I have just successfully installed my Windows 7 machine to finish Cygwin.
Very ashamed to say that it took nearly four days of spare time to complete the task above.
First of all, the important impact on my installation of Cygwin in addition to the article mentioned in the previous article, there is also a very important, is http://hi.baidu.com/lizhengjun2010/blog/item/08b7fb1b79dc9befe1fe0b09.html. I read about this article from a lot of blogs. The important point of this article is that you do not have to choose to install all of the Cygwin when downloading, because the speed and other reasons often cause you to fail again and again. I follow this the recommended installation item, is 12, installs the Cygwin on the Windows 7 machine, did not find any problem.
However, it is important to note that one of the 12 packages mentioned in the previous article has a wrong name. In order to summarize and emphasize, the following are listed here:
--------------------------------------
autoconf2.1
automake1.10
Binutils
Gcc-core
gcc-g++
Gcc4-core
gcc4-g++
Gdb
Pcre
Pcre-devel, this correct name remembers to be libpcre-devel. You'll find out by typing "pcre" in the text box in the upper-left corner of the installation process.
Gawk
Make
--------------------------------------
my installation method and the difficulties I encountered before
I want to come now, it is my mindset that has seriously affected my previous failures. In my memory, Microsoft has recommended the installation of a software by shutting down other software, and starting the installation files, such as Setup.exe, or Install.exe, by "Start"-"Run". That's what made me so much fooled.
After downloading the latest Setup.exe file (the size shown on my Windows7 is 550KB), I started this installation file with "Start"-"Run". Many of the operations since then, with reference to many options on the network, are unsuccessful. The phenomenon is:
My installation after the Cygwin directory (whether installed on the C-drive or D-drive), there is nothing in the home directory, this seems to be the case just after installation. However, it is critical that, depending on the prompts on the web, both Chinese and English, the file BASH.BASHRC exists under the Etc/skel path. However, on my machine is exactly no Skel folder???
I used a variety of methods, search and re-search, including the search before the installation of the download package, did not find Skel and BASH.BASHRC shadow??!!! In such a case, running Cygwin.bat, although OK, is only a superficial phenomenon. Many errors continue to occur (no longer mentioned here).
Later, in an occasional article (http://hi.baidu.com/ceylon_yao/blog/item/c1ad151fe922a465ca80c4de.html), it was mentioned that:Right-click on setup.exe and select "Run as Administrator".
Does the above-mentioned remark make my heart move and is it caused by this mistake? So, I'm doing setup.exe in a different way: in ExplorerRight-click on setup.exe and select "Run as Administrator"
Of course, based on the previous experience, I chose only the top 12 packages. Download, first installed to the local, which I highly recommend. Then, run Setup.exe again to install the content that has been downloaded to the local. As a result, I found the Skel and bash.bashrc!!! above.
Next, according to the article http://hi.baidu.com/lizhengjun2010/blog/item/08b7fb1b79dc9befe1fe0b09.html, the test run, the results are exactly the same. In order to highlight, I put a few corresponding pictures uploaded, please novice reference.
The following is the first run of the run-time diagram after a successful Cygwin installation. Note: There are no previous white letters, there is no problem with your installation.
650) this.width=650; "src=" http://blog.itpub.net/attachments/2011/11/14466241_201111042021181.jpg "border=" 0 "alt= "14466241_201111042021181.jpg"/>
As shown in the text below, after such a run, the Administrator folder is automatically created under the Home subdirectory and the corresponding configuration file is generated under it.
Here's what I ran after the command "Cygcheck-c Cygwin".
650) this.width=650; "src=" http://blog.itpub.net/attachments/2011/11/14466241_201111042021381.jpg "border=" 0 "alt= "14466241_201111042021381.jpg"/>
Here are my trial runs of "gcc-v" and "g++--version" and several other commands.
650) this.width=650; "src=" http://blog.itpub.net/attachments/2011/11/14466241_201111042022031.jpg "border=" 0 "alt= "14466241_201111042022031.jpg"/>
Summary
I think one of the main reasons I failed earlier was the mindset: too sure to run an installation file in Start-run. In fact, WINDOWS7 used more than two years, there is still too much detail to be explored. Really did not think that this way of running is not "Administrator way", resulting in a series of failures later. The paper is always shallow, I know this matter has preach, really a bit false!
Another lesson is that there is absolutely no need to fully install, so you can go to the official network http://cygwin.com to see some introductions, for example, Install Cygwin link, FAQ link, especially mirror sites link, It is very helpful for you to choose the way to download and install Cygwin as accurately and efficiently as possible.
Happy, Lenovo a few days to the distress and the reference network of Friends of all kinds of tips, dare not exclusive, special meticulous write, for WINDOWS7 under the installation of Cygwin friend reference. If there are any further problems, we can discuss them together.
Note: I also installed a few times under Windows XP, also encountered a failure, whether also with the above did not run as "administrator" of the setup.exe resulting in the Skel folder under ECT and its contents below. I did not install the test again for a reference to a friend who wants to install Cygwin under Windows XP.
In addition, I follow the above way under the Windows7 installed Cygwin, the size of this C:\Cygwin is 387MB, the system is prompted to occupy disk space is 421MB. Of course, the main purpose of my installation of Cygwin is also to learn the development of the Android NDK.
This article is from the "Green Peak" blog, please make sure to keep this source http://zhuxianzhong.blog.51cto.com/157061/1441528
Windows 7 installs Cygwin experience annoyance record