git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Cygwin playbook?

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Sep 7, 2006, 07:18 UTC
Message-ID
<46a038f90609070018k319b748cmae7a9b30da45b3b6@mail.gmail.com>
In-Reply-To
<7v7j0g40xh.fsf@assigned-by-dhcp.cox.net>
On 9/7/06, Junio C Hamano <junkio@cox.net> wrote:
Show 8 quoted lines
> "Martin Langhoff" <martin.langhoff@gmail.com> writes:
>
> > - What cygwin packages are needed?
>
> I am not in front of Windows machine so I need to check later if
> nobody beats me to this, but essentially it is the same as on
> sane Unix systems.  Cygwin folks did a good job providing
> necessary libraries readily available from their Setup.exe.

Sorry to ask this... Are you sure? Vanilla base setup with no extra packages getting gcc and various -dev packages? Perhaps there is a 'developer' profile during install that gets you a reasonable kit?

About 5 minutes ago I managed to get limited access (non-root, cannot install packages) to a cygwin env using rdesktop. It did have gcc and make, but make bombed out with a missing libcurl and openssl header files. IIRC, diff3/merge isn't in the base install either.

In debian I can look at apt-cache show git-core to get a quick overview of dependencies but here I'm lost :(

> > - Need to fudge makefile?
>
> No; not even autoconf was needed and it installed out of the box
> for me (w2k).
That's great to know.
> > - How do I install for personal use?
>
> make install would install under whereever you call ~/bin in
> Cygwin environment, and that is how I have mine.
Kewl.
Show 5 quoted lines
> > - How do I install in /usr/local?
>
> I do not think of a reason why "make prefix=/usr/local" would
> not work but I haven't tried it myself so don't quote me on
> this.

Is cygwin still installable in 2 modes? (Used to be personal and system-wide or something like that.)

If that's the case, then in a system-wide install you must be root to write to /usr/local (I'm guessing here) and there's no sudo or su -c 'make prefix=/usr/local install' so you'd have to open an admin session. Can cygwin shell be invoked under RunAs?

Show 5 quoted lines
> > - Anything else I should know?
>
> You would probably have great pain if on vfat.  It appears to
> work Ok on NTFS.  It appears to be quite slow, judging from
> the way it runs our standard test suite.

Thanks! So no vfat. In terms of speed, this should be for a small/medium project. No linux kernel development on Windows just yet ;-)

Thanks! that's a starting point, though I'm intrigued about the packages required. Are there ways to query what packages you have installed (a la dpkg -l) and to install a list of packages from commandline?

Oh, what an ignorant fop I am.
cheers,
martin
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 8 in “Cygwin playbook?”
  1. Martin LanghoffSep 7, 2006
  2. Junio C HamanoSep 7, 2006
  3. Martin LanghoffSep 7, 2006
  4. Junio C HamanoSep 7, 2006
  5. Martin LanghoffSep 7, 2006
  6. Christopher FaylorSep 7, 2006
  7. Shawn PearceSep 7, 2006
  8. Christopher FaylorSep 7, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.