Install Bison Flex Cygwin

金士頓內存-什麼是DDR4 RAM? -金士頓技術

我嘗試安裝flex和bison,但出現此錯誤:找不到文件&我也使用軟件中心來執行此操作,但是發生驗證錯誤。

我不知道我應該選擇哪種資源。當我在終端中運行此命令時:

結果是:

我的環境:

Apr 15, 2017 Install the example. Open it with the vs2010 converter and it will do the conversion from the 2005.rules to 2010.targets,.props and.xml file. Install cygwin, and include flex, its sourcecode, Bison and its source code. Add the cygwin path to the end of your Executable paths list and the path to the source to the end of your include.

  1. This video demonstrates how to install Flex and Bison ported for Windows platform. I think it is much easier to install this build of Bison and Flex on Windo.
  2. After that, do a full install in a directory of your preference without spaces in the name. I suggest C: GnuWin32. Do not install it in the default (C: Program Files (x86) GnuWin32) because bison has problems with spaces in directory names, not to say parenthesis.
  3. The flex program generates scanners. Scanners areprograms which can recognize lexical patterns in text.Flex takes pairs of regular expressions and C code as input andgenerates a C source file.
  • 看來您在本地運行的代理服務器已關閉。
  • 我不知道您的意思是什麼:(我不使用代理服務器連接到Internet,TNX為您的答案
  • 請編輯您的問題並添加的輸出 cat /etc/environmentcat /etc/apt/apt.conf.
  • 我編輯我的問題
  • 您正在使用哪個版本的Ubuntu?您標記了12.04,但您的錯誤是10.04。

Install Bison Flex Cygwin 2

如果您的發行版是Ubuntu Lucid。

測試一下:

打開一個終端,

Ctrl+Alt鍵+Ť

運行:

在打開的文件中,刪除內容並將其粘貼:

Ctrl + Ø, 保存存檔。 Ctrl + X,接近納米。

繼續在終端中運行:

如果您的發行版不是Ubuntu Lucid,請將Lucid更改為適當的名稱。

如果這些都不起作用

Install Bison Flex Cygwin Pro

下載包(清醒):

Bison Flex Tutorial

http://mirrors.kernel.org/ubuntu/pool/main/b/bison/bison_2.4.1.dfsg-3_i386.deb(32位)http://mirrors.kernel.org/ubuntu/pool/main/b /bison/bison_2.4.1.dfsg-3_amd64.deb(64位)http://mirrors.kernel.org/ubuntu/pool/main/f/flex/flex_2.5.35-9_i386.deb(32位)http:/ /mirrors.kernel.org/ubuntu/pool/main/f/flex/flex_2.5.35-9_amd64.deb(64位)

並安裝它們:

由於某些原因,您配置了代理設置。假設您不需要它們,請打開“系統設置”,轉到“網絡”部分,將“代理設置”設置為“無”,然後單擊 應用系統範圍:

  • 我這樣做,但出現此錯誤:
    軟件包flex不可用,但由另一個軟件包引用。這可能意味著該軟件包已丟失,已被廢棄或只能從其他來源獲得E:軟件包“ flex”沒有候選安裝

Installing and Updating Cygwin for 64-bit versions of Windows

Run setup-x86_64.exe any time you want to update orinstall a Cygwin package for 64-bit windows. The signature for setup-x86_64.exe can be used to verify the validity ofthis binary.

Installing and Updating Cygwin for 32-bit versions of Windows

Run setup-x86.exe any time you want to update orinstall a Cygwin package for 32-bit windows. The signature for setup-x86.exe can be used to verify the validity ofthis binary.

Signing key transition

The key used to sign setup binaries has been updated. During the transitionperiod, signatures are made using both old (676041BA) and new (1A698DE9E2E56300)public keys here.See thismail for more details.

General installation notes

When installing packages for the first time, the setup programdoes not install every package. Only the minimal base packagesfrom the Cygwin distribution are installed by default, which takes up about 100 MB.

Clicking on categories and packages in the setup program package installationscreen allows you to select what is installed or updated.

Individual packages like bash, gcc, less, etc.are released independently of the Cygwin DLL, so the Cygwin DLL version is notuseful as a general Cygwin release number. The setup programtracks the versions of all installed components and provides the mechanismfor installing or updating everything available from this site forCygwin.

Install bison flex cygwin free

Once you've installed your desired subset of the Cygwin distribution,the setup program will remember what you selected, so re-running itwill update your system with any new package releases.

On Windows Vista and later, the setup program will check bydefault if it runs with administrative privileges and, if not, will tryto elevate the process. If you want to avoid this behaviour and installunder an unprivileged account just for your own usage, runsetup with the --no-admin option.

Q: How do I add a package to my existing Cygwin installation?

A: Run the setup program and select the package you want to add.

Tip: if you don't want to also upgrade existing packages, select 'Keep' at thetop-right of the package chooser page.

Q: Is there a command-line installer?

A: Yes and no. The setup program understandscommand-linearguments which allow you to control its behavior and chooseindividual packages to install. While this provides some functionalitysimilar to such tools as apt-get or yum it is not asfull-featured as those package managers.

Q: Why not use apt, yum, myfavourite package manager, etc.?

A: The basic reason for not using a more full-featured package manager is thatsuch a program would need full access to all of Cygwin's POSIX functionality. Thatis, however, difficult to provide in a Cygwin-free environment, such as exists onfirst installation. Additionally, Windows does not easily allow overwriting ofin-use executables so installing a new version of the Cygwin DLL while a packagemanager is using the DLL is problematic.

Q: How do I install everything?

A: You do not want to do this! This will install an enormous number of packagesthat you will never use, including debuginfo and source for every package.

If you really must do this, clicking on the 'Default' label next to the'All' category to change it to 'Install' will mark every Cygwin package forinstallation. Be advised that this will download and install tens of gigabytesof files to your computer.

Q: How do I verify the signature of setup?

Install

A: e.g.

Q: What's the hash of setup?

A: See here

Q: How do I help improve setup?

A: See the setupproject page for more information.