Running sml/nj on osx 10.11.3 - macos

I have a problem with SML/NJ on mac. I downloaded the right original pgk file. SML/NJ is installed on the right path: /usr/local/smlnj/bin/sml but when I try to run sml (command: sml) this message appears:
-bash: sml: command not found.
I think that the problem is that I have osx 10.11.3 on my mac.

You have to adjust your PATH variable inside ~/.bash_profile:
export PATH="$PATH:/usr/local/smlnj/bin/"

Related

Installing xv6 on a macOSX catalina

I'm trying to run the XV6 on mac os,
I followed the following instructions
I have already added export PATH=$PATH:/usr/local/opt/riscv-gnu-toolchain/bin to the .zshrc file. (I'm using zsh)
But when I'm trying to run make qemu
I'm still getting Error: Couldn't find a riscv64 version of GCC/binutils.
What I'm missing here?

Catalina zsh shell does not recognize "source" command

I have a new Macbook Pro, pre-installed with Catalina, that I am trying to install Anaconda on. I was following the instructions on Stack Overflow here to fix the install. However, when I entered the following in the .zsh terminal:
source ~/.zshrc
I get the following error message:
.zshrc:1: command not found: Source
I have tried searching for a solution to no avail. My search results indicated that the source command is supposed to be built into the zsh shell, so this seems odd. Is this a known issue with the new MacBook Pros? Is there a fix for this error?

OS X Terminal hangs installing vNext KVM after running "source kvm.sh"

I'm trying to install vNext on my Macbook but when I run source kvm.sh the terminal just hangs.
My setup:
OSX 10.9.5 (Mavericks)
Mono 3.10.0
My problem:
I followed the instructions for installing vNext on OS X from the GitHub repo:
https://github.com/aspnet/Home
Essentially:
brew tap aspnet/k
brew install kvm
source kvm.sh
Everything seems to go fine until the step where I run source kvm.sh, which hangs the terminal with a message "[Process completed]".
Adding source kvm.sh to ~/.zshrc file starts the terminal and immediately hangs it once that runs.
What I've tried:
I uninstalled kvm (brew uninstall kvm) and aspnet/k (brew untap aspnet/k) and deleted the directory ~/.kre, then tried reinstalling it all again.
No luck.
Any ideas? Here's a screenshot:
The kvm currently not working in ZSH, Running it under /bin/bash should work quite well.
Also, make sure you remove anything to do with kvm from your .zshrc file and you should be good to go again.
according to https://github.com/aspnet/kvm/issues/83 , you can replace the kvm.sh file with the version from dev branch, which can be found under https://github.com/aspnet/kvm/blob/dev/src/kvm.sh , and zsh should be happy with it afterwards.
Worked for me.

Mac terminal returns "xcrun: error: unable to exec Xcode native xcrun (Exec format error)."

Mac OS X V. 10.9.4 2.4 GHz 2 GB RAM
Im trying to use Git through my mac terminal and it keeps returning this error every time I submit a git command: "xcrun: error: unable to exec Xcode native xcrun (Exec format error).".
I already installed git and github in my mac. Im somehow new to programming I i don't really understand whats causing this error. Its getting very frustrating.
The following works for me:
sudo xcode-select --reset
The GUI equivalent of this is to log into the machine, open Xcode, go to preferences, locations, and set the active command line tools version of xcode
I was getting a similar xcrun: error: unable to exec Xcode native xcrun (Not a directory). on my mac which is managed by a central admin. I had to run my command with sudo.

CMake 2.8.10 installation for mac os x fails creating symlinks

I am updating Cmake in my Mac Book pro with OS X Lion 10.7.5. The old version of Cmake is 2.8.8 and the new one is 2.8.10. When I run almost to the end of the installation process, the installer prompts
for creating a Symlink to /usr/bin of several tools. After click on continue, the installer throws an exception telling that couldn't create symlinks. Previously of the process, I've moved to trash the old version of Cmake and then using finder I got nothing more files of Cmake on the machine. Any idea how Can I complete the installation succesfully?
In my case, attempting to install cmake 2.8.12 on OSX 10.8.5 failed. The cmake-2.8.12.2-Darwin-universal.dmg installer downloaded directly from cmake.org would hang while running the post install scripts. I found and removed all the symlinks described by willyMon, but it still would hang, requiring me to resort to ps + kill to unhang the installer.
For me, installing via brew did the trick:
brew install cmake
It installed 2.8.12.2 in /usr/local/bin without a hitch.
Opening the Applications folder in a terminal
cd /
cd Applications/
then doing:
sudo bash
CMake.app/Contents/bin/cmake-gui
Then run from the CMake GUI:
"Tools->Install For Command Line Use"
works OK for me.
Ok, after looking in deep for this error, I found that I missed some simple detail and this was the key to solve the problem. The Cpack installer of Cmake 2.8.10.1 try to create symbolic links to this files:
-cmake-gui
-cmakexbuild
-cmake
-cpack
-ctest
So, from a terminal I've removed all the previous Symlinks that the older version created, then I ran the installer again and the installation was done succesfully without any errors or warnings.

Resources