使用Cygwin在Windows上體驗Linux的快感

來源:互聯網
上載者:User

標籤:empty   read   soc   ncurses   tin   ora   admin   www   block   

前言

記得大學的時候就以前使用過Cygwin,可惜當時沒有發現她的美,我相信如今大多數朋友可能會更加傾向於使用Git或者乾脆直接使用虛擬機器以及原生Unix。

只是對於剛進入Linux的世界新人來說,使用Cygwin能夠讓你在Windows以下練習Linux的Bash,以及經常使用工具,而不須要安裝Linux,也不用操心Windows被破壞。給每一個人多一種選擇也蠻好的,最後再一次感謝163為開源做出的努力。

Get that Linux feeling - on Windows

更新歷史

2015年07月21日 - 初稿

閱讀原文 - http://wsgzao.github.io/post/cygwin/

擴充閱讀

Cygwin - http://www.cygwin.com/
163源 - http://mirrors.163.com/cygwin/

依照個人習慣一步步勾選就可以,軟體源我選擇163,假設網路不給力能夠下載我提供的完整離線包

線上安裝
  1. 點擊下一步
  2. 選擇Install from Internet
  3. 自己定義安裝路徑
  4. 自己定義Local Package Directory
  5. 自己定義網路連接下載方式(能夠使用代理加速)
  6. 選擇http://mirrors.163.com作為下載源
  7. 選擇自己所需的Packages
離線安裝
  1. 點擊下一步
  2. 選擇Install from Local Directory
  3. 自己定義安裝路徑
  4. 定義Local Package Directory為mirrors.163.com
  5. 選擇自己所需的Packages
軟體庫

你相同能夠在Cygwin上編譯安裝和運行Unix下的程式

在Select Packages介面搜尋並勾選所需的包或者直接所有install Devel,舉個GoAccess栗子

[email protected]20150629NSFI ~/goaccess-0.9.2$ ./configure --enable-utf8checking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for a thread-safe mkdir -p... /usr/bin/mkdir -pchecking for gawk... gawkchecking whether make sets $(MAKE)... yeschecking for gcc... gccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.exechecking for suffix of executables... .exechecking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking for gcc option to accept ISO C89... none neededchecking for style of include used by make... GNUchecking dependency style of gcc... gcc3checking whether gcc and cc understand -c and -o together... yeschecking for pthread_create in -lpthread... yeschecking build system type... x86_64-unknown-cygwinchecking host system type... x86_64-unknown-cygwinchecking whether to build with rdynamic for GNU ld... nochecking for mvaddwstr in -lncursesw... yeschecking for ncursesw/ncurses.h... yeschecking for ncurses.h... yeschecking for pkg-config... /usr/bin/pkg-configchecking pkg-config is at least version 0.9.0... yeschecking for pkg-config... /usr/bin/pkg-configchecking for GLIB2... yeschecking for g_list_append in -lglib-2.0... yeschecking for socket in -lsocket... nochecking for gethostbyname in -lnsl... nochecking how to run the C preprocessor... gcc -Echecking for grep that handles long lines and -e... /usr/bin/grepchecking for egrep... /usr/bin/grep -Echecking for ANSI C header files... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking netinet/in.h usability... yeschecking netinet/in.h presence... yeschecking for netinet/in.h... yeschecking sys/socket.h usability... yeschecking sys/socket.h presence... yeschecking for sys/socket.h... yeschecking arpa/inet.h usability... yeschecking arpa/inet.h presence... yeschecking for arpa/inet.h... yeschecking locale.h usability... yeschecking locale.h presence... yeschecking for locale.h... yeschecking netdb.h usability... yeschecking netdb.h presence... yeschecking for netdb.h... yeschecking for stdint.h... (cached) yeschecking for stdlib.h... (cached) yeschecking for string.h... (cached) yeschecking for unistd.h... (cached) yeschecking stddef.h usability... yeschecking stddef.h presence... yeschecking for stddef.h... yeschecking for an ANSI C-conforming const... yeschecking for off_t... yeschecking for size_t... yeschecking whether struct tm is in sys/time.h or time.h... time.hchecking for ptrdiff_t... yeschecking for working strtod... yeschecking for _LARGEFILE_SOURCE value needed for large files... nochecking for working memcmp... yeschecking whether lstat correctly handles trailing slash... yeschecking whether stat accepts an empty string... nochecking for strftime... yeschecking for regcomp... yeschecking for strtoull... yeschecking for memmove... yeschecking for floor... yeschecking for gethostbyaddr... yeschecking for gethostbyname... yeschecking for memset... yeschecking for setlocale... yeschecking for strchr... yeschecking for strdup... yeschecking for strerror... yeschecking for strrchr... yeschecking for strstr... yeschecking for strtol... yeschecking for realpath... yeschecking for malloc... yeschecking for realloc... yesconfigure: creating ./config.statusconfig.status: creating Makefileconfig.status: creating src/config.hconfig.status: executing depfiles commandsYour build configuration:  CFLAGS = -pthread  storage: On-memory Hash Database (GLib)  prefix: /usr/local  package: goaccess  version: 0.9.2  bugs: [email protected]make && make install$ goaccess -VGoAccess - 0.9.2.For more details visit: http://goaccess.ioCopyright (C) 2009-2015 GNU GPL‘d, by Gerardo Orellana

使用Cygwin在Windows上體驗Linux的快感

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.