[Mono-list] run application from usb
jlawman at jelcom.co.uk
Mon Nov 24 20:08:39 EST 2008
> 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.
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
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.
(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.
xulrunner dev (XPCOM) (1.8)
cairo dev Cannot find lib
gtkhtml 3.8 dev
webkit (nightly build)
Use Boo 'binary'
install MySql.dll (from mysql site)
boo - binary
(set "hal-script" folder)
(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