Having optional package GLPK breaks things for people who try to
install it by mistake.
Simply removing it from the optional repository will break things for
people who still run an old version of Sage, from the
times it was still optional.
Either we decide to drop supporting these users and remove the
optional glpk, or fix install_package(), and probably
optional_packages(), too
to make them version-sensitive.

Dima


On Apr 7, 10:35 am, Dima Pasechnik <dimp...@gmail.com> wrote:
> glpk is a standard spkg.
> Version 4.44, if I am right.
> So you seem to have tried installing an optional glpk version 4.42.
>
> This looks like a case for it to be removed.
>
> I already suggested this a while ago, but got a reply from someone
> that it's OK to keep it.
>
> Dima
>
> On Apr 7, 7:37 am, VictorMiller <victorsmil...@gmail.com> wrote:
>
>
>
> > I got a cython error.  On on a Mac book pro running OSX 10.6 with sage
> > 4.6.2 64 bit:
>
> > cythoning patch/mipGlpk.pyx to patch/mipGlpk.cpp
>
> > Error converting Pyrex file to C:
> > ------------------------------------------------------------
> > ...
> >     # Builds the GLPK version of the problem
> >     build_glp_prob(lp, iocp, self,False,True)
>
> >     glp_write_lp(lp,NULL,filename)
>
> > cdef int build_glp_prob(c_glp_prob * lp, c_glp_iocp * iocp, LP, int
> > log, bool names) except -1:
>
> > ^
> > ------------------------------------------------------------
>
> > /Applications/Sage-4.6.2-OSX-64bit-10.6.app/Contents/Resources/sage/
> > spkg/build/glpk-4.42.p0/patch/mipGlpk.pyx:153:73: 'bool' is not a type
> > identifier
> > building 'sage.numerical.mipGlpk' extension
> > creating build
> > creating build/temp.macosx-10.6-i386-2.6
> > creating build/temp.macosx-10.6-i386-2.6/patch
> > gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -O3 -m64 -Wall -Wstrict-
> > prototypes -I../../../local/include/ -I../../../devel/sage/c_lib/
> > include/ -I/tmp/sage-mac-app/local/include/python2.6 -c patch/
> > mipGlpk.cpp -o build/temp.macosx-10.6-i386-2.6/patch/mipGlpk.o
> > cc1plus: warning: command line option "-Wstrict-prototypes" is valid
> > for C/ObjC but not for C++
> > patch/mipGlpk.cpp:1:2: error: #error Do not use this file, it is the
> > result of a failed Cython compilation.
> > error: command 'gcc' failed with exit status 1
>
> > real    1m39.834s
> > user    0m53.890s
> > sys     0m14.719s
> > sage: An error occurred while installing glpk-4.42.p0
> > Please email sage-develhttp://groups.google.com/group/sage-devel
> > explaining the problem and send the relevant part of
> > of /tmp/sage-mac-app/install.log.  Describe your computer, operating
> > system, etc.
> > If you want to try to fix the problem yourself, *don't* just cd to
> > /tmp/sage-mac-app/spkg/build/glpk-4.42.p0 and type 'make check' or
> > whatever is appropriate.
> > Instead, the following commands setup all environment variables
> > correctly and load a subshell for you to debug the error:
> > (cd '/tmp/sage-mac-app/spkg/build/glpk-4.42.p0' && '/tmp/sage-mac-app/
> > sage' -sh)
> > When you are done debugging, you can type "exit" to leave the
> > subshell.

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to