8000 GitHub - waterchip/opam-repository-mingw: windows package repository for OPAM (mingw and msvc)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

waterchip/opam-repository-mingw

 
 

Repository files navigation

opam mingw repository

My opam repository for windows - including an experimental build of opam for windows (of course, you still need cygwin for nearly everything: a shell interpreter to run configure scripts, git, rsync, ...)

Homepage

There is now a small homepage with installation instructions and usage information: https://fdopen.github.io/opam-repository-mingw/

Summary

Download

The archives contain native versions of opam, flexdll and aspcud. They are all not linked against cygwin1.dll, so you can use them with either the 32-bit or 64-bit version of cygwin.

Installation

  • First install cygwin and a few additionals packages: rsync, patch, diffutils, curl, make, unzip, git, m4, perl. And of course mingw64-i686-gcc-core and/or mingw64-x86_64-gcc-core.

  • If your logon name contains whitespace characters (e.g. 'Firstname Lastname') or any other character that would require quoting inside a unix shell or cmd.exe, follow the instructions at https://www.cygwin.com/faq.html#faq.setup.name-with-space

  • Then proceed inside a cygwin shell:

$ tar -xf 'opam32.tar.xz' # or tar -xf 'opam64.tar.xz'
$ bash opam32/install.sh  # --prefix /usr/foo, the default prefix is /usr/local
                          # maybe you have to add /usr/local/bin to your PATH
$ opam init default 'https://github.com/fdopen/opam-repository-mingw.git' --comp 4.03.0+mingw32 --switch 4.03.0+mingw32
# or, if you prefer the 64-bit version - 'opam switch -a' will list other supported versions
$ opam init default 'https://github.com/fdopen/opam-repository-mingw.git' --comp 4.03.0+mingw64 --switch 4.03.0+mingw64
$ eval $(opam config env)

Things to remember

  • Add /usr/i686-w64-mingw32/sys-root/mingw/bin (or /usr/x86_64-w64-mingw32/sys-root/mingw/bin) to your $PATH, if you use depext-cygwinports

  • Consider to use windows symlinks inside cygwin: export CYGWIN='winsymlinks:native'. Otherwise ocamlbuild and many build and test scripts will create symlinks, that are only understood by cygwin tools, but not by the OCaml compiler and other native windows programs. (Usually only adminstrators are allowed to create symlinks. But you can change the default settings, see this post for details)

About

windows package repository for OPAM (mingw and msvc)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • OCaml 72.2%
  • Shell 27.8%
0