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.
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
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.
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
Hi,
I've seen this message too. What happens if you just ignore it and try to run new-fsi.exe?
Laurent.
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.)
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.
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$
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.
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
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!
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
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):
This together with a modified version of the Ocaml-grammar ([link:hoomla.se]) makes Textmate quite usable...
Regards,
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.
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.
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.
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]
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
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,
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
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)
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.
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.
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?
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?
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.
Hello minvega,
Have you tried the release version of Mono 2.0?
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.
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?
The F# CTP requires the Mono 2.0 Preview
Kind regards
don
Thanks for your help, Don.
I am misled by the Mono download page:
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:
I managed to launch fsi.exe without problem.
terran
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
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
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.
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
Topic tags
- f# × 3705
- websharper × 1897
- compiler × 286
- functional × 201
- ui next × 139
- c# × 121
- classes × 97
- web × 97
- .net × 84
- book × 84
- async × 76
- ui.next × 67
- bug × 54
- core × 49
- website × 49
- server × 45
- parallel × 43
- ui × 43
- enhancement × 41
- parsing × 41
- testing × 41
- trywebsharper × 41
- typescript × 37
- html × 35
- javascript × 35
- owin × 35
- asynchronous × 30
- monad × 28
- ocaml × 28
- tutorial × 27
- warp × 27
- haskell × 26
- sitelet × 25
- linq × 22
- workflows × 22
- wpf × 20
- fpish × 19
- introduction × 19
- silverlight × 19
- sitelets × 19
- monodevelop × 17
- rpc × 17
- suave × 17
- piglets × 16
- collections × 15
- feature request × 15
- jquery × 15
- templates × 15
- getting started × 14
- pipeline × 14
- kendoui × 13
- reactive × 12
- 4.1.0.171 × 11
- monads × 11
- opinion × 10
- 4.0.190.100-rc × 9
- deployment × 9
- fixed × 9
- formlets × 9
- in × 9
- json × 9
- plugin × 9
- proposal × 9
- scheme × 9
- solid × 9
- basics × 8
- concurrent × 8
- highcharts × 8
- how-to × 8
- python × 8
- 4.1.1.175 × 7
- complexity × 7
- documentation × 7
- visual studio × 7
- 4.1.2.178 × 6
- lisp × 6
- real-world × 6
- released in 4.0.192.103-rc × 6
- remoting × 6
- resources × 6
- scala × 6
- websharper ui.next × 6
- workshop × 6
- xaml × 6
- 4.0.193.110 × 5
- 4.2.3.236 × 5
- aspnetmvc × 5
- authentication × 5
- azure × 5
- bootstrap × 5
- conference × 5
- dsl × 5
- formlet × 5
- java × 5
- list × 5
- metaprogramming × 5
- ml × 5
- released in Zafir.4.0.188.91-beta10 × 5
- sql × 5
- visualstudio × 5
- websharper.forms × 5
- zafir × 5
- 4.0.192.106 × 4
- 4.0.195.127 × 4
- 4.1.0.38 × 4
- 4.2.1.86 × 4
- 4.2.6.118 × 4
- css × 4
- example × 4
- extensions × 4
- fsi × 4
- fsx × 4
- html5 × 4
- jqueryui × 4
- lift × 4
- reflection × 4
- remote × 4
- rest × 4
- spa × 4
- teaching × 4
- template × 4
- websocket × 4
- wontfix × 4
- 4.0.196.147 × 3
- 4.1.0.34 × 3
- 4.1.6.207 × 3
- 4.2.1.223-beta × 3
- 4.2.11.258 × 3
- 4.2.4.114 × 3
- 4.2.4.247 × 3
- 4.2.5.115 × 3
- 4.2.6.253 × 3
- 4.2.9.256 × 3
- ajax × 3
- alt.net × 3
- aml × 3
- asp.net mvc × 3
- canvas × 3
- cloudsharper × 3
- compilation × 3
- database × 3
- erlang × 3
- events × 3
- extension × 3
- file upload × 3
- forums × 3
- inline × 3
- issue × 3
- kendo × 3
- macro × 3
- mono × 3
- msbuild × 3
- mvc × 3
- pattern × 3
- piglet × 3
- released in Zafir.4.0.187.90-beta10 × 3
- svg × 3
- type provider × 3
- view × 3
- 4.1.1.64 × 2
- 4.1.5.203 × 2
- 4.1.7.232 × 2
- 4.2.10.257 × 2
- 4.2.3.111 × 2
- 4.2.5.249 × 2
- android × 2
- asp.net × 2
- beginner × 2
- blog × 2
- chart × 2
- client × 2
- client server app × 2
- clojure × 2
- computation expressions × 2
- constructor × 2
- corporate × 2
- courses × 2
- cufp × 2
- d3 × 2
- debugging × 2
- direct × 2
- discriminated union × 2
- docs × 2
- elm × 2
- endpoint × 2
- endpoints × 2
- enterprise × 2
- entity framework × 2
- event × 2
- f# interactive × 2
- fable × 2
- flowlet × 2
- formdata × 2
- forms × 2
- fsc × 2
- google maps × 2
- hosting × 2
- http × 2
- https × 2
- iis 8.0 × 2
- install × 2
- interactive × 2
- interface × 2
- iphone × 2
- iteratee × 2
- jobs × 2
- jquery mobile × 2
- keynote × 2
- lens × 2
- lenses × 2
- linux × 2
- listmodel × 2
- mac × 2
- numeric × 2
- oauth × 2
- obfuscation × 2
- offline × 2
- oop × 2
- osx × 2
- packaging × 2
- pattern matching × 2
- performance × 2
- pipelines × 2
- q&a × 2
- quotation × 2
- reference × 2
- released in Zafir.4.0.185.88-beta10 × 2
- rx × 2
- script × 2
- security × 2
- self host × 2
- seq × 2
- sockets × 2
- stm × 2
- tcp × 2
- trie × 2
- tutorials × 2
- type × 2
- url × 2
- var × 2
- websharper.charting × 2
- websharper4 × 2
- websockets × 2
- wig × 2
- xna × 2
- zh × 2
- .net interop × 1
- 2012 × 1
- 4.0.194.126 × 1
- 4.1.3.184 × 1
- 4.1.4.189 × 1
- 4.2.0.214-beta × 1
- 4.2.12.259 × 1
- 4.2.2.231-beta × 1
- 4.2.8.255 × 1
- Canvas Sample Example × 1
- DynamicStyle Animated Style × 1
- Fixed in 4.0.190.100-rc × 1
- Released in Zafir.UI.Next.4.0.169.79-beta10 × 1
- SvgDynamicAttribute × 1
- WebComponent × 1
- abstract class × 1
- accumulator × 1
- active pattern × 1
- actor × 1
- addin × 1
- agents × 1
- aggregation × 1
- agile × 1
- alter session × 1
- animation × 1
- anonymous object × 1
- apache × 1
- api × 1
- appcelerator × 1
- architecture × 1
- array × 1
- arrays × 1
- asp.net 4.5 × 1
- asp.net core × 1
- asp.net integration × 1
- asp.net mvc 4 × 1
- asp.net web api × 1
- aspnet × 1
- ast × 1
- attributes × 1
- authorization × 1
- b-tree × 1
- back button × 1
- badimageformatexception × 1
- bash script × 1
- batching × 1
- binding-vars × 1
- bistro × 1
- body × 1
- bundle × 1
- camtasia studio × 1
- cas protocol × 1
- charts × 1
- clarity × 1
- class × 1
- cli × 1
- clipboard × 1
- clojurescript × 1
- closures × 1
- cloud × 1
- cms × 1
- coding diacritics × 1
- color highlighting × 1
- color zones × 1
- combinator × 1
- combinators × 1
- compile × 1
- compile code on server × 1
- config × 1
- confirm × 1
- content × 1
- context × 1
- context.usersession × 1
- continuation-passing style × 1
- coords × 1
- cordova × 1
- cors × 1
- coursera × 1
- cross-domain × 1
- csla × 1
- current_schema × 1
- custom content × 1
- data × 1
- data grid × 1
- datetime × 1
- debug × 1
- declarative × 1
- delete × 1
- devexpress × 1
- dhtmlx × 1
- dictionary × 1
- directattribute × 1
- disqus × 1
- distance × 1
- do binding × 1
- doc elt ui.next upgrade × 1
- docker × 1
- dojo × 1
- dol × 1
- dom × 1
- domain × 1
- du × 1
- duf-101 × 1
- dynamic × 1
- eastern language × 1
- eclipse × 1
- edsl × 1
- em algorithm × 1
- emacs × 1
- emotion × 1
- enums × 1
- error × 1
- etw × 1
- euclidean × 1
- eventhandlerlist × 1
- examples × 1
- ext js × 1
- extension methods × 1
- extra × 1
- facet pattern × 1
- failed to translate × 1
- fake × 1
- fantomas × 1
- fear × 1
- float × 1
- form × 1
- form-data × 1
- forum × 1
- fp × 1
- frank × 1
- fsdoc × 1
- fsharp × 1
- fsharp.core × 1
- fsharp.powerpack × 1
- fsharpx × 1
- fsunit × 1
- function × 1
- functional style × 1
- game × 1
- games × 1
- gc × 1
- generic × 1
- geometry × 1
- getlastwin32error × 1
- getting-started × 1
- google × 1
- google.maps × 1
- grid × 1
- group × 1
- guide × 1
- hash × 1
- headers × 1
- hello world example × 1
- heroku × 1
- highchart × 1
- history × 1
- how to × 1
- html-templating × 1
- http405 × 1
- httpcontext × 1
- hubfs × 1
- i18n × 1
- ie 8 × 1
- if-doc × 1
- iis × 1
- image × 1
- images × 1
- inheritance × 1
- initialize × 1
- input × 1
- install "visual studio" × 1
- installer × 1
- int64 × 1
- interfaces × 1
- internet explorer × 1
- interop × 1
- interpreter × 1
- io × 1
- iobservable × 1
- ios × 1
- iot × 1
- ipad × 1
- isomorphic × 1
- javascript optimization × 1
- javascript semanticui resources × 1
- jquery-plugin × 1
- jquery-ui × 1
- jquery-ui-datepicker × 1
- js × 1
- kendo datasource × 1
- kendochart × 1
- kendoui compiler × 1
- knockout × 1
- l10n × 1
- learning × 1
- library × 1
- libs × 1
- license × 1
- licensing × 1
- lineserieszonescfg × 1
- local setting × 1
- localization × 1
- logging × 1
- loop × 1
- macros × 1
- mailboxprocessor × 1
- mapping × 1
- maps × 1
- markerclusterer × 1
- markup × 1
- marshal × 1
- math × 1
- mathjax × 1
- message × 1
- message passing × 1
- message-passing × 1
- meta × 1
- metro style × 1
- micro orm × 1
- minimum-requirements × 1
- mix × 1
- mobile installation × 1
- mod_mono × 1
- modal × 1
- module × 1
- mouseevent × 1
- mouseposition × 1
- multidimensional × 1
- multiline × 1
- multithreading × 1
- mysql × 1
- mysqlclient × 1
- nancy × 1
- native × 1
- nested × 1
- nested loops × 1
- node × 1
- nunit × 1
- object relation mapper × 1
- object-oriented × 1
- om × 1
- onboarding × 1
- onclick × 1
- optimization × 1
- option × 1
- orm × 1
- os x × 1
- output-path × 1
- override × 1
- paper × 1
- parameter × 1
- persistence × 1
- persistent data structure × 1
- phonegap × 1
- pola × 1
- post × 1
- powerpack × 1
- prefix tree × 1
- principle of least authority × 1
- privacy × 1
- private × 1
- profile × 1
- programming × 1
- project × 1
- project euler × 1
- projekt_feladat × 1
- protected × 1
- provider × 1
- proxy × 1
- ptvs × 1
- public × 1
- pure f# × 1
- purescript × 1
- qna × 1
- quant × 1
- query sitelet × 1
- question × 1
- quotations × 1
- range × 1
- raphael × 1
- razor × 1
- rc × 1
- reactjs × 1
- real-time × 1
- ref × 1
- region × 1
- released in 4.0.190.100-rc × 1
- reporting × 1
- responsive design × 1
- rest api × 1
- rest sitelet × 1
- restful × 1
- round table × 1
- router × 1
- routing × 1
- rpc reverseproxy × 1
- runtime × 1
- sales × 1
- sample × 1
- sampleapp × 1
- scriptcs × 1
- scripting × 1
- search × 1
- self hosted × 1
- semanticui × 1
- sequence × 1
- serialisation × 1
- service × 1
- session-state × 1
- sharepoint × 1
- signals × 1
- sitelet website × 1
- sitelet.protect × 1
- sitlets × 1
- slickgrid × 1
- source code × 1
- sqlentityconnection × 1
- ssl × 1
- standards × 1
- static content × 1
- stickynotes × 1
- streamreader × 1
- stress × 1
- strong name × 1
- structures × 1
- submitbutton × 1
- subscribe × 1
- svg example html5 websharper.ui.next × 1
- sweetalert × 1
- system.datetime × 1
- system.reflection.targetinvocationexception × 1
- table storage × 1
- targets × 1
- tdd × 1
- templates ui.next × 1
- templating × 1
- text parsing × 1
- three.js × 1
- time travel × 1
- tls × 1
- tooltip × 1
- tracing × 1
- tsunamiide × 1
- turkish × 1
- twitter-bootstrap × 1
- type erasure × 1
- type inference × 1
- type providers × 1
- type-providers × 1
- typeprovider × 1
- ui next forms × 1
- ui-next × 1
- ui.next jqueryui × 1
- ui.next charting × 1
- ui.next formlets × 1
- ui.next forms × 1
- ui.next suave visualstudio × 1
- ui.next templating × 1
- unicode × 1
- unittest client × 1
- upload × 1
- usersession × 1
- validation × 1
- vb × 1
- vb.net × 1
- vector × 1
- view.map × 1
- visal studio × 1
- visual f# × 1
- visual studio 11 × 1
- visual studio 2012 × 1
- visual studio shell × 1
- vs2017 compiler zafir × 1
- vsix × 1
- web api × 1
- web-scraping × 1
- webapi × 1
- webcomponents × 1
- webforms × 1
- webgl × 1
- webrtc × 1
- webshaper × 1
- websharper async × 1
- websharper codemirror × 1
- websharper f# google × 1
- websharper forms × 1
- websharper reactive × 1
- websharper rpc × 1
- websharper sitelets routing × 1
- websharper warp × 1
- websharper-interface-generator × 1
- websharper.chartsjs × 1
- websharper.com × 1
- websharper.exe × 1
- websharper.owin × 1
- websharper.ui.next × 1
- websharper.ui.next jquery × 1
- websockets iis × 1
- why-websharper × 1
- windows 7 × 1
- windows 8 × 1
- windows-phone × 1
- winrt × 1
- www.grabbitmedia.com × 1
- xamarin × 1
- xml × 1
- yeoman × 1
- yield × 1
- zafir beta × 1
- zafir websharper4 × 1
- zarovizsga × 1
![]() |
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 |
Is anyone using F# in mac? Recently I bought a Mac and would like to use to develop app using F#, I found it difficult to get around to install stuff in it. Is there a step by step guide on how to install F# in mac? Also I heard I can not use #light in mac??
Thanks.