in F# on MAC OSX and Ubuntu I get an error running FSI in 4.0 - macos

I need System.Numerics in F#
EDIT I think the question is can fsi run with the 4.0 runtime and if so how do I configure it
I run "mono /bin/Fsi" in the Fsharp 4.0 dir I get the following error in both OSX 10.6.4 and Ubuntu 10.1.
I am sure I am missing a path or something
Please note the paths are different on the MAC but I got the same error
error FS0078: Unable to find the file 'System.Numerics.dll' in any of
/opt/mono-2.8/lib/mono/2.0
/home/gary/Downloads/FSharp-2.0.0.0/v4.0/bin
/home/gary/Downloads/FSharp-2.0.0.0/v4.0/bin/
On my MAcbook I copied the mono 4.0 bin dir to one of the above paths and Fsi loads but then it stops with this error.
Error FS0192: internal error: unreachable: GetGlobals
I have not tried this with the Ubuntu laptop
Any help would be appreciated.
G

Use cd /usr/lib/fsharp
then mono fsi.exe
your question brought me to search for fsi (before I could not find it)

Have you tried running sudo install_mono.sh from the F# directory? Also, I think you mean F# 2.0, right?

Make sure that your Mono is installed properly. I don't have my mac at work, so I use my Ubuntu desktop as example.
System.Numerics.dll belongs to Mono not F#. In my installation (Mono 2.8.1 and Ubuntu 10.10), that file is under the following directory
/usr/local/lib/mono/4.0/System.Numerics.dll

Related

How to solve problem with Tkinter on MacOS: TclError?

I developed a Tkinter app (with python version 3.10.6) on a mac (BigSur) and wrapped all the app files through py2app for use on others macs.
When I run on another mac (Monterey) I get the following error:
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
/usr/local/Cellar/tcl-tk/8.2 12_1/lib/tcl8.6
I search all over the internet and couldn't find any solution. What should I do to correct this blocking problem ?
update question 01/10/2022
In fact, here is the problem that I was unable to explain the first time:
I coded my python application on a 2020 Mac (Silicon processor). At work I have an old Mac from 2013 (Intel processor).
When I coded my app on the work Mac, I wrapped all my python files with py2app to make it an .app (the goal being to use the application on other macs).
For that I had to update my version of python and install the homebrew package manager.
Homebrew is installed in /opt/homebrew for Macs equipped with a Silicon processor
Homebrew is installed in /usr/local for Macs with an Intel processor
So when I run my version (coded on the 2013 Mac) on my 2020 Mac, I get an error message because it is looking for tcl-tk/8.2 12_1/lib/tcl8.6 in the /usr/ folder local/ and it can't find it since it's in /opt/homebrew.
Conversely, if I code on my 2020 mac, wrap with py2app and run the app on my 2013 work computer, I get an error message because it's looking for tcl-tk/8.2 12_1/lib /tcl8.6 in the /opt/homebrew folder.
I don't know how to solve this problem; in any case I tried hard to understand; I am a beginner and if you have an idea of ​​code to add to make this distinction and get the right folder in the right place it would be very useful to me.

Mac cmake: 'stdio.h' file not found

I have been stuck on this for a while, and I was wondering if I could get some help.
I'm currently stuck trying to run a cmake setup file and I'm constantly getting this error
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdio.h:107:15: fatal error: 'stdio.h' file not found
I've been looking online, and haven't been able to find anything recent. I've tried using the xcode-select --install already.
cmake version is currently 3.21.3.
The library I'm trying to install is https://github.com/google/draco, where I'm trying to install python functions using pybind11. I was able to install this library through cmake, whoever when I try to install the pybind11 functionality I keep getting this error. This library seemed to function properly on a coworkers linux machine, and they were running cmake 3.20.4 on ubuntu 18.04 (I don't know if this makes a difference)
Any help would be appreciated, and please let me know if there's any other information that can help the process.
It looks like something in XCode has changed after updating MacOS to 12.3. I had to reinstall XCode command line tools. I don't say it's right solution, but it works for me.
Commands for reinstalling (from https://stackoverflow.com/a/47804075):
removing the old tools ($ sudo rm -rf /Library/Developer/CommandLineTools)
install xcode command line tools again ($ xcode-select --install).

Arduino IDE (Win10) crashes when I launch the program

My Arduino IDE (ver 1.8.12 on Win10) crashes when I launch it. Running the arduino_debug.exe I get this error message.
C:\Program Files (x86)\Arduino>arduino_debug.exe
Set log4j store directory C:\Users\volke\AppData\Local\Arduino15
Loading configuration...
Initializing packages...
java.lang.NullPointerException
at cc.arduino.contributions.packages.ContributionsIndexer.parseIndex(ContributionsIndexer.java:134)
at processing.app.BaseNoGui.initPackages(BaseNoGui.java:483)
at processing.app.Base.<init>(Base.java:273)
at processing.app.Base.main(Base.java:150)
C:\Program Files (x86)\Arduino>
Any solutions? I've tried to delete the config files package_index.json and package_esp32_index.json without any luck.
I've got the same issue - the nightly build seems to work
https://www.arduino.cc/download.php?f=/arduino-nightly-windows.zip
https://www.arduino.cc/en/Main/Software
I'm on Windows 10 having exactly this issue (same arduino_debug log).
I tried uninstalling Arduino IDE and then reinstalling it from executable installer; it worked fine until I opened the Board manager: the problem recurs.
After installing the beta version (arduino beta1.9-BUILD-119), I'm not having any problem.
Just use the latest Arduino IDE Beta Version. It is working now, ignoring that issue. I'm using the ESP8266 board and it's running okay.
The beta version 1.9 worked for me. https://www.arduino.cc/en/Main/Software
It also happens on Manjaro linux. In my case removing the folder .arduino15 solves the issue, but I have to remove it every time I open arduino IDE
rm -rf ~/.arduino15/
Win10 folder location:
%HOMEPATH%\AppData\Local

Terminal not working in Aptana IDE with OSX

This Terminal Emulator is not functional because no 'bash' shell could be found.
Please correct the problem and restart the ID
This is a brand new OSX laptop with 10.13.6, and I've been trying to replicate the setup with aptana 3. I'm not sure what I'm missing to be getting this error... previous threads with similar errors all seem to be dealing with windows environments
I had the same issue on macOS Mojave 10.14 with AptanaStudio 3.7.2 and could fix it based on the suggestion here (which is for linux) https://stackoverflow.com/a/6685532/5220160
So assuming your AptanaStudio.app sits in /Applications the fix would be chmod +x /Applications/AptanaStudio.app/Contents/Eclipse/plugins/com.aptana.terminal_3.0.0.201802081530/os/macosx/redtty

Problem installing node on Mac OSX 10.6.7

I'm getting this error when I try and install node on my new mac
error: could not configure a cxx compiler!
The error always occurs when I get to the ./configure part of the installation
I found this problem which applies to a linux build with the same error, but the solution does not seem to apply in my case:
How to compile/install node.js(could not configure a cxx compiler!) (Ubuntu).
I also took a look at the troubleshoot guide on the node wiki here:
https://github.com/joyent/node/wiki/Troubleshooting-Installation
and tried this solution:
export PATH=/Developer/usr/bin:$PATH
ISYSROOT="-isysroot /Developer/SDKs/MacOSX10.5.sdk"
export LINKFLAGS=$ISYSROOT CXXFLAGS=$ISYSROOT CFLAGS=$ISYSROOT
./configure --prefix=$HOME --without-ssl
make
But I get the same problem when I get to the ./configure step
Any advice, insights or help would be much appreciated here.
Thanks
When you install Mac OS X Developer Tools (XCode, etc) ensure you have the Unix Tools option checked. I had to remember to install Developer Tools/Unix tools when I set up my new MBP and it resolved this error for me.
Optionally, you could remove and try installing with Homebrew. However, it still has the same requirements (XCode/Dev Tools) so ensure that you have those installed.
Hope this helps.
I had this problem too, I resolved this in a different way, as far as I know xcode 4.3.1 doesnt come with an Install Xcode.app file from the appstore, if you are under this case, just run xcode, go to preferences -> downloads and click on the Install button for the command line tools option. I did just that and all the errors on the .configure and make commands were gone :)
I had the same problem on OSX 10.7 with Xcode 4.2. I was trying to build node v0.4.7. I kept getting "unable to configure a c compiler" error. What finally worked for me is installing the GCC compiler seperately. I found a nice package for that here:
https://github.com/kennethreitz/osx-gcc-installer/
configure is currently broken for some versions of MacOS; for more details, see How to compile Node.js v0.4.2 on MacOS 10.5.8. The working approach cited there is as follows:
export PATH=/Developer/usr/bin:$PATH
ISYSROOT="-isysroot /Developer/SDKs/MacOSX10.5.sdk"
export LINKFLAGS=$ISYSROOT CXXFLAGS=$ISYSROOT CFLAGS=$ISYSROOT
./configure --prefix=$HOME --without-ssl
make
This worked for me .
Al
After installing XCode 4.3.2 (in Mac OS X Lion) I still had the error.
Open XCode, Preferences, Downloads and installed Command Line Tools.
After it gets installed ./configure runs ok.

Resources