[Mono-list] run application from usb
johnel
jlawman at jelcom.co.uk
Mon Nov 24 20:08:39 EST 2008
mcnamaragio wrote:
>
> Hello,
>
> Let's say I developed an application using mono and copied compiled file
> on usb drive. Is it possible to have mono on the usb too so that I can run
> my application on any computer even if it doesn't have mono installed. As
> far as I know it is possible to do it with JRE. Is it possible with mono/
>
> Thank you.
>
By coincidence I did something similar tonight!
I compiled the latest release of Mono on my laptop (running Mint Linux 4)
and installed it onto a seperate path (e.g. /media/disk/apps/mono). When I
checked that everything was working (I also installed Banshee & monodevelop)
I then copied everything to a 1Gb SD Card and plugged it into an ASUS eeepc
(also running the same Mint Linux version). I installed a few dependencies
(e.g. xulrunner-1.8 & gtksourceview-1.x), set the paths (e.g. Path, libs)
and then everything runs as normal.
Incidentally I mounted the SD Card at "/media/disk/apps" and the "mono"
folder on the card contains my copied installation.
I also had to set MONO_PATH to point to the "gac" folder.
To summarise:
1) Ensure the destination computer has satisfied dependencies (ideally same
os and version)
2) Copy the mono installation to the destination computer (ensure the paths
are identical)
3) Alter environmental variables (e.g. PATH, MONO_PATH) and edit
ld.so.conf (add an entry for mono libs)
Hope this is helpful
BTW I have included a copy of a basic installation log I created while
compiling and installing Mono.
I used it to track what development libraries I needed to install.
------------------
Mono
export PATH=/media/disk/apps/mono/bin:$PATH
export PKG_CONFIG_PATH=/media/disk/apps/mono/lib/pkgconfig/
export MONO_PATH=/media/disk/apps/mono/lib/mono/gac/
(set Lib path to /media/disk/apps/mono/lib)
Note that '/media/disk/apps/mono//share' is not in the search path
set by the XDG_DATA_HOME and XDG_DATA_DIRS
environment variables, so applications may not
be able to find it until you set them.
libgdiplus
tiff dev
gif dev
jpeg dev
png dev
xlib dev
xrender dev
freetype dev
xft dev
mono-x.xx
bison
glib dev
mono-basic
Installed
gluezilla
gtk+2 dev
NSPR
NSS
xulrunner dev (XPCOM) (1.8)
libxul
libxul0d
xsp-2.0
Installed
mod_mono-2.0
Not Built
gtk-sharp-2.12.5
glade dev
cairo dev Cannot find lib
Build Failed
monodoc
Installed
gtk-sharp-2.10
Installed
gnome-sharp-2.16
art dev
gnomevfs dev
rsvg dev
gtkhtml 3.8 dev
vte dev
libgnomecanvas dev
libgnome dev
libgnomeui dev
libgnomeprint dev
libgnomeprintui dev
libpanelapplet dev
webkit (nightly build)
flex
gperf
libICU dev
libXt dev
libcurl dev
sqlite3 dev
libxslt
webkit-sharp
webkit 1.0
mono-tools
webkit-sharp
gecko-sharp
Installed
gtksourceview-sharp
gtksourceview-1.x dev
nant
Installed
boo
Use Boo 'binary'
ikvmbin
Installed
mono-debugger
Installed
heap-buddy
Installed
mono-addins
Installed
IPCE
Not installed
monodevelop
Installed
monodevelop-database
install MySql.dll (from mysql site)
banshee
gstreamer-base dev
gstreamer-plugins-base dev
dbus-glib dev
ndesk-dbus
ndesk-dbus-glib
boo - binary
taglib dev
lbmtp dev
podsleuth
libiodevice (needed?)
libsgutils
(set "hal-script" folder)
ipodsharp
mono-zeroconf
(no x11 video or karma support)
(Boo support disabled)
------------------------------
--
View this message in context: http://www.nabble.com/run-application-from-usb-tp20667217p20673404.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list