How to create your Linux development environment on Microsoft Windows

Source: Internet
Author: User
In this article, I will share with you some software installation and environment setup methods. this is my recent practical experience and I am very satisfied with the use effect. I cannot stay on Linux for development forever, but I like Linux terminals and Linux environments very much. when developing some open-source software

In this article, I will share with you some software installation and environment setup methods. this is my recent practical experience and I am very satisfied with the use effect. I cannot stay on Linux for development forever, but I like Linux terminals and Linux environments very much. when developing some open-source software, Linux will make me feel that everything is easier, all tools work well together, and you don't need to tie them together with a bandage.

The following Windows environment configuration allows you to easily complete most simple Linux tasks in your daily work.

I assume that you have not installed anything on your machine. now, start from scratch...

Linux Terminal

Windows cmd is basically a waste... However, if you are willing to take the time to find out, you can find a lot of software that can replace it. Recently, I found the cmder, which packages conemu, msysgit, and clink together, this allows you to use a truly clean Linux terminal without any configuration! It even comes with a pretty ol 'monokai color theme.

This is a portable software. you can put it in any Directory of the system. There is a bin/directory in it. you can put any command and files you want in this directory and execute them from the terminal.

With cmder, you have git, a good terminal, and most linux commands (such as ls, mv, cp, grep, and cat .)

Git

It already exists in cmder! Saves a lot of trouble, isn't it?

Chocolatey software package management system

Because I will execute a lot of command programs, I found Chocolatey is really useful.

To install it, you only need to execute

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin

Do you need to install xampp? Just click cinst xampp. app! You can also choose where to install it. generally, it will be installed in the D: \ xampp directory.

Do you need ruby? Cinst ruby

Wget

This is an essential good thing. many common tools (such as composer) need to be used for quick and easy installation.

Install it. you only need to execute cinst Wget.

Nano text editor

I really like this tool that can execute quick and convenient text. Execute cinst nano, which is all the operations you need to install it!

It is important to note that the ^ W key is used to close the tab page. Therefore, you need to cancel this shortcut key association in the cmder settings.

Vim

Are you using Vim? Execute cinst vim. of course, all vim users know how to install and configure it...

Integrate XAMPP (Apache + PHP + MySQL + Perl)

After all, it is easier to install this integration package on Windows than to install apache + mysql separately.

XAMPP installation does not add any PATH information to Windows PATH. Therefore, if you want to run the PHP command in the command line, you need to execute set PATH = % PATH %; D: \ xampp \ php. Suppose you have installed XAMPP In the D: \ xampp directory!

In this way, if php -- version is executed, you will not see the error message. if there is an error, check your XAMPP directory.

In addition, if you plan to execute the pear command in PHP, you will encounter an error like the following:

ERROR: failed to mkdir C:\php\pear\data\Auth\Auth\Frontend  ERROR: failed to mkdir C:\php\pear\docs\Benchmark\doc  ERROR: failed to mkdir C:\php\pear\data\Cache\Container  ERROR: failed to mkdir C:\php\pear\docs\Cache_Lite\docs  ERROR: failed to mkdir C:\php\pear\docs\Calendar\docs\examples  ERROR: failed to mkdir C:\php\pear\docs\Config\docs

This is because XAMPP does not actively configure perl. Therefore, if you install XAMPP In the D: \ xampp directory, you need to do this:

D:, go to this partition, and then

cd D:\xampp\phppear config-set doc_dir d:\xampp\php\pear\docs pear config-set cfg_dir d:\xampp\php\pear\cfg pear config-set data_dir d:\xampp\php\pear\data pear config-set cache_dir d:\xampp\php\pear\cache pear config-set download_dir d:\xampp\php\pear\download pear config-set temp_dir d:\xampp\php\pear\temp pear config-set test_dir d:\xampp\php\pear\tests pear config-set www_dir d:\xampp\php\pear\www

That's all.

Conclusion

In general, I like the transformed environment and we will continue to improve it. of course, we welcome your suggestions.

Original article: Develop on Windows as if it was Unix

Related Article

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.