pjgpetecodes / dotnet5pi Goto Github PK
View Code? Open in Web Editor NEWDot NET 5 for the Raspberry Pi
License: MIT License
Dot NET 5 for the Raspberry Pi
License: MIT License
I have a problem running F# repl dotnet fsi
:
pi@raspberrypi:~ $ dotnet fsi
Microsoft (R) F# Interactive version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.
For help type #help;;
>
/home/pi/unknown(1,1): error FS0229: Error opening binary file '/opt/dotnet/sdk/5.0.100/FSharp/FSharp.Core.dll': Error reading/writing metadata for the F# compiled DLL '/opt/dotnet/sdk/5.0.100/FSharp/FSharp.Core.dll'. Was the DLL compiled with an earlier version of the F# compiler? (error: 'lookup_uniq in table istrings out of range, n = 16548, sizeof(tab) = 4565').
/home/pi/unknown(1,1): error FS3160: Problem reading assembly '/opt/dotnet/sdk/5.0.100/FSharp/FSharp.Core.dll': Processing of a script fragment has stopped because an exception has been raised
Exception by fsi.exe:
System.Exception: Error creating evaluation session: StopProcessingExn None
at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1433.Invoke(String message) in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\printf.fs:line 1433
at System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr callersRetAddrSlot, IntPtr callTarget, IntPtr retVal)
at [email protected](A arg1) in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\printf.fs:line 506
at FSharp.Compiler.Interactive.Shell.FsiEvaluationSession..ctor(FsiEvaluationSessionHostConfig fsi, String[] argv, TextReader inReader, TextWriter outWriter, TextWriter errorWriter, Boolean fsiCollectible, FSharpOption`1 legacyReferenceResolver) in F:\workspace\_work\1\s\src\fsharp\fsi\fsi.fs:line 2829
at FSharp.Compiler.Interactive.Shell.FsiEvaluationSession.Create(FsiEvaluationSessionHostConfig fsiConfig, String[] argv, TextReader inReader, TextWriter outWriter, TextWriter errorWriter, FSharpOption`1 collectible, FSharpOption`1 legacyReferenceResolver) in F:\workspace\_work\1\s\src\fsharp\fsi\fsi.fs:line 3155
at System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr callersRetAddrSlot, IntPtr callTarget, IntPtr retVal)
at [email protected]() in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\prim-types.fs:line 6615
at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
at System.Lazy`1.CreateValue()
at System.Lazy`1.get_Value()
at Sample.FSharp.Compiler.Interactive.Main.evaluateSession(String[] argv) in F:\workspace\_work\1\s\src\fsharp\fsi\fsimain.fs:line 269
Thanks for the great blog post and the installation script btw.
New month, so new .net 5 updates for runtime and SDK. The script should be updated.
Thank you for the very useful script. It saved me a lot of time getting dotnet 5 installed on my Raspberry Pi 4.
I did run into an issue because I do not use the default username pi
. I created my own user account called don
. (This makes it easier for me to ssh between all my Linux machines.) There are 4 places inside install.sh
that hard code the path /home/pi
. It would be better to change them all to ${HOME}
to pick up whatever the home directory is for the current user.
Thanks for providing this install script. It definitely makes things easier.
When running the install.sh script on Raspberry Pi OS 64bit version, the 32 bit versions are installed, which seems to work but running dotnet gives an error:
dotnet: error while loading shared libraries: libstdc++.so.6
I changed the arm32 to arm64 in the download path and the script seems to work fine.
wget -O - https://raw.githubusercontent.com/pjgpetecodes/dotnet5pi/master/install.sh | sudo bash
the blog post doesn't work. It should be https://github.com/pjgpetecodes/dotnet5pi/blob/master/install.sh.install.sh
line 163 script should also be updated from https://raw.githubusercontent.com/pjgpetecodes/dotnet5pi/master/dotnetdebug.sh to https://github.com/pjgpetecodes/dotnet5pi/blob/master/dotnetdebug.shWith that little motifications it worked fine for me. Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.