[BETA] Mono 2.10.1 runtimes (build03)

Silas Mariusz

rm -rf /
Help us, GOD!
5 Kwiecień 2008
10 213
31
2 324
153
39
Nowy Sącz
forum.qnap.net.pl
QNAP
TS-x77
Ethernet
1 GbE
Before starting
  • Please make sure you have uninstalled the QPKG Mono runtimes first.
  • Install the QPKG: Optware IPKG (Itsy Package Management System).
Notes:
  • These are BETA and currently only contain compiled Mono 2.10.1, libgdiplus 2.10.1 runtimes and apache modules and do NOT contain XSP.
  • libtiff is included in this archive as the one provided by IPKG is out of date.
  • This is NOT supported by QNAP in any way, and I take no responsibility for any damages although I have this running myself so I would consider it safe enough.
  • This installation is NOT easy, and not recommended for someone relatively new to Linux or QNAP devices. If you need help, please post here.
Procedure
  1. Run the following command to make sure mono has all it's requirements:
    Kod:
    ipkg update
    ipkg install glib expat xrender exif
  2. Download this file and copy it to the Public share on your target NAS: QNAP-x86-build03_mono-2.10.1.tar.bz2
  3. SSH into the nas and type the following command:
    Kod:
    find /share -type d -name Public
    which should output something similar to:
    Kod:
    /share/HDA_DATA/Public
  4. Change to that directory by typing the following command:
    Kod:
    cd /the/path/that/was/output
    for example:
    Kod:
    cd /share/HDA_DATA/Public
  5. Type the following commands:
    Kod:
    cd ..
    mkdir addons
    cd addons
    cp ../Public/QNAP-x86-build03_mono-2.10.1.tar.bz2 ./
    tar xvjf ./QNAP-x86-build03_mono-2.10.1.tar.bz2
    cd mono
    rm ./mono.sh
    wget http://dl.dropbox.com/u/24882205/mono.sh
    chmod +x ./mono.sh
    ./mono.sh
  6. Restart your SSH client and run this command:
    Kod:
    mono --version
    and you should see (if you don't please post in this thread for help):
    Kod:
    Mono JIT compiler version 2.10.1 (tarball Wed Mar 16 20:46:05 GMT 2011)
    Copyright (C) 2002-2011 Novell, Inc and Contributors. www.mono-project.com
            TLS:           __thread
            SIGSEGV:       altstack
            Notifications: epoll
            Architecture:  x86
            Disabled:      none
            Misc:          softdebug
            LLVM:          supported, not enabled.
            GC:            Included Boehm (with typed GC and Parallel Mark)
  7. Follow the guidelines at: http://wiki.qnap.com/wiki/Running_Your_ ... at_Startup using method 1 to call mono.sh each time the system has started. You may also want to follow Important notes 3 to make this easier in the future.
Possible trouble with libgdiplus
I had a lot of trouble with libgdiplus not working because it didn't have all it's dependencies and it was making me tear my hair out, if you have the same problem please run:
Kod:
ldd /usr/local/mono/lib/libgdiplus.so
and
Kod:
ldconfig -p | grep libgdiplus
and post the output of both commands here.