Saturday, March 24, 2012

Mono 2.11 binary build for Synology 2.11

I have put up a build of Mono 2.11 for Synology DS211, so you can install it without compiling everything yourself. Simply download the archive and then run this:

tar -xvf mono-synology-ds211-2.11.tar.bz2
cp -R opt/mono-2.11 /opt/mono-2.11
Or use the one-line version:

tar -C / -xvf mono-synology-ds211-2.11.tar.bz2

This will install everything in /opt/mono-2.11, you can set up symlinks like this:

ln -s /opt/mono-2.11/bin/mono /opt/bin/mono
ln -s /opt/mono-2.11/bin/mcs /opt/bin/mcs
ln -s /opt/mono-2.11/bin/gmcs /opt/bin/gmcs

I have also put up a build of Mono 2.10.9 for Synology DS211, in case Mono 2.11 turns out to be too alpha. You can have both installed at the same time, just change the symlinks to fit.

20 comments:

Michael Wittmann said...

Hi Kenneths,

thanks for your detailed build description. While waiting for the make command to finish, i have just two small additions:

1.
I had to install 'gettext' too. It was necessary for configure. So it should be added in the ipkg install part

2.
in the pthreads part you added a cd command. Before starting make, you must cd back to the mono 2.11 directory otherwise make is unknow

Michael

Kenneth said...

Thanks for the info Michael.

I have updated the post to include gettext in the install command.

The "cd" was not needed actually because the paths are absolute, so I have deleted that.

Anonymous said...

Sweet! Thanks for this

Daniel Leykauf said...

Hi Kenneth,

Thanks for sharing the binary build then the 'make install' failed; now it is working fine on my DS112+!

Cloud> /opt/mono-2.11/bin/mcs /volume1/public/helloworld.cs
Cloud> /opt/mono-2.11/bin/mono /volume1/public/helloworld.exe
Hello World

Christophe said...

Hi,

Thanks for this binary however the link is no longer valid. Could you repost it?

Thank you by advance.

Christophe said...

Hi,

Thanks for this binary however the link is no longer valid. Could you repost it?

Thank you by advance.

Kenneth said...

Sure, I have placed it a bit more permanently here:
https://dl.dropbox.com/u/15251537/mono-2.11.0.tar.bz2

You should know that Synology DSM now includes Mono as a package from within the package manager, so most people should not use my build, as the package manager takes care of autoupdating and works across all models.

Chris said...

Kenneth, many thanks for your posts on running Mono on Synology boxes. Before attempting to build from source I saw your comment on Mono being available from the package manager, but I can't see it. Do you mean in the 'Community' section, and if so what repository URL should I use to get it?

Kenneth said...

It is listed under "others":
http://www.synology.com/dsm/dsm_app.php

In DSM 4.2 you need to enable beta-sources to see it.

Chris said...

Got it - many thanks for your help. Settings > Channel update > Beta channel

Alwin Hummels said...

Does mono v3.2.x also work on a Synology? Of THE answer is yes dan/Will you help me?

Alwin Hummels said...

Does mono 3.2.x also work on a Synology?
If yes can someone help me getingel that work on my DS213 or DS109+
Tanks a lot.

Kenneth said...

I have not tried 3.2 on Synology, but it should work.

PY said...

Hi Kenneth,

With the Mono version in Synology's Package Manager, I'm facing an issue which another user solved by following your instructions [1].

Since link in Comment #7 only points to the mono-project sources, could you please provide new link to the version you compiled?

PY said...

Sorry, link [1] added here
http://forum.xbmc.org/showthread.php?tid=166207&pid=1536261#pid1536261

Kenneth said...

I messed up the links. The links should now point to my hosted version of the binaries for both 2.10.9 and 2.11.0.

I am currently building a 3.2.3, if it works out, I will post a new link for that as well.

PY said...

Where to find the new links?

The link in your post [2] still points to the sources. Same md5sum (8f31f366da9f7e4b69ee23e8bf5b6b3d) as the file on mono-project.

[2] https://dl.dropboxusercontent.com/u/15251537/mono-2.11.0.tar.bz2
[3] http://download.mono-project.com/sources/mono/mono-2.11.0.tar.bz2

Kenneth said...

Arh, I had the archives in the build folder, so I published the sources, instead of the builds.

I will update the link to the 2.11 binaries.

I don't have a build for 2.10.9 anymore, and 3.2.3 depends on some GCC features that are not found in the GCC version found on the Synology box, so I will not be posting that right now.

Kenneth said...

The link for 2.11 should now point to the binaries.

Kenneth said...

I've posted a follow up, now that I finally managed to get 3.2.3 built: http://blog.hexad.dk/2013/11/mono-323-on-synology-ds210.html