Ask Your Question
1

Installation problems on MacOs

asked 14 years ago

dcoeurjo gravatar image

updated 13 years ago

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

Preview: (hide)

Comments

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 ( 14 years ago )

2 Answers

Sort by » oldest newest most voted
3

answered 14 years ago

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.

Preview: (hide)
link
0

answered 12 years ago

csoeger gravatar image

I had the same problem.

echo $LD_LIBRARY_PATH gave /opt/local/lib

export LD_LIBRARY_PATH="" solved the problem.

Preview: (hide)
link

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 14 years ago

Seen: 867 times

Last updated: Oct 23 '12