Re: Unhandled Exception on test compile

"Edward Ned Harvey (mono)" <[email protected]>
Newsgroups gmane.comp.gnome.mono.general
Message-ID <BN3PR0801MB1154A06852EB1211A85CE87AFADA0@BN3PR0801MB1154.namprd08.prod.outlook.com>
> From: [email protected] [mailto:mono-list-
> [email protected]] On Behalf Of k.joatmon
> 
> I installed mono for one purpose, to run duplicati on LINUX. I got errors, so
> I started trying to troubleshoot them and this led me back to it being the
> mono install.  I have searched for the errors on the nabbel site and web in
> general and do not find any clue as to the solution.
> 
> The machine is running CentOS Linux release 7.2.1511 (Core)

What you've described sounds, at least approximately, like you've done things right. In order to help, I just created a fresh new centos7 VM, installed from the centos7 minimal DVD. Here are my exact steps:

sudo yum -y groupinstall base
sudo rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
sudo yum-config-manager --add-repo http://download.mono-project.com/repo/centos/
sudo yum -y install mono-complete
(43 packages)

mono --version

Mono JIT compiler version 4.2.1 (Stable 4.2.1.102/6dd2d0d Thu Nov 12 04:43:41 EST 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            sgen

cat > hello.cs
using System;

public class HelloWorld
{
    static public void Main ()
    {
        Console.WriteLine ("Hello Mono World");
    }
}

mcs hello.cs
ls
hello.cs  hello.exe

mono hello.exe 
Hello Mono World

Works for me. What's different in your system? I tried both on the console text terminal, and ssh'd in from Terminal on OSX. Just in case there was some sort of weird terminal emulation thing messing with Console.

[eharvey@centos7 ~]$ cat /etc/redhat-release 
CentOS Linux release 7.2.1511 (Core) 
[eharvey@centos7 ~]$ uname -a
Linux centos7 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.