[Mono-osx] Environment variables not set up properly
bmahf
bmahf at hotmail.com
Mon May 3 22:10:36 EDT 2010
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 DYLD_LIBRARY_PATH=$MONO_PREFIX/lib:$DYLD_LIBRARY_PATH
export LD_LIBRARY_PATH=$MONO_PREFIX/lib:$LD_LIBRARY_PATH
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
PATH=$MONO_PREFIX/bin:$PATH
--------------------------------------------------------------------------------------------------------------------
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.
More information about the Mono-osx
mailing list