This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

I am building sources of wireshark on Windows7, and I can't find bash which can execute on the window7.

Although i find the sources of bash offered in http://www.gnu.org/s/bash/ on Windows7, I cannot install it.

The reason that there is no program required for installing in windows7 like gcc and make.

So I lost direction, Please, give me the direction.

asked 21 Aug '11, 07:35

one%20step's gravatar image

one step
16224
accept rate: 0%


Have you read and followed the step-by-step guide for Windows development found HERE?

Bash (among other required tools) is provided by Cygwin which is a prerequisite for a Windows build.

permanent link

answered 21 Aug '11, 09:41

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

They says "do not use cygwin, use cmd.exe". So, I'm confused.

Thank you for your answer. Have a nice day!

(21 Aug '11, 19:11) one step

Is there other Bash on windows7 which is not cygwin's bash.

(21 Aug '11, 21:56) one step

There is, but, as far as I know, nobody has tried building Wireshark without Cygwin and with that version of bash; the Wireshark core team does not make any guarantee that it'll work. Note that the Wireshark build process on Windows requires more UNIX-derived tools than just a Bourne-compatible shell, so a Windows port of bash is not sufficient. (That's what "(among other required tools)" means.)

(21 Aug '11, 22:53) Guy Harris ♦♦
1

As for "do not use cygwin, use cmd.exe", that means that the command prompt at which you should type the nmake command is the cmd.exe prompt; however, there are Bourne-shell scripts and commands in the build process, so you still need bash.

(21 Aug '11, 22:55) Guy Harris ♦♦

Solution: The solution is that add the cygwin's bin folder to environmental variables of window

permanent link

answered 22 Aug '11, 19:55

one%20step's gravatar image

one step
16224
accept rate: 0%

I think that's normally part of the Cygwin install.

(22 Aug '11, 23:52) grahamb ♦

@grahamb: Actually, it's not.

(23 Aug '11, 04:47) bstn

I was wrong, confirmed with a Cygwin install on XP SP3.

I can't remember having done this on numerous Wireshark build installations I've done over the years. The dev guide should be updated to mention this step.

(23 Aug '11, 05:32) grahamb ♦

You don't have to, since it's added to PATH from config.nmake. But the size of your environment may be too restricted to expand with the relevant information.

(23 Aug '11, 05:53) Jaap ♦

Duh, not a good day for me. That's why I've never bothered to do it.

(23 Aug '11, 07:18) grahamb ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×110
×103
×58

question asked: 21 Aug '11, 07:35

question was seen: 2,804 times

last updated: 23 Aug '11, 07:18

p​o​w​e​r​e​d by O​S​Q​A