Ask Your Question

Installation problems on MacOs

asked 2011-01-31 16:53:20 +0200

dcoeurjo gravatar image

updated 2011-04-28 15:37:54 +0200

Kelvin Li gravatar image

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/, 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 ?

edit retag flag offensive close merge delete


Just out of curiosity, what version/processor of Mac OS do you have? Probably this is irrelevant, but it's worth knowing.

kcrisman gravatar imagekcrisman ( 2011-02-02 13:48:02 +0200 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2011-01-31 20:28:27 +0200

DSM gravatar image

Compiling 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.

edit flag offensive delete link more

answered 2012-10-23 09:13:35 +0200

csoeger gravatar image

I had the same problem.

echo $LD_LIBRARY_PATH gave /opt/local/lib

export LD_LIBRARY_PATH="" solved the problem.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2011-01-31 16:53:20 +0200

Seen: 785 times

Last updated: Oct 23 '12