#6743: cygwin metaticket: port Sage to Microsoft Windows (via Cygwin): stage 1 
--
make building Sage automatic
---------------------------+------------------------------------------------
   Reporter:  was          |          Owner:  was      
       Type:  enhancement  |         Status:  new      
   Priority:  major        |      Milestone:  sage-4.8 
  Component:  cygwin       |       Keywords:  sd31 sd32
Work_issues:               |       Upstream:  N/A      
   Reviewer:               |         Author:           
     Merged:               |   Dependencies:           
---------------------------+------------------------------------------------
Description changed by kcrisman:

Old description:

> The goal of this ticket is that a person can:
>
>    1. Install Cygwin and certain standard Cygwin packages (listed below).
>
>    2. Extract the Sage tarball and type "`make`"
>
> and have everything build automatically with no errors.   The goal is
> '''not''' that the resulting build works or Sage starts up.  That will be
> for a later ticket.  Adding checks for all these prereqs will also be
> part of a future ticket.
>
> ----
>
> == Current instructions (work on Windows XP with Cygwin 1.7.3 and Windows
> 7 with Cygwin 1.7.9) ==
>
>  * As below with 4.7.2
>  * Check which are already included if you are using an alpha of 4.8
>  * Warning! The new MPIR spkg in 4.8.alpha0 does not seem to work.
>
> === Cygwin prereqs ===
>  * Be sure to install `file`, `liblapack`, `liblapack0`, `liblapack-
> devel`.
>  * Also need `libiconv` and `openssl` and `openssl-devel`.
>  * Might as well install `libgc-devel` - although it's not needed to
> build, it probably is to start.
>  * Since we will go with #11232, install `patch`.
>  * On Windows 7 (or both) install `libncurses-devel`.
>  * Don't forget `fortran`.
>  * Make sure you download all `gcc` and `g++` so the versions match (in
> this case, gcc4 is the type we want).
>  * We also need make and perl
>  * m4 is currently needed because of the prereq script, but once #12112
> is closed, it won't be.
>  * Just to make sure, avoid building in home directories of Windows
> domain users, as they are treated in a special way by Windows (and
> Cygwin). Probably also it's a good idea that all the pathnames do not
> contain capital letters (Windows is case-insensitive in this way, unlike
> Unices), spaces, etc.
>  * Also, '''don't forget to''' {{{export SAGE_PORT=yes}}}!
>
> === Spkgs ===
>  *
> [http://boxen.math.washington.edu/home/jdemeyer/spkg/ecl-11.1.2.cvs20111120.p0.spkg
> ecl-11.1.2.cvs20111120.p0.spkg], #11884
>  *
> [http://sage.math.washington.edu/home/leif/Sage/spkgs/maxima-5.23.2.p2.spkg
> maxima-5.23.2.p2.spkg], #11966
>  * [http://sage.math.washington.edu/home/kcrisman/cddlib-094f.p9.spkg
> cddlib-094f.p9.spkg],
> [http://sage.math.washington.edu/home/dima/packages/networkx-1.2.p2.spkg
> networkx-1.2.p2.spkg] #11245
>  *
> [http://boxen.math.washington.edu/home/dima/packages/singular-3-1-3-3.p2.spkg
> singular-3-1-3-3.p1-cygwindraft.spkg], #12089
>  * [http://sage.math.washington.edu/home/kcrisman/twisted-9.0.p3.spkg
> twisted-9.0.p3.spkg], #11497 (appears to be not necessary any more---but
> YMMV)
>
> This should then work 'out of the box', modulo rebasing issues (see
> [wiki:CygwinPort]).
>
> If you are using 4.8.alpha0 or later, you will probably run into
>  * #12115 - MPIR isn't building.  There is a functioning spkg at that
> ticket, but we are waiting on whether there is a better change available.
>
> See [wiki:CygwinPort the wiki] for other details.
>
> ----
>
> Much older info, archived:
>
> I have put a binary of my Cygwin build here:
>
> http://sage.math.washington.edu/home/wstein/tmp/sage-4.1-cygwin-i686-CYGWIN_NT-5.1.tar.gz
>
> Things like "`sage -ipython`" and many non-Sage imports work.  Just
> starting Sage doesn't, maybe because of the Sage<-->pynac binding not
> building.
>
> Required Cygwin packages beyond the usual:
>
>    * GCC 4.3.2
>    * `gfortran`
>    * `libncurses-devel`
>    * `lapack`
>    * `openssl-devel`
>    * `libiconv` -- needed when building R (and it has to be `libiconv`)
>
> We need to add a test for '''all''' of the above to the prereq script
> before making the Cygwin port official.

New description:

 The goal of this ticket is that a person can:

    1. Install Cygwin and certain standard Cygwin packages (listed below).

    2. Extract the Sage tarball and type "`make`"

 and have everything build automatically with no errors.   The goal is
 '''not''' that the resulting build works or Sage starts up.  That will be
 for a later ticket.  Adding checks for all these prereqs will also be part
 of a future ticket.

 ----

 == Current instructions (work on Windows XP with Cygwin 1.7.3 and Windows
 7 with Cygwin 1.7.9) ==

  * As below with 4.7.2
  * Check which are already included if you are using an alpha of 4.8
  * Warning! The new MPIR spkg in 4.8.alpha0 does not seem to work.

 === Cygwin prereqs ===
  * Be sure to install `file`, `liblapack`, `liblapack0`, `liblapack-
 devel`.
  * Also need `libiconv` and `openssl` and `openssl-devel`.
  * Might as well install `libgc-devel` - although it's not needed to
 build, it probably is to start.
  * Since we will go with #11232, install `patch`.
  * On Windows 7 (or both) install `libncurses-devel`.
  * Don't forget `fortran`.
  * Make sure you download all `gcc` and `g++` so the versions match (in
 this case, gcc4 is the type we want).
  * We also need make and perl
  * m4 is currently needed because of the prereq script, but once #12112 is
 closed, it won't be.
  * Just to make sure, avoid building in home directories of Windows domain
 users, as they are treated in a special way by Windows (and Cygwin).
 Probably also it's a good idea that all the pathnames do not contain
 capital letters (Windows is case-insensitive in this way, unlike Unices),
 spaces, etc.
  * Also, '''don't forget to''' {{{export SAGE_PORT=yes}}}!

 === Spkgs ===
  *
 
[http://boxen.math.washington.edu/home/jdemeyer/spkg/ecl-11.1.2.cvs20111120.p0.spkg
 ecl-11.1.2.cvs20111120.p0.spkg], #11884
  *
 [http://sage.math.washington.edu/home/leif/Sage/spkgs/maxima-5.23.2.p2.spkg
 maxima-5.23.2.p2.spkg], #11966
  * [http://sage.math.washington.edu/home/kcrisman/cddlib-094f.p9.spkg
 cddlib-094f.p9.spkg],
 [http://sage.math.washington.edu/home/dima/packages/networkx-1.2.p2.spkg
 networkx-1.2.p2.spkg] #11245
  * [http://sage.math.washington.edu/home/kcrisman/singular-3-1-3-3.p2.spkg
 singular-3-1-3-3.p2.spkg], #12089
  * [http://sage.math.washington.edu/home/kcrisman/twisted-9.0.p3.spkg
 twisted-9.0.p3.spkg], #11497 (appears to be not necessary any more---but
 YMMV)

 This should then work 'out of the box', modulo rebasing issues (see
 [wiki:CygwinPort]).

 If you are using 4.8.alpha0 or later, you will probably run into
  * #12115 - MPIR isn't building.  There is a functioning spkg at that
 ticket, but we are waiting on whether there is a better change available.

 See [wiki:CygwinPort the wiki] for other details.

 ----

 Much older info, archived:

 I have put a binary of my Cygwin build here:

 
http://sage.math.washington.edu/home/wstein/tmp/sage-4.1-cygwin-i686-CYGWIN_NT-5.1.tar.gz

 Things like "`sage -ipython`" and many non-Sage imports work.  Just
 starting Sage doesn't, maybe because of the Sage<-->pynac binding not
 building.

 Required Cygwin packages beyond the usual:

    * GCC 4.3.2
    * `gfortran`
    * `libncurses-devel`
    * `lapack`
    * `openssl-devel`
    * `libiconv` -- needed when building R (and it has to be `libiconv`)

 We need to add a test for '''all''' of the above to the prereq script
 before making the Cygwin port official.

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6743#comment:57>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to