如何为Cygwin安装apt-cyg? [英] how to install apt-cyg for Cygwin?

查看:143
本文介绍了如何为Cygwin安装apt-cyg?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

采用



我的猜测是扩展名或文件名不好我应该使用什么名称和扩展名?



此过程还有其他步骤吗?



注意:在Windows 10上安装了cygwin。请不要以为我已经安装了其他工具。

解决方案

请记住 setup-x86.exe 或<$ c从 https://www.cygwin.com/下载的$ c> setup-x86_64.exe 是安装cygwin的官方方法。如果使用其他方法安装但出现问题,则可能会获得很少或没有官方支持。只需使用官方gui安装程序即可安装和更新软件包。


taken form here - explaining how to install apt-cyg

Install apt-cyg

You may have heard of programs like apt-get (Ubuntu), yum/dnf (Fedora), pacman (Arch), or brew (Mac OS X)... .. .The analogous program for Cygwin is called apt-cyg.

Installing apt-cyg is simple. First, save this file: https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg . Then, use File Explorer to find the file in your Downloads folder and move it into C:\cygwin\bin. Then, open Cygwin and enter "chmod +x /bin/apt-cyg". This tells Cygwin that you want to be able to execute the apt-cyg command. Lastly, enter "apt-cyg mirror ftp://sourceware.org/pub/cygwin". This sets up apt-cyg to use the official repository when downloading programs.

Sounds simple enough. But i have an error.

This tutorial does not specify with what name and what extension to save that file.

I save it as apt-cyg.txt, and move it into C:\cygwin64\bin

This does not work. When running apt-cyg, I get the error: bad interpreter: No such file or directory

My guess is that extension or filenames are bad. What name and extension should i use?

Are there any more steps to this process?

Note: I just installed cygwin on a windows 10. Please don't assume i have other tools already installed.

解决方案

Remember that the setup-x86.exe or setup-x86_64.exe downloaded from https://www.cygwin.com/ is the official method for installing cygwin. If you install using some other method and have problems, you may get little or no official support. Just use the official gui installer to install and update packages.

这篇关于如何为Cygwin安装apt-cyg?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆