BTW, I forgot to reply that I think you saw the error messages you saw because you do not have the last two packages referred to in the link I posted previously installed prior to trying to run the shell...

By on 4/4/2010 11:41 AM ()

FWIW, I carefully followed the instructions provided here with good success on Ubuntu 9.10.

I then installed the FSharpPowerPack-1.9.9.9 successfully as well. You will need to add the path to the PowerPack binaries to any script or source file from which you wish to reference those binaries, e.g.,

#I @"/path/to/FSharpPowerPack-1.9.9.9/bin";;

then

#r "FSharpPowerPack.dll";;
open SI;;
...

Finally, I set up the following aliases in my ~/.bash_profile file to make usage of the whole kit and kaboodle more "natural" to the Unix environment:

export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.15
export JDK_HOME=$JAVA_HOME
export FSHARP_HOME=/home/bob/src/FSharp-1.9.9.9
export FSHARP_PP_HOME=/home/bob/src/FSharpPowerPack-1.9.9.9
export PATH=$PATH:$JAVA_HOME/bin:$FSHARP_HOME/bin:$FSHARP_PP_HOME/bin

alias fsi=/home/bob/src/FSharp-1.9.9.9/bin/fsi.exe
alias fsharpc=/home/bob/src/FSharp-1.9.9.9/bin/fsc.exe
alias fsyacc=/home/bob/src/FSharpPowerPack-1.9.9.9/bin/fsyacc.exe
alias fslex=/home/bob/src/FSharpPowerPack-1.9.9.9/bin/fslex.exe
alias fshtmldoc=/home/bob/src/FSharpPowerPack-1.9.9.9/bin/fshtmldoc.exe

If you're wondering what all that Java stuff is about, it's so I can play with Scala as well. One gotcha if you're planning on doing that is to make sure that you give the alias for the FSharp compiler a Unixy name, other than the obvious choice of 'fsc,' because that's the same name as Scala's compiler.

Depending on how you set your Ubuntu up, you may need to run...

source ~/.bash_profile

... in order to make those path and alias declarations work in your command line shell.

My only complaint running fsi.exe in the shell is that occasionally the console lines get "funky." If you experience it, you'll know what I mean. Also, it feels a tad sluggish the first time you run anything... it's definitely not as zippy on mono as it is on "real" .NET but it's cool to be able to code F# on Ubuntu anyway!

By on 4/4/2010 11:36 AM ()

What happens if you try mono ./fsi.exe? That's how I got fsi working on my version of Ubuntu. Of course that was a version prior to 1.9.9.9 but I'd be surprised if you don't still need to do that.

I mean something like this:

~/Desktop/FSharp-1.9.9.9/bin$ mono ./fsi.exe

By on 4/1/2010 5:04 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