zzamboni.org
Ideally Blue

zzamboni.org
Ideally Blue

These are the things I have written about

cygwin

See all posts on posterous with this tag ยป
Jan 19 / 3:28pm

Installing latex2html under Win7 with cygwin

I got latex2html to install on the latest cygwin, however to get the configure to pass I had to alter the configure to recognize cygwin as a UNIX.

Using this patch I was able to properly configure and install latex2html under cygwin in Windows 7.

Filed under  //  cygwin   latex   latex2html   tips   windows  
Sep 28 / 9:39am

Making cygwin, Windows and emacs understand the same symlinks

Today I ran into the problem that symlinks created under cygwin using "ln -s" are not understood by Windows, and of course Windows shortcuts are seen by cygwin as regular files. Happily, this is a (semi-)solved problem. For reference, this is what needs to be done:

  1. Add "winsymlinks" to your CYGWIN environment variable. For example, in my .bashrc I have the following:

    export CYGWIN="nodosfilewarning winsymlinks"

    This makes cygwin create symlinks differently, in a form that is understood both by it and by Windows.
    This is the main step, and the only one if you just need access from the shell and from the Windows explorer. However, emacs still sees those symlinks as regular .lnk files. To fix this, follow the next step.

  2. Install the w32-symlinks.el package, and add the following to your .emacs file:

    (require 'w32-symlinks)

  3. Run M-x customize-option and enter w32-symlinks-handle-shortcuts as the variable to customize. Turn it on, save it for future sessions, and you are all set. The new symlinks should be properly understood by the cygwin shell, Windows explorer, and emacs. Of course, you will have to re-create any symlinks or shortcuts that you created prior to setting the winsymlinks option, for them to be created in the new format.

    Update: so this doesn't quite work on my system. I am using Emacs 23.1, and apparently w32-symlinks does not work properly in this version. If you have an older version (I hear Emacs 21 works well), then this might work for you. 

Filed under  //  annoyances   cygwin   howto   symlink   tips   windows  
Aug 23 / 12:14am

Installing cfengine on Windows 7 under cygwin

Update (2011/09/05): Updated the instructions for cfengine 3.2.0, cygwin 1.7.9, and tested them on a clean cygwin install.

Installing the cfengine community edition under Windows (the commercial version includes native Windows support) is fairly easy under cygwin, you just need to have the appropriate dependencies installed. Here’s how I did it.

Versions  

  • cfengine: 3.2.0
  • Windows 7 Enterprise SP1/64bit
  • cygwin: 1.7.9-1

Additional cygwin packages needed 

To install these, run cygwin’s setup.exe, search for each packages in turn, and install them. Make sure you agree to install any additional packages that are listed as dependencies (setup.exe will ask you about it).

  • make
  • gcc
  • libdb4.5
  • libdb4.5-devel
  • openssl-devel
  • libpcre-devel
  • bison (will install m4 as a dependency, say "Yes")
  • flex

How to compile and install

  1. Unpack cfengine-3.2.0.tar.gz: tar zxvf cfengine-3.2.0.tar.gz
  2. cd cfengine-3.2.0
  3. ./configure
  4. make
  5. make install

That should be it. Remember that there is some functionality missing in the community edition under Windows (for example, userexists() does not return correct results). If you want full Windows support (including native features like registry editing, etc.) you have to use the commercial edition of cfengine. But for most purposes, the community edition works just fine.

If you have different experiences, or with different versions of Windows, please let me know! I'll update these instructions as needed.

 

Filed under  //  cfengine   cygwin   howto   windows