Koozali.org: home of the SME Server
Contribs.org Forums => General Discussion => Topic started by: Jáder on October 15, 2011, 02:33:45 PM
-
I'll need to install mono 2.10 (latest as today) to test a C# system on a new SME8.
I have been able to locate rpm and install them on SME8. but that's all... I'm lost and not sure even if it's working.
To anyone willing to help using this on a TEST SERVER running SME8:
1) download rpms from mono site (http://ftp.novell.com/pub/mono/download-stable/RHEL_5/i386/ and http://ftp.novell.com/pub/mono/download-stable/RHEL_5/noarch/) or from my own server (http://guepardo.marasca.net.br/mono210/)
2) install using:
yum localinstall \
mono-addon-core-2.10.2-5.1.i386.rpm \
mono-addon-data-2.10.2-5.1.i386.rpm \
mono-addon-data-sqlite-2.10.2-5.1.i386.rpm \
mono-addon-web-2.10.2-5.1.i386.rpm \
mono-addon-debugger-2.10-6.11.i386.rpm \
mono-addon-xsp-2.10-5.7.noarch.rpm \
mod_mono-addon-2.10-6.9.i386.rpm
3) follow instructions from http://wiki.contribs.org/Mono about to modify apache
4) restart apache using: service httpd-e-smith restart
now tell me how to verify it's working! :)
I did this:
1) create an ibay name "mono"
2) copy test content to there:
cp -r /opt/novell/mono/lib/xsp/test/* /home/e-smith/files/ibays/mono/html/
3) tryed to access using browser: http://<myserver_ip>/mono/
and got an error:
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
so it appears to be nott working ! :(
I search http error.log and found this:
[Sat Oct 15 09:29:51 2011] [notice] Apache configured -- resuming normal operations
[Sat Oct 15 09:30:35 2011] [error] Failed running '/usr/bin/mod-mono-server2 --filename /tmp/mod_mono_server_global --nonstop --master (null) (null) (null) (null) (null) (null) (null) (null)'. Reason: No such file or directory
[Sat Oct 15 09:30:37 2011] [error] Failed running '/usr/bin/mod-mono-server2 --filename /tmp/mod_mono_server_global --nonstop --master (null) (null) (null) (null) (null) (null) (null) (null)'. Reason: No such file or directory
[Sat Oct 15 09:30:39 2011] [error] Failed running '/usr/bin/mod-mono-server2 --filename /tmp/mod_mono_server_global --nonstop --master (null) (null) (null) (null) (null) (null) (null) (null)'. Reason: No such file or directory
[Sat Oct 15 09:30:41 2011] [error] Failed to connect to mod-mono-server after several attempts to spawn the process.
[root@vb-sme8 mono210]#
but it do not help me anymore.
But if I install mono 1.2.4 (old!) this page works:
to install mono 1.2.4 :
yum --enablerepo=extras install mono-core mono-web mono-data mod_mono xsp
and follow instructions from wiki (see above) to modify apache, restart apache and everything appears to work.
after test, to remove mono 1.2.4
[root@vb-sme8 ~]# yum remove mono-core mod_mono
Any help is welcome.
Regards
Jáder
-
I found this post: http://stackoverflow.com/questions/3510320/install-mono-on-centos5-5-using-yum
Making me think you may want to configure the 'mono' repo to point to the RHEL5 versions, and use a slightly different 'yum install' command as shown below:
/sbin/e-smith/db yum_repositories set mono repository \
Name 'Mono 2.x for rhel-5-i386 (stable)' \
BaseURL 'http://ftp.novell.com/pub/mono/download-stable/RHEL_5/' \
EnableGroups no \
GPGCheck yes \
GPGKey http://ftp.novell.com/pub/mono/download-stable/RHEL_5/repodata/repomd.xml.key \
Visible yes \
status disabled
signal-event yum-modify
yum --enablerepo=mono install monotools-addon-server mod_mono-addon mono-addon-wcf
(command-line monoserver ran after installing 'monotools-addon-server', but according to the post referenced I also need 'mod_mono-addon' for html support. The errors I got trying to load the test menu indicated I needed to load 'mono-addon-wcf')
After which you should get happy-looking results fromsource /opt/novell/mono/bin/mono-addon-environment.sh
mono --version
Finally, "If you want the Mono environment to be permanent you can issue the following command.":
cp /opt/novell/mono/bin/mono-addon-environment.sh /etc/profile.d
(I suspect this is irrelevant for web apps)
Now make the custom template fragement - slightly different from the one on the wiki page:mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
echo ' #Template for mod_mono
LoadModule mono_module /usr/lib/httpd/modules/mod_mono.so
AddType application/x-asp-net .aspx
AddType application/x-asp-net .asmx
AddType application/x-asp-net .ashx
AddType application/x-asp-net .asax
AddType application/x-asp-net .ascx
AddType application/x-asp-net .soap
AddType application/x-asp-net .rem
AddType application/x-asp-net .axd
AddType application/x-asp-net .cs
AddType application/x-asp-net .config
AddType application/x-asp-net .Config
AddType application/x-asp-net .dll
DirectoryIndex index.aspx
DirectoryIndex Default.aspx
DirectoryIndex default.aspx
MonoServerPath /opt/novell/mono/bin/mod-mono-server2
' > 20LoadModule80mod_mono
signal-event remoteaccess-update
(mod-mono-server is not located in /usr/bin any more. I suppose you could link to it there instead of changing the template as shown above)
Now make the test application accessible in a browser:mkdir -p /home/e-smith/files/ibays/Primary/html/mono-test
cp -r /opt/novell/mono/lib/xsp/test/* /home/e-smith/files/ibays/Primary/html/mono-test
chown -R admin:shared /home/e-smith/files/ibays/Primary/html/mono-test
(I'm sticking it in the Primary ibay to avoid needing to create an ibay for testing)
After the above steps I get a sample page at http://<smeserver>/mono-test
-
mmccarn
Thank you! Your howto worked like a charm.
I'll put it on wiki (new section below actual one for SME7) and point this thread and give credits to you.
Regards
Jáder
EDIT: Wiki updated: http://wiki.contribs.org/Mono
please review my poor english if you like!:)
-
Hi
Know this is old, but was trying to install it on my SME8, but the repo is gone http://ftp.novell.com/pub/mono/download-stable/RHEL_5/
Anybody know where to get the files?
Frederik
-
I found the info below by fishing through the mono-project 'download' site, looking for versions containing a 'linux' folder:
http://download.mono-project.com/archive/
The latest linux rpms I can find (apparently built for OpenSuse; *possibly* compatible w/ SME) can be found here:
http://download.mono-project.com/archive/3.2.3/linux/x86/
They now use a package installer named 'zypper', with something here that they call 'repositories'. It may be possible to adjust the old instructions to use the address of the 'RHEL_5' folder here to get it to load:
http://download.mono-project.com/archive/2.10.2/download/
Previous Stable Version: 2.10.x
...
Download Mono for openSUSE
This distribution supports installing packages via Zypper. Add the following repository to Zypper:
http://download.mono-project.com/download-stable/openSUSE_11.4
To add the repository, execute the following commands (as root):
zypper addrepo http://download.mono-project.com/download-stable/openSUSE_11.4 mono-stable
zypper refresh --repo mono-stable
zypper dist-upgrade --repo mono-stable
-
Great thanks :)
Will give it a try and report back