ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 23 Oct 2012 02:13:35 -0500Installation problems on MacOshttp://ask.sagemath.org/question/7915/installation-problems-on-macos/hi all,
I've downloaded the sage binary package for macos (dmg, 4.6.1) and moved the sage folder to the /Applications/ one. Every time I run sage, I have a problem with libgd/libiconv:
ImportError: dlopen(/Applications/sage/local/lib/python2.6/site-packages/sage/matrix/matrix_mod2_dense.so, 2): Symbol not found: _iconv
Referenced from: /Applications/sage/local/lib//libgd.2.dylib
Expected in: /opt/local/lib//libiconv.2.dylib
in /Applications/sage/local/lib//libgd.2.dylib
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.
But the /opt/local/lib//libiconv.2.dylib exists.
If I try to compile from the sources (make), I have plenty of such errors.
Is there any workaround ?
Mon, 31 Jan 2011 09:53:20 -0600http://ask.sagemath.org/question/7915/installation-problems-on-macos/Comment by kcrisman for <p>hi all,</p>
<p>I've downloaded the sage binary package for macos (dmg, 4.6.1) and moved the sage folder to the /Applications/ one. Every time I run sage, I have a problem with libgd/libiconv:</p>
<p>ImportError: dlopen(/Applications/sage/local/lib/python2.6/site-packages/sage/matrix/matrix_mod2_dense.so, 2): Symbol not found: _iconv
Referenced from: /Applications/sage/local/lib//libgd.2.dylib
Expected in: /opt/local/lib//libiconv.2.dylib
in /Applications/sage/local/lib//libgd.2.dylib
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.</p>
<p>But the /opt/local/lib//libiconv.2.dylib exists.</p>
<p>If I try to compile from the sources (make), I have plenty of such errors.</p>
<p>Is there any workaround ?</p>
http://ask.sagemath.org/question/7915/installation-problems-on-macos/?comment=22204#post-id-22204Just out of curiosity, what version/processor of Mac OS do you have? Probably this is irrelevant, but it's worth knowing.Wed, 02 Feb 2011 06:48:02 -0600http://ask.sagemath.org/question/7915/installation-problems-on-macos/?comment=22204#post-id-22204Answer by DSM for <p>hi all,</p>
<p>I've downloaded the sage binary package for macos (dmg, 4.6.1) and moved the sage folder to the /Applications/ one. Every time I run sage, I have a problem with libgd/libiconv:</p>
<p>ImportError: dlopen(/Applications/sage/local/lib/python2.6/site-packages/sage/matrix/matrix_mod2_dense.so, 2): Symbol not found: _iconv
Referenced from: /Applications/sage/local/lib//libgd.2.dylib
Expected in: /opt/local/lib//libiconv.2.dylib
in /Applications/sage/local/lib//libgd.2.dylib
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.</p>
<p>But the /opt/local/lib//libiconv.2.dylib exists.</p>
<p>If I try to compile from the sources (make), I have plenty of such errors.</p>
<p>Is there any workaround ?</p>
http://ask.sagemath.org/question/7915/installation-problems-on-macos/?answer=12051#post-id-12051Compiling from source should work, but let's see if we can get a binary install going first..
Sage shouldn't be getting confused by libraries in /opt/local. Could you check your environment variables, in particular anything ending with LD_LIBRARY_PATH, and make sure that /opt/local/lib isn't there by mistake?
I have /opt/local/lib/libiconv.2.dylib too, and managed to reproduce this error by typing (in bash)
export LD_LIBRARY_PATH="/opt/local/lib"
and to make it go away by removing it.Mon, 31 Jan 2011 13:28:27 -0600http://ask.sagemath.org/question/7915/installation-problems-on-macos/?answer=12051#post-id-12051Answer by csoeger for <p>hi all,</p>
<p>I've downloaded the sage binary package for macos (dmg, 4.6.1) and moved the sage folder to the /Applications/ one. Every time I run sage, I have a problem with libgd/libiconv:</p>
<p>ImportError: dlopen(/Applications/sage/local/lib/python2.6/site-packages/sage/matrix/matrix_mod2_dense.so, 2): Symbol not found: _iconv
Referenced from: /Applications/sage/local/lib//libgd.2.dylib
Expected in: /opt/local/lib//libiconv.2.dylib
in /Applications/sage/local/lib//libgd.2.dylib
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.</p>
<p>But the /opt/local/lib//libiconv.2.dylib exists.</p>
<p>If I try to compile from the sources (make), I have plenty of such errors.</p>
<p>Is there any workaround ?</p>
http://ask.sagemath.org/question/7915/installation-problems-on-macos/?answer=14174#post-id-14174I had the same problem.
`echo $LD_LIBRARY_PATH` gave `/opt/local/lib`
`export LD_LIBRARY_PATH=""` solved the problem.Tue, 23 Oct 2012 02:13:35 -0500http://ask.sagemath.org/question/7915/installation-problems-on-macos/?answer=14174#post-id-14174