[Mono-dev] Setup script for installing Mono?

2011-03-15 Thread John Feminella
Has anyone written anything like a setup script with something like:

./parallel-mono-install.sh v2.10.1 --path=/opt/mono

and if so, would they be willing to share? I'm finding it obnoxious to
set up unstable Mono versions on new Ubuntu boxes.
http://sadtrombone.com

~ jf
--
John Feminella
Principal Consultant, BitsBuilder
LI: http://www.linkedin.com/in/johnxf
SO: http://stackoverflow.com/users/75170/
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Can compile but not run simple program with "dynamic x = 100"

2011-02-20 Thread John Feminella
That did it, thanks JB. Ubuntu was defaulting to an older, specific
system mono from the packages instead of `which mono`.
--
John Feminella
Principal Consultant, BitsBuilder
LI: http://www.linkedin.com/in/johnxf
SO: http://stackoverflow.com/users/75170/



On Sun, Feb 20, 2011 at 17:44, Jb Evain  wrote:
> On Sun, Feb 20, 2011 at 11:25 PM, John Feminella  
> wrote:
>> [/tmp]> dmcs -r:System foo.cs && ./foo.exe
>> WARNING: The runtime version supported by this application is unavailable.
>> Using default runtime: v1.1.4322
>
> Looks like whatever you're using to `execute` the assembly is not
> initializing the runtime properly. Try:
>
> dmcs -r:System foo.cs && mono foo.exe
>
> Jb
>
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] csharp REPL bombs after asking for GetType on a dynamic instance

2011-02-20 Thread John Feminella
hello,

I compiled Mono 2.10 from source. When I run the csharp REPL that was
built, certain commands blow up on dynamic types:

 begin snippet 
[/tmp]> csharp
Mono C# Shell, type "help;" for help

Enter statements below.
csharp> dynamic d = 100;

csharp> Console.WriteLine("hello, world!");
hello, world!

# this is fine...
csharp> Console.WriteLine("d's type is: {0}", d.GetType());
d's type is: System.Int32

# but no dice here:
csharp> d.GetType();
Internal compiler error at Internal(1,1):: exception caught while
emitting MethodBuilder [Class3::Host]
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Internal
compiler error: Internal compiler error: Internal compiler error: The
`.' operator cannot be applied to operand of type `dynamic'
  at Microsoft.CSharp.RuntimeBinder.ErrorPrinter.Print
(Mono.CSharp.AbstractMessage msg) [0x0] in :0
  at Mono.CSharp.Report.Error (Int32 code, Location loc, System.String
error) [0x0] in :0
  at Mono.CSharp.Report.Error (Int32 code, Location loc, System.String
format, System.String arg) [0x0] in :0
  at Mono.CSharp.ParametersBlock.Resolve (Mono.CSharp.FlowBranching
parent, Mono.CSharp.BlockContext rc, IMethodData md) [0x0] in
:0
  at Mono.CSharp.MethodData.Emit (Mono.CSharp.DeclSpace parent)
[0x0] in :0
  at Mono.CSharp.MethodOrOperator.Emit () [0x0] in :0
  at Mono.CSharp.Method.Emit () [0x0] in :0
 end snippet 

Any hints on what might be afoot here, or is this a known bug?

~ jf
--
John Feminella
Principal Consultant, BitsBuilder
LI: http://www.linkedin.com/in/johnxf
SO: http://stackoverflow.com/users/75170/
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Can compile but not run simple program with "dynamic x = 100"

2011-02-20 Thread John Feminella
I built Mono 2.10 from source into /opt/mono. All appears to be well,
but I can't actually run anything:

 begin snippet 
[/tmp]> dmcs -r:System foo.cs && ./foo.exe
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v1.1.4322

** (./foo.exe:12205): WARNING **: The following assembly referenced
from /tmp/foo.exe could not be loaded:
 Assembly:   System.Core(assemblyref_index=2)
 Version:4.0.0.0
 Public Key: b77a5c561934e089
The assembly was not found in the Global Assembly Cache, a path listed
in the MONO_PATH environment variable, or in the location of the
executing assembly (/tmp/).
 end snippet 

As nearly as I can tell, the assembly *is* in the GAC:

 begin snippet 
[~]> gacutil -l | grep 'System.Core'
System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
 end snippet 

Any hints on what I'm doing wrong?

 begin snippet 
[/tmp]> cat foo.cs
using System;

public class Program {
  public static void Main(String[] args) {
dynamic a = 100;
Console.WriteLine("hello, world!");
Console.WriteLine("value of a is {0}", a);
  }
}
 end snippet 
--
John Feminella
Principal Consultant, BitsBuilder
LI: http://www.linkedin.com/in/johnxf
SO: http://stackoverflow.com/users/75170/
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Trouble compiling tag 2.8.2

2011-02-18 Thread John Feminella
Thanks, Zoltan. I don't see a 2.10 tag, though; is the tip of the 2.10
branch the right place to be?

~ jf
--
John Feminella
Principal Consultant, BitsBuilder
LI: http://www.linkedin.com/in/johnxf
SO: http://stackoverflow.com/users/75170/



On Fri, Feb 18, 2011 at 10:46, Zoltan Varga  wrote:
> Hi,
>   You should try the recently released 2.10.
>                 Zoltan
>
> On Fri, Feb 18, 2011 at 4:24 PM, John Feminella 
> wrote:
>>
>> hello Mono-ers,
>>
>> I'm unable to compile the 2.8.2 tag, which I'm looking to do so I can
>> get C# v4-level support and access to `dynamic`. My uname -a is:
>>
>> [/tmp/mono]> uname -a
>> Linux genesis 2.6.32-27-generic #49-Ubuntu SMP Thu Dec 2 00:51:09 UTC
>> 2010 x86_64 GNU/Linux
>>
>> I wanted BigArrays and parallel-mark, so I compiled with:
>>
>> ./autogen.sh --prefix=/opt --enable-big-arrays --enable-parallel-mark
>>
>> cc fails on libmono_2_0_la-mini-amd64.lo:
>>
>> [...]
>> CC        libmono_2_0_la-debug-debugger.lo
>> CC        libmono_2_0_la-xdebug.lo
>> CC        libmono_2_0_la-mini-amd64.lo
>> make[4]: *** [libmono_2_0_la-mini-amd64.lo] Error 1
>> make[4]: Leaving directory `/tmp/mono/mono/mini'
>> make[3]: *** [all] Error 2
>> make[3]: Leaving directory `/tmp/mono/mono/mini'
>> make[2]: *** [all-recursive] Error 1
>> make[2]: Leaving directory `/tmp/mono/mono'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/tmp/mono'
>> make: *** [all] Error 2
>>
>> This is on commit 84570ff in the git repo. Thoughts?
>>
>> ~ jf
>> --
>> John Feminella
>> Principal Consultant, BitsBuilder
>> LI: http://www.linkedin.com/in/johnxf
>> SO: http://stackoverflow.com/users/75170/
>> ___
>> Mono-devel-list mailing list
>> Mono-devel-list@lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Trouble compiling tag 2.8.2

2011-02-18 Thread John Feminella
hello Mono-ers,

I'm unable to compile the 2.8.2 tag, which I'm looking to do so I can
get C# v4-level support and access to `dynamic`. My uname -a is:

[/tmp/mono]> uname -a
Linux genesis 2.6.32-27-generic #49-Ubuntu SMP Thu Dec 2 00:51:09 UTC
2010 x86_64 GNU/Linux

I wanted BigArrays and parallel-mark, so I compiled with:

./autogen.sh --prefix=/opt --enable-big-arrays --enable-parallel-mark

cc fails on libmono_2_0_la-mini-amd64.lo:

[...]
CClibmono_2_0_la-debug-debugger.lo
CClibmono_2_0_la-xdebug.lo
CClibmono_2_0_la-mini-amd64.lo
make[4]: *** [libmono_2_0_la-mini-amd64.lo] Error 1
make[4]: Leaving directory `/tmp/mono/mono/mini'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/tmp/mono/mono/mini'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/mono/mono'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/mono'
make: *** [all] Error 2

This is on commit 84570ff in the git repo. Thoughts?

~ jf
--
John Feminella
Principal Consultant, BitsBuilder
LI: http://www.linkedin.com/in/johnxf
SO: http://stackoverflow.com/users/75170/
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] sh#

2010-04-10 Thread John Feminella
I'm not an expert on language design, but I'm an extensive user of
scripting languages with relatively deep knowledge into how the
alternatives work. I'd be glad to help in whatever way makes the most
sense for the project, and I'd certainly be able to provide feedback
about using it in a real-world environment.

~ jf
--
John Feminella
Principal Consultant, Distilled Brilliance



On Sat, Apr 10, 2010 at 12:52, Jerry Maine - KF5ADY
 wrote:
> How many people are wanting to help me on this project?
>
> Joe Dluzen wrote:
>
> I was working on* just this project. I toyed with the standard Ironing
> of the names, IronBash or maybe bash4.net. I'd love to see this too.
> Would be nice to use it as a drop in replacement for boot,
> compilation, everything. Auto generate and save an assembly... oh the
> possibilities.
>
> Joe
>
> *: Just initial research, nothing written. Too many things, too little time.
> :(
>
>
>
> What does everyone think about making a new dlr script language that is
> compatible with sh or bash? Maybe called sh#?
>
>
> ___
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
> ___
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Not sure if this is a bug

2010-02-03 Thread John Feminella
You may have to escape spaces in the path. Did you try escaping
all instances of " " with "\ " (that's a backslash, then a space)?
--
John Feminella
Principal Consultant, Distilled Brilliance

On Tue, Feb 2, 2010 at 15:24, Paul  wrote:
> Hi,
>
> Using md-2.2 and mono-2.6.1 (fedora rawhide).
>
> Under .NET 3.5, the following works fine. Under mono, it's returning
> that the file can't be opened despite it pointing at the correct place
>
> public void dotheread()
>                {
>                        try
>                        {
>                                string path_env = 
> Path.GetDirectoryName(Application.ExecutablePath)
> + Path.DirectorySeparatorChar;
>                                Stream stream = File.Open(path_env + 
> "elements.ele",
> FileMode.Open);
>                                BinaryFormatter bf = new BinaryFormatter();
>                                var elementgo = 
> (List)bf.Deserialize(stream);
>                                stream.Close();
>                        }
>                        catch(System.IO.FileNotFoundException)
>                        {
>                                string m = "Unable to find the elements 
> information file : using " +
> Path.GetDirectoryName(Application.ExecutablePath) +
> Path.DirectorySeparatorChar + "elements.ele";
>                                MessageBox.Show(m, "File not found", 
> MessageBoxButtons.OK);
>                        }
>                }
>
> The error box returns
>
> "Unable to find the elements information file : using /media/USB
> DISK/molarity/bin/Debug/elements.ele"
>
> The file is stored in /media/USB DISK/molarity/bin/Debug/elements.ele -
> not sure if the problem is that there is a space between USB and DISK
> which could cause an issue.
>
> Any ideas?
>
> TTFN
>
> Paul
>
> --
> Sie können mich aufreizen und wirklich heiß machen!
>
> ___
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Mono on Android: state of the union?

2010-01-31 Thread John Feminella
Around this time last year, Koushik Dutta and Marc Crichton were doing
some cool stuff with Mono on Android, demonstrating a complete working
stack and running DLR examples from a simple command prompt. Since
then, however, I've had a lot of trouble finding more recent
information about what's been happening.

See, e.g.:

* http://www.koushikdutta.com/2009/01/mono-on-android-with-gratuitous-shaky.html
* http://www.koushikdutta.com/2009/01/dalvik-vs-mono.html
* http://www.koushikdutta.com/2009/01/building-mono-for-android.html

If I wanted to write something in C# today and have it run on Mono on
my Android device, what's the easiest way to do this?

~ jf

P.S. I mistakenly sent this to mono-docs-list first. Apologies for the
crosspost.
--
John Feminella
Principal Consultant, Distilled Brilliance
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list