right now i'm just using the vi editor. there are a couple of postings in this forum where people mention they're using emacs

with the CAML bindings.

i did use sudo and it did work for me.

By on 1/28/2008 9:51 PM ()

I'm trying to get F# to work on my iMac (OS X 10.4.11). I installed the latest Mono 1.9.1 and F# 1.9.4.17. There are some issues with install-mono.sh. The first few lines install the F# assemblies in the global assembly cache. On my machine it ends up being:

1
/Library/Frameworks/Mono.framework/Versions/1.9.1/lib/mono/gac/

Here are the commands to install the assemblies:

1
2
3
4
5
6
gacutil -i bin/FSharp.Core.dll
gacutil -i bin/FSharp.Core10.dll
gacutil -i bin/FSharp.Compatibility.dll
gacutil -i bin/FSharp.Compatibility10.dll
gacutil -i bin/FSharp.Compiler.dll
gacutil -i bin/FSharp.Compiler10.dll

The next few lines either do not work or do not make much sense to me. I get the error that mono --aot is not supported on this platform. I also don't understand what the purpose of the *10.exe files is or was.

1
2
3
4
5
6
7
8
9
10
11
chmod u+x bin/fscp10.exe
chmod u+x bin/fsi10.exe
chmod u+x bin/fslexp10.exe
chmod u+x bin/fsyaccp10.exe
mono --aot bin/FSharp.Core10.dll
mono --aot bin/FSharp.Compatibility10.dll
mono --aot bin/FSharp.Compiler10.dll
mono --aot bin/fscp10.exe
mono --aot bin/fsi10.exe
mono --aot bin/fsc.exe
mono --aot bin/fsi.exe

When I try running mono fsi.exe, I get this exception:
Unhandled Exception: System.DllNotFoundException: user32.dll

Using the Mono Migration Analyzer (MoMA) on fsc.exe, I see that user32.dll is being called via P/Invoke. Here is the MoMA Report for fsi.exe.

Any ideas on how to get F# Interactive working on Mac OS X?

cheers,
Cameron

By on 6/1/2008 10:40 PM ()

Hi,

Could you try these instructions [link:laurent.le-brun.eu] and tell if you still have problems? I didn't test on a Mac, but it might solve the problem.

At least, it should remove the GetSystemMetrics/user32.dll error.

Laurent.

By on 6/2/2008 8:18 AM ()

Thank you for the excellent post. I'm making progress, but still having a bit of difficulty trying to get fsi to behave. When I run your command:

1
2
3
4
5
6
cd 
mono --runtime=v2.0.50727 ../../bin/fscp10.exe --define CLI_AT_LEAST_2_0 --no-warnings -O3 -g \
-r ../../bin/FSharp.Compiler.dll \
-r ../../bin/FSharp.Compiler.Server.Shared.dll \
-r ../../bin/FSharp.Compiler.Interactive.Settings.dll \
../absil/ilreflect.fs console.fs fsi.fs -o ../../bin/new-fsi.exe

It does create the new exe, it claims to be missing the absilsuppc.dll.

1
2
3
4
5
6
7
8
9
10
iMac:~/net/FSharp-1.9.4.17/source/fsharp ctaggart$ mono --runtime=v2.0.50727 ../../bin/fscp10.exe --define CLI_AT_LEAST_2_0 --no-warnings -O3 -g \
> -r ../../bin/FSharp.Compiler.dll \
> -r ../../bin/FSharp.Compiler.Server.Shared.dll \
> -r ../../bin/FSharp.Compiler.Interactive.Settings.dll \
> ../absil/ilreflect.fs console.fs fsi.fs -o ../../bin/new-fsi.exe
*** Warning: Error while writing PDB file or debug directory entry: System.DllNotFoundException: absilsuppc.dll
  at (wrapper managed-to-native) IlsuppSupport:pdbWriteInitialize (string,string,bool,int,intptr&,intptr&)
  at Microsoft.Research.AbstractIL.Internal.Support.pdbInitialize (System.String s1, System.String s2, Int32 versionHint) [0x00000] 
  at Microsoft.Research.AbstractIL.BinaryWriter.write_pdb_info (Microsoft.FSharp.Core.Option1 desiredMetadataVersionOpt, Boolean fixupOverlappingSequencePoints, System.String f, System.String fpdb, Microsoft.Research.AbstractIL.pdb_data info) [0x00000] 
  at Microsoft.Research.AbstractIL.BinaryWriter.write_binary_internal$cont@4233@4233 (System.String outfile@4233, Microsoft.FSharp.Core.Option1 desiredMetadataVersionOpt@4233, Boolean fixupOverlappingSequencePoints@4233, Int32 timestamp@4233, Microsoft.Research.AbstractIL.chunk debug_datap@4233, Microsoft.Research.AbstractIL.chunk debug_directoryp@4233, Microsoft.Research.AbstractIL.pdb_data pdb_data@4233, Microsoft.FSharp.Core.FastFunc2 textV2P@4233, System.String fpdb@4233) [0x00000] 

So of course I add the dll, but get this:

1
2
3
4
5
6
7
8
iMac:~/net/FSharp-1.9.4.17/source/fsharp ctaggart$ mono --runtime=v2.0.50727 ../../bin/fscp10.exe --define CLI_AT_LEAST_2_0 --no-warnings -O3 -g \
> -r ../../bin/FSharp.Compiler.dll \
> -r ../../bin/FSharp.Compiler.Server.Shared.dll \
> -r ../../bin/FSharp.Compiler.Interactive.Settings.dll \
> -r ../../bin/absilsuppc.dll \
> ../absil/ilreflect.fs console.fs fsi.fs -o ../../bin/new-fsi.exe

FS0192: /Users/ctaggart/net/FSharp-1.9.4.17/source/fsharp/../../bin/absilsuppc.dll: bad cli header, rva 0

I'm not sure what that means. Any ideas?

Cameron

By on 6/2/2008 11:29 PM ()

Hi,

I've seen this message too. What happens if you just ignore it and try to run new-fsi.exe?

Laurent.

By on 6/3/2008 3:57 AM ()

What happens if you just ignore it and try to run new-fsi.exe?

When I run "mono bin/new-fsi.exe", it behaves oddly. I can't hit the backspace/delete button to go back which makes it impossible for me to use.

(I wish this forum would actually send out the emails when you subscribe to threads.)

By on 6/3/2008 10:03 PM ()

Try to run fsi with the "--readline" flag. For some reason it's disable by default on mono, but you should use it (or call fsi from a software like Emacs).

Laurent.

By on 6/4/2008 5:40 PM ()

Try to run fsi with the "--readline" flag. For some reason it's disable by default on mono, but you should use it (or call fsi from a software like Emacs).

That was worth a shot. I tried it and feels like it almost worked. I seems to behave better. Below is the results of me launching F# Interactive and typing 'a' 'b' 'c' delete delete delete "#quit;;".

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
iMac:~/net/FSharp-1.9.4.17 ctaggart$ mono bin/new-fsi.exe --readline

MSR F# Interactive, (c) Microsoft Corporation, All Rights Reserved
F# Version 1.9.4.17, compiling for .NET Framework Version v2.0.50727

NOTE: 
NOTE: See 'fsi --help' for flags
NOTE: 
NOTE: Commands: #r <string>;;    reference (dynamically load) the given DLL. 
NOTE:           #I <string>;;    add the given search path for referenced DLLs. 
NOTE:           #use <string>;;  accept input from the given file. 
NOTE:           #load <string> ...<string>;;
NOTE:                            load the given file(s) as a compilation unit.
NOTE:           #time;;          toggle timing on/off. 
NOTE:           #types;;         toggle display of types on/off. 
NOTE:           #quit;;          exit. 
NOTE: 
NOTE: Visit the F# website at http://research.microsoft.com/fsharp.
NOTE: Bug reports to fsbugs@microsoft.com. Enjoy!

> abc^?^?^?#quit;;

  abc#quit;;
  ---^^

stdin(1,3): error FS0191: syntax error.
> 
  abc#quit;;
  ----^^

stdin(1,4): error FS0191: syntax error.
> 
  abc#quit;;
  -----^^

stdin(1,5): error FS0191: syntax error.
> 
- Exit...
iMac:~/net/FSharp-1.9.4.17 ctaggart$ 
By on 6/4/2008 9:52 PM ()

Does it happen only for the first line?
If yes, just wait a few seconds at the beginning (loading is quite long with this version).

Laurent.

By on 6/5/2008 1:37 AM ()

The ^? is for character \127, the delete key. The backspace key is \008. The backspace key is what F# Interactive expects. You can enable "Delete key sends backspace" via Terminal > Windows Settings > Keyboard. It appears to be working now!

I figured out what character the delete key was passing in by doing this in F# Interactive:

1
2
3
4
>   let c = "^?";;
val c : string
> c;;
val it : string = "\127"

Thanks for your help. Hopefully, \127 can be added to F# Interactive in future versions.

Cameron

By on 6/7/2008 2:50 PM ()

To all,

Thanks! This thread has been very helpful, and I am very excited to start using my favorite programming language on my favorite operating system. However, I am a little confused. The patching and example code seems to use fscp10.exe. I thought this was the compiler targeting the 1.1 version of the CLR. Yet, the 2.0 framework was specified for mono. Basically, what I would like to know is: are there any feature restrictions using fscp10.exe? or is it identical to being on Windows and using fsc.exe? I suppose I could conduct some tests... but if anyone has already compiled a list of limitations (if any), it would be greatly appreciated.

Thanks, again!

By on 6/16/2008 7:37 PM ()

The 1.9.4.19 makes running F# with Mono a whole lot easier. See Don Syme's blog [1] which contains the release fixes for Mono. Then go download the latest Mono [2] and F# [3] releases.

[1] [link:blogs.msdn.com]
[2] [link:www.go-mono.com]
[3] [link:research.microsoft.com]

Here is how I set it up this evening.
cd ~; mkdir -p net; cd net
wget ftp://ftp.research.microsoft.com/downloads/6f48a466-4294-4973-9e15-25e0ddff422f/fsharp-1.9.4.19.zip
unzip fsharp-1.9.4.19.zip
cd FSharp-1.9.4.19
sh install-mono.sh

That's it, you can now run F# Interactive and Compiler. As described earlier in this forum thread, to get the delete key working, you need to map it as backspace in Terminal. Terminal > Window Settings > Keyboard > check "Delete keys send backspace" > click "Use Settings as Defaults". I also added an FSHARP_HOME variable in ~/.profile and added the $FSHARP_HOME/bin directory to the path. In the bin directory I added an "fsi" script.
> iMac:~/net/FSharp-1.9.4.19 ctaggart$ cat bin/fsi
#!/bin/sh
mono $FSHARP_HOME/bin/fsi.exe --readline $*

Of course you have to do a "chmod u+x bin/fsi" to make it executable. The "fsc" script is very similar.
iMac:~/net/FSharp-1.9.4.19 ctaggart$ cat bin/fsc
#!/bin/sh
mono $FSHARP_HOME/bin/fscp.exe $*

cheers,
Cameron

By on 7/14/2008 10:39 PM ()

It's been a while since this thread started but I run F# quite successfully under MacOSX using Textmate.

I use a small script (bound to a suitable key) that send the current selection (or the current line) to a running instance of fsi (in iTerm). I have posted the script I use here (the surrounding text is in swedish):

[link:blog.hoomla.se]

This together with a modified version of the Ocaml-grammar ([link:hoomla.se]) makes Textmate quite usable...

Regards,

By on 11/7/2008 5:57 AM ()

Hello,

Could you speak on a few things that would help get a consistent understading of what and how things are working for Mac OS X and F#:

1) OS X / CPU - which version (uname -pr)

2) Mono - which version (mono --version)

3) FSharp - which version (gacutil -l | grep FSharp)

4) fsc / fsi - the command lines you use to get these running (no shell scripts or cat then out if possible)

If everyone can provide this information, it will help to narrow what is missing or unsupported. I have tried a number of Mono and F# combinations without getting more than error messages. My values are:

1)

8.11.0 powerpc

2)

Mono JIT compiler version 1.2.6 (tarball)

Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com

TLS: normal

GC: Included Boehm (with typed GC)

SIGSEGV: normal

Notification: Thread + polling

Architecture: ppc

Disabled: none

3)

FSharp.Compatibility, Version=1.9.4.19, Culture=neutral, PublicKeyToken=a19089b1c74d0809

FSharp.Compatibility10, Version=1.9.4.19, Culture=neutral, PublicKeyToken=a19089b1c74d0809

FSharp.Compiler, Version=1.9.4.19, Culture=neutral, PublicKeyToken=a19089b1c74d0809

FSharp.Compiler10, Version=1.9.4.19, Culture=neutral, PublicKeyToken=a19089b1c74d0809

FSharp.Core, Version=1.9.4.19, Culture=neutral, PublicKeyToken=a19089b1c74d0809

FSharp.Core10, Version=1.9.4.19, Culture=neutral, PublicKeyToken=a19089b1c74d0809

4)

Not working for me. I have tried "mono bin/fscp.exe" and "mono bin/fsi.exe" from the extracted base folder.

Thank you. Good day.

By on 11/9/2008 3:47 PM ()

Here's my output, finally:

1) 8.11.0 powerpc
2) Mono JIT compiler version 2.0 (tarball)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
TLS: normal
GC: Included Boehm (with typed GC)
SIGSEGV: normal
Notification: Thread + polling
Architecture: ppc
Disabled: none
3) FSharp.Compiler, Version=1.9.6.2, Culture=neutral, PublicKeyToken=a19089b1c74d0809
FSharp.Core, Version=1.9.6.2, Culture=neutral, PublicKeyToken=a19089b1c74d0809
FSharp.PowerPack, Version=1.9.6.2, Culture=neutral, PublicKeyToken=a19089b1c74d0809
4) Not working! As mentioned before.

By on 12/18/2008 12:47 PM ()

I am running OS X 10.5.8 on my iMac. I updated to Mono 2.4.3 and F# 1.9.7.8 (VS 2010 Beta 2) and they are working together. A script to install the F# assemblies in Mono's GAC is here, with other details on my blog post.

[link:blog.ctaggart.com]

By on 12/10/2009 2:20 PM ()

Update: the F# February 2010 release has greatly improved support for Mono/Linux development, including a "--resident" flag for faster compilation.

For more details of F# on the Mac and Linux, see also [link:strangelights.com]

By on 2/11/2010 12:28 PM ()

I installed F# 2.0 on my Mac yesterday. I'm glad to see that the --readline option no longer seems to be needed (not that I minded--I just like to avoid platform specific fixes where I can). I'll have to check the --resident flag; sounds good.

--
Onorio

By on 2/12/2010 4:15 AM ()

1) 9.5.0 i386

2)

Mono JIT compiler version 2.0 (tarball)

Copyright (C) 2002-2008 Novell, Inc and Contributors.

www.mono-project.com

TLS: normal

GC: Included Boehm (with typed GC)

SIGSEGV: normal

Notification: Thread + polling

Architecture: x86

Disabled: none

3)

FSharp.Compiler, Version=1.9.6.2, Culture=neutral, PublicKeyToken=a19089b1c74d0809

FSharp.Core, Version=1.9.6.2, Culture=neutral, PublicKeyToken=a19089b1c74d0809

FSharp.PowerPack, Version=1.9.6.2, Culture=neutral, PublicKeyToken=a19089b1c74d0809

4)

mono fsi.exe --no-gui --no-readline

(For fsc I use NAnt and the F#-extension from "Wildart": [link:artwild.blogspot.com]

Regards,

By on 11/9/2008 11:18 PM ()

Hello,

So one question is about whether the processor has anything to say in this situation. Maybe an optimization is to blame. I don't know if a library is the problem (expecting char and string to be compatible). Is there anyone with this same setup as kullbom but not able to use F#? And is there anyone with some PPC configuration that can use the compiler?

1)

8.11.0 powerpc

2)

Mono JIT compiler version 2.0.1 (tarball)

Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com

TLS: normal

GC: Included Boehm (with typed GC)

SIGSEGV: normal

Notification: Thread + polling

Architecture: ppc

Disabled: none

3)

FSharp.Compiler, Version=1.9.6.2, Culture=neutral, PublicKeyToken=a19089b1c74d0809

FSharp.Core, Version=1.9.6.2, Culture=neutral, PublicKeyToken=a19089b1c74d0809

FSharp.PowerPack, Version=1.9.6.2, Culture=neutral, PublicKeyToken=a19089b1c74d0809

4) Not working fsc:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for <StartupCode$FSharp.Compiler>.$Microsoft.FSharp.Compiler.Ast ---> System.InvalidCastException: Cannot cast from source type to destination type.

  at Microsoft.FSharp.Collections.List`1[Microsoft.FSharp.Core.Tuple`2[System.Char,System.String]].CompareTo (System.Object obj) [0x00000] 

  at Microsoft.FSharp.Primitives.Basics.List.map[Tuple`2,Char] (Microsoft.FSharp.Core.FastFunc`2 f, Microsoft.FSharp.Collections.List`1 x) [0x00000] 

  at <StartupCode$FSharp.Compiler>.$Microsoft.FSharp.Compiler.Ast..cctor () [0x00000] 

  --- End of inner exception stack trace ---

  at <0x00000> <unknown method>

  at Microsoft.FSharp.Compiler.CommandLineMain.main (System.String[] argv) [0x00000] 

  at Microsoft.FSharp.Compiler.CommandLineMain.main (System.String[] argv) [0x00000] 

fsi:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for <StartupCode$FSharp.Compiler>.$Microsoft.FSharp.Compiler.Build ---> System.TypeInitializationException: An exception was thrown by the type initializer for <StartupCode$FSharp.Compiler>.$Microsoft.FSharp.Compiler.AbstractIL.Extensions.ILX.Msilxlib ---> System.IndexOutOfRangeException: Array index is out of range.

  at Microsoft.FSharp.Compiler.AbstractIL.Internal.Bytes+clo@52.Invoke (Int32 i) [0x00000] 

  at Microsoft.FSharp.Compiler.AbstractIL.Internal.Bytes+clo@27_1.Invoke (Int32 i) [0x00000] 

  at Microsoft.FSharp.Primitives.Basics.Array.init[Byte] (Int32 n, Microsoft.FSharp.Core.FastFunc`2 f) [0x00000] 

  at Microsoft.FSharp.Compiler.AbstractIL.Internal.Bytes.make (Microsoft.FSharp.Core.FastFunc`2 f, Int32 n) [0x00000] 

  at Microsoft.FSharp.Compiler.AbstractIL.Internal.Bytes.of_intarray (System.Int32[] arr) [0x00000] 

  at <StartupCode$FSharp.Compiler>.$Microsoft.FSharp.Compiler.AbstractIL.Extensions.ILX.Msilxlib..cctor () [0x00000] 

  --- End of inner exception stack trace ---

  at <0x00000> <unknown method>

  at <StartupCode$FSharp.Compiler>.$Microsoft.FSharp.Compiler.Build..cctor () [0x00000] 

  at <StartupCode$FSharp.Compiler>.$Microsoft.FSharp.Compiler.Build..cctor () [0x00000] 

  --- End of inner exception stack trace ---

  at <0x00000> <unknown method>

  at <StartupCode$fsi>.$Microsoft.FSharp.Compiler.Interactive.Shell._main () [0x00000] 

  at <StartupCode$fsi>.$Microsoft.FSharp.Compiler.Interactive.Shell._main () [0x00000] 

Thank you. Good day.

Yemi Bedu

By on 11/13/2008 7:14 PM ()

The processor may indeed be the culprit. I'm trying to run mine on a PowerBook G4. (Don't have it with me, but I'll post output later)

By on 12/2/2008 1:32 PM ()

I don't know if I would say that the processor is the culprit, but rather I think it might be more accurate to say that mono is probably the culprit. It looks like it could be a bug in mono to me. You should report it maybe.

By on 12/3/2008 6:31 AM ()

Hello,

I would have to say that I think that it is something in mono and f#. Maybe just the way to Core dll was compiled. I have another post trying to get help to compile from source without a bootstrapped compiler already in place. I have been frustrated with this being the case with three version of f# (1.9.3, 1.9.4, 1.9.6) and three versions of mono (1.2, 1.9, 2.0). I will try to search and talk on the mono forums and see what they have to say. I am busy this time of year so I may not get to be as diligent as I would like. If any others would like to also do some searching, it would be much appreciated. Good day.

By on 12/5/2008 2:51 AM ()

I have tried the steps with F# CTP (1.9.6.2) and Mono 1.9.1.3.

The installation is quit straight forward (after I have run sudo -s command)

However, when I run the fsi.exe, I encountered the following errors:

1
2
3
4
5
** (bin/fsi.exe:702): WARNING **: The class Typespec 0x1b0000e5 could not be loaded, used in 

** (bin/fsi.exe:702): CRITICAL **: mono_metadata_string_heap: assertion `index < meta->heap_strings.size' failed

Unhandled Exception: System.TypeLoadException: Could not load type 'Microsoft.FSharp.Compiler.Fscopts' from assembly 'FSharp.Compiler, Version=1.9.6.2, Culture=neutral, PublicKeyToken=a19089b1c74d0809'.

Any idea?

By on 9/23/2008 6:32 AM ()

I, too, am having difficulties running F# with Mono on the Mac

I'm running F# CTP (1.9.6.2) and Mono 2.0 RC 4 as released for Max OS X at
[link:mono.ximian.com]

After running the install, I try to run
mono bin/fsi.exe

and I am greeted with:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for <StartupCode$FSharp.Compiler>.$Microsoft.FSharp.Compiler.Build ---> System.TypeInitializationException: An exception was thrown by the type initializer for <StartupCode$FSharp.Compiler>.$Microsoft.FSharp.Compiler.AbstractIL.Extensions.ILX.Msilxlib ---> System.IndexOutOfRangeException: Array index is out of range.
  at Microsoft.FSharp.Compiler.AbstractIL.Internal.Bytes+clo@52.Invoke (Int32 i) [0x00000] 
  at Microsoft.FSharp.Compiler.AbstractIL.Internal.Bytes+clo@27_1.Invoke (Int32 i) [0x00000] 
  at Microsoft.FSharp.Primitives.Basics.Array.init[Byte] (Int32 n, Microsoft.FSharp.Core.FastFunc`2 f) [0x00000] 
  at Microsoft.FSharp.Compiler.AbstractIL.Internal.Bytes.make (Microsoft.FSharp.Core.FastFunc`2 f, Int32 n) [0x00000] 
  at Microsoft.FSharp.Compiler.AbstractIL.Internal.Bytes.of_intarray (System.Int32[] arr) [0x00000] 
  at <StartupCode$FSharp.Compiler>.$Microsoft.FSharp.Compiler.AbstractIL.Extensions.ILX.Msilxlib..cctor () [0x00000] 
  --- End of inner exception stack trace ---
  at <0x00000> <unknown method>
  at <StartupCode$FSharp.Compiler>.$Microsoft.FSharp.Compiler.Build..cctor () [0x00000] 
  at <StartupCode$FSharp.Compiler>.$Microsoft.FSharp.Compiler.Build..cctor () [0x00000] 
  --- End of inner exception stack trace ---
  at <0x00000> <unknown method>
  at <StartupCode$fsi>.$Microsoft.FSharp.Compiler.Interactive.Shell._main () [0x00000] 
  at <StartupCode$fsi>.$Microsoft.FSharp.Compiler.Interactive.Shell._main () [0x00000] 

Any suggestions?

By on 10/12/2008 3:52 PM ()

All,

I have the same problem as lobotomy42 in getting F# to run on mac os 10.5.5. In addition when I try to use fsc.exe I get:

1
2
3
4
5
6
7
8
Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for <StartupCode$FSharp.Compiler>.$Microsoft.FSharp.Compiler.Ast ---> System.InvalidCastException: Cannot cast from source type to destination type.
  at Microsoft.FSharp.Collections.List`1[Microsoft.FSharp.Core.Tuple`2[System.Char,System.String]].CompareTo (System.Object obj) [0x00000] 
  at Microsoft.FSharp.Primitives.Basics.List.map[Tuple`2,Char] (Microsoft.FSharp.Core.FastFunc`2 f, Microsoft.FSharp.Collections.List`1 x) [0x00000] 
  at <StartupCode$FSharp.Compiler>.$Microsoft.FSharp.Compiler.Ast..cctor () [0x00000] 
  --- End of inner exception stack trace ---
  at <0x00000> <unknown method>
  at Microsoft.FSharp.Compiler.CommandLineMain.main (System.String[] argv) [0x00000] 
  at Microsoft.FSharp.Compiler.CommandLineMain.main (System.String[] argv) [0x00000] 

Any help would be appreciated.

Thanks.

By on 10/18/2008 6:24 PM ()

Hello minvega,

Have you tried the release version of Mono 2.0?

By on 10/19/2008 2:44 AM ()

Hi Felixmar,

I am using the release version of Mono 2.0, installed from the Mono 2.0_4 Universal binaries available at [link:www.go-mono.com] I installed F# from the September 2008 CTP downloads page on msdn.

By on 10/19/2008 5:36 AM ()

I don't have a Mac myself. I have tested fsi with Mono 2.0 on Windows

for a short while and it seems to work ok. The Linux distribution that i

also use doesn't have packages for Mono 2.0 yet, so unfortunately i cannot test fsi on Linux. Perhaps someone who has Mono 2.0 running on Linux can tell if this issue only occurs on OS X?

By on 10/19/2008 9:36 AM ()

The F# CTP requires the Mono 2.0 Preview

Kind regards

don

By on 9/23/2008 7:49 AM ()

Thanks for your help, Don.

I am misled by the Mono download page:

[link:www.go-mono.com]

The latest version is 1.9.1 (a.k.a. Mono 2.0 Beta). I thought this is the 2.0 version mentioned in the FSharp readme file.

Here is the link for the Mono 2.0 RC1 that works with F# 1.9.6.2:

[link:mono.ximian.com]

I managed to launch fsi.exe without problem.

terran

By on 9/23/2008 5:59 PM ()

Hi Nair!

I just started using FSharp with Mono 1.2.6 on Mac OS X 10.5 Leopard.

The Mono download is pretty straightforward. If you have Leopard, just go to

[link:www.go-mono.com],

select Mac OS X, and follow the instructions (mostly you'll be asked to agree to the license, etc).

After you download Mono, go to

[link:research.microsoft.com]

to download the zip file for F# version 1.9.3.14, and follow the

instructions in README-fsharp.html, which essentially asks you to run install-mono.sh. One problem I encountered is that install-mono.sh has MSDOS line endings. So you need to convert the file to have Unix line endings, by using a tool such as ConvertNewlines (google it for the url). Once you've done this, you can run install-mono.sh.

You might want to take a look at

[link:cs.hubfs.net] for description of my initial experiences using Mono and FSharp on MAC.

By on 1/28/2008 9:33 PM ()

Thanks and I was able to install mono fine. When I ran install-mono.sh it failed and went through the messages and found that gacutil didn't run. I am installing them on my user profile and I guess I need to change to privileged user to do that in the terminal. I need to find out that. Also, which editor are you using for F#, textmate?

By the way, do you know how to switch to the privilieged user in terminal? sudo didn't work. Don't waste time if you don't remember. I will research.

Thanks

By on 1/28/2008 9:38 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper