[Mono-osx] Environment variables not set up properly

bmahf bmahf at hotmail.com
Sat May 1 19:03:10 EDT 2010


Hi all,  new to Mono.  I downloaded and installed on my macbook pro (10.6.2
Snow Leopard) using the file MonoFramework-2.6.3_4.macos10.novell.x86.dmg. 
I then installed MonoDevelop using xMonoDevelop-2.2.2-r154001.dmg.  I seem
to be fine running inside MonoDevelop, but would really like to be able to
build and run on the command line too.

Turns out that my .bash_profile file didn't have any environment variables
being set, so I found the following online and put it into the .bash_profile
file:

---------Added to .bash_profile-------------------------
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 #
:$GNOME_PREFIX/lib/pkgconfig
PATH=$MONO_PREFIX/bin:$PATH
---------End of Added to .bash_profile-------------------------

(not sure about whether gnome is installed, so commented that out) and now
it can compile, but I can't run a program that I created and built inside
MonoDevelop using "mono <program_name>".  Because of this, I am not sure
what else is missing in my environment.

A call to env gives me the following:

----------Output of env------------------------------
TERM_PROGRAM=Apple_Terminal
TERM=xterm-color
SHELL=/bin/bash
TMPDIR=/var/folders/CX/CXcEsERFGYeA8-Clp6hRFE+++TI/-Tmp-/
Apple_PubSub_Socket_Render=/tmp/launch-gnM4db/Render
TERM_PROGRAM_VERSION=273
OLDPWD=/Users/bruce/Projects/Mono/GtkSharp
ANT_HOME=/usr/local/ant
USER=bruce
COMMAND_MODE=unix2003
SSH_AUTH_SOCK=/tmp/launch-tSloFt/Listeners
__CF_USER_TEXT_ENCODING=0x1F5:0:0
PATH=.:/opt/subversion/bin:.:/opt/subversion/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/Trolltech/Qt-4.5.1/bin:/usr/local/ant/bin:/usrlocal/bin:/usr/local/Trolltech/Qt-4.5.1/bin:/usr/local/ant/bin:/usr/local/bin:/usr/bin
PWD=/Users/bruce
EDITOR=/usr/bin/vi
LANG=en_US.UTF-8
SHLVL=1
HOME=/Users/bruce
LOGNAME=bruce
DISPLAY=/tmp/launch-FhiBhj/org.x:0
_=/usr/bin/env
----------End of Output of env------------------------------

Any ideas?  I would really like to get command line compilation running.  To
me, MonoDevelop is like training wheels, but when I get to understand what
I'm doing, I would like to move to using TextWrangler as an editor, and just
doing command line compilation and running.

Thanks for any help...
Bruce

-- 
View this message in context: http://mono.1490590.n4.nabble.com/Environment-variables-not-set-up-properly-tp2122429p2122429.html
Sent from the Mono - OSX mailing list archive at Nabble.com.


More information about the Mono-osx mailing list