Ask Your Question

Revision history [back]

can't install lrslib

I'm on OSX 10.11.6.

sage -version
SageMath version 7.2, Release Date: 2016-05-15

I'm trying to install the package lrslib using

sage -i lrslib

real    0m10.849s
user    0m9.633s
sys 0m0.907s
Successfully installed lrslib-051
Running the test suite for lrslib-051...
lrs ext/test/cut16_11.ext > testout1
echo `grep -G Volume testout1` > testout1
echo "*Volume= 32768/14175" > testout2
diff testout1 testout2
lrs ine/test/cyclic17_8.ine > testout1
echo `grep -G Totals testout1` > testout1
echo "*Totals: vertices=935 rays=0 bases=935 integer_vertices=0" > testout2
diff testout1 testout2
rm testout1
rm testout2

real    0m0.101s
user    0m0.065s
sys 0m0.027s
Deleting temporary build directory
/Applications/SageMath-7.2.app/Contents/Resources/sage/local/var/tmp/sage/build/lrslib-051
Finished installing lrslib-051.spkg

real    1m20.160s
user    0m55.896s
sys 0m19.371s
Sage build/upgrade complete!

It seems to install successfully, however when I go to run sage I get the following error and crashlog:

***************************************************************************

IPython post-mortem report

{'commit_hash': u'44136e4',
 'commit_source': 'installation',
 'default_encoding': 'UTF-8',
 'ipython_path': '/Applications/SageMath-7.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/IPython',
 'ipython_version': '4.1.2',
 'os_name': 'posix',
 'platform': 'Darwin-15.6.0-x86_64-i386-64bit',
 'sys_executable': '/Applications/SageMath-7.2.app/Contents/Resources/sage/local/bin/python',
 'sys_platform': 'darwin',
 'sys_version': '2.7.10 (default, Jun  9 2016, 11:40:29) \n[GCC 4.9.3]'}

***************************************************************************



***************************************************************************

Crash traceback:

---------------------------------------------------------------------------
---------------------------------------------------------------------------
ImportErrorPython 2.7.10: /Applications/SageMath-7.2.app/Contents/Resources/sage/local/bin/python
                                                   Wed Aug  3 12:05:41 2016
A problem occurred executing Python code.  Here is the sequence of function
calls leading up to the error, with the most recent (innermost) call last.
/Applications/SageMath-7.2.app/Contents/Resources/sage/src/bin/sage-ipython in <module>()
      1 #!/usr/bin/env python
      2 # -*- coding: utf-8 -*-
      3 """
      4 Sage IPython startup script.
      5 """
      6 
      7 # Install extra readline commands before IPython initialization
      8 from sage.repl.readline_extra_commands import *
      9 
     10 from sage.repl.interpreter import SageTerminalApp
     11 
     12 app = SageTerminalApp.instance()
---> 13 app.initialize()
        global app.initialize = <bound method SageTerminalApp.initialize of <sage.repl.interpreter.SageTerminalApp object at 0x1032dc390>>
     14 app.start()

<decorator-gen-111> in initialize(self=<sage.repl.interpreter.SageTerminalApp object>, argv=None)

/Applications/SageMath-7.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/traitlets/config/application.py in catch_config_error(method=<function initialize>, app=<sage.repl.interpreter.SageTerminalApp object>, *args=(None,), **kwargs={})
     59 

....
....
....

/Applications/SageMath-7.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/misc/functional.py in <module>()
     15 #*****************************************************************************
     16 #       Copyright (C) 2004 William Stein <------------->
     17 #
     18 # This program is free software: you can redistribute it and/or modify
     19 # it under the terms of the GNU General Public License as published by
     20 # the Free Software Foundation, either version 2 of the License, or
     21 # (at your option) any later version.
     22 #                  -------------
     23 #*****************************************************************************
     24 
     25 import sage.misc.latex
     26 import sage.interfaces.expect
     27 import sage.interfaces.mathematica
     28 
     29 
---> 30 from sage.rings.complex_double import CDF
        global sage.rings.complex_double = undefined
        global CDF = undefined
     31 from sage.rings.real_double import RDF, RealDoubleElement
     32 
     33 import sage.rings.real_mpfr
     34 import sage.rings.complex_field
     35 import sage.rings.integer
     36 
     37 import __builtin__
     38 
     39 LOG_TEN_TWO_PLUS_EPSILON = 3.321928094887363 # a small overestimate of log(10,2)
     40 
     41 ##############################################################################
     42 # There are many functions on elements of a ring, which mathematicians
     43 # usually write f(x), e.g., it is weird to write x.log() and natural
     44 # to write log(x).  The functions below allow for the more familiar syntax.
     45 ##############################################################################

ImportError: dlopen(/Applications/SageMath-7.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/rings/complex_double.so, 2): Symbol not found: _gsl_complex_abs
  Referenced from: /Applications/SageMath-7.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/rings/complex_double.so
  Expected in: flat namespace
 in /Applications/SageMath-7.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/rings/complex_double.so

***************************************************************************

This happens even after a clean install (from binary) of Sage. Any help would be greatly appreciated. Thanks!