[Mono-osx] Environment variables not set up properly

Francisco Figueiredo Jr. francisco at npgsql.org
Tue May 4 09:11:24 EDT 2010

I think you should uninstall the Ports version you installed.

Mono should be able to compile cleanly from source tar.

Try uninstall Mono Posts version and try using the binary downloaded
from site again.

I hope it helps.

On Mon, May 3, 2010 at 23:10, bmahf <bmahf at hotmail.com> wrote:
> Hi Francisco, thank you so much for your reply.  Yes, I originally installed
> using the 2.6.3_4 dmg install file, and didn't follow the Mono Basics page
> to figure out if my install was good.  I got my MonoDevelop working fine,
> but somehow my environment variables weren't working for compiling, so I
> added the following to my .bash_profile:
> --------------------------------------------------------------------------------------------------------------------
> # Mono specific exports
> MONO_PREFIX=/Library/Frameworks/Mono.framework/Versions/Current
> ## GNOME_PREFIX=/opt/gnome
> export C_INCLUDE_PATH=$MONO_PREFIX/include:$GNOME_PREFIX/include
> export ACLOCAL_PATH=$MONO_PREFIX/share/aclocal
> export PKG_CONFIG_PATH=$MONO_PREFIX/lib/pkgconfig
> --------------------------------------------------------------------------------------------------------------------
> Ended up with major compile problems so I uninstalled and tried MacPorts,
> since I saw places online about installing from DarwinPorts as a fix to such
> problems.  That worked mostly, but had a problem with installing cocoa#.
> Then I just figured out that the Mono people must know best, so I backed out
> of that, reinstalled using the 2.6.4_3 dmg install file, and then followed
> the Mono Basics link to the page for checking out the install.  Then I got
> the following very perplexing error trying to compile the version of
> hello.cs that uses Gtk:
> ------------------------------------------------------------------------------------------------------------------%%%
> mcs -pkg:gtk-sharp-2.0 hello.cs
> dyld: Symbol not found: __cg_DGifGetLine
>  Referenced from:
> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
>  Expected in:
> /Library/Frameworks/Mono.framework/Versions/Current/lib/libGIF.dylib
>  in
> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
> Trace/BPT trap
> --------------------------------------------------------------------------------------------------------------------
> I really don't know how to find out any useful information about the symbol
> __cg_DGifGetLine.  Any ideas?
> Thanks...
> Bruce
> --
> View this message in context: http://mono.1490590.n4.nabble.com/Environment-variables-not-set-up-properly-tp2122429p2124859.html
> Sent from the Mono - OSX mailing list archive at Nabble.com.
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx


Francisco Figueiredo Jr.
Npgsql Lead Developer

More information about the Mono-osx mailing list