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?
Related
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).
so I am having issues with Rosetta, and whenever I want to do any install or use a makefile, I get this error:
rosetta error: /var/db/oah/c642c66595f5050af26db8f86497ea83caff7cea5a9bcb2361ffa81d0e090b58/e3dffc0922c5d9c2da11a427e8274cb75a79f184276373ffc39b65cfa67f4141/libxcrun.dylib.aot: attachment of code signature supplement failed: 1
I am using the newest MacBook Pro M1. Installed using the softwareupdate --install-rosetta.
I can't find anything about it using google, what could be wrong here?
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?
I'm trying to install gdb on my Mac. I downloaded it with brew and code signed it according to the instructions on https://sourceware.org/gdb/wiki/BuildingOnDarwin
However, when I run gdb in the terminal, it still doesn't work and output the following error message:
dyld: Library not loaded: /usr/local/opt/mpfr/lib/libmpfr.6.dylib
Referenced from: /usr/local/bin/gdb
Reason: image not found
Trace/BPT trap: 5
Does anyone know what it means? My Mac version is 10.11.5, by the way
I ran into the same issue on macOS 10.11.6, I'm guessing (and this is just speculation; I don't actually know how Homebrew works) that Homebrew installed a pre-compiled version of gdb which depended on a library that existed on the machine it was compiled with, but did not exist on my machine.
At any rate, I was able to get a working version of gdb by downloading & unzipping version 7.12 (8.1 failed to compile on my machine) from http://ftp.gnu.org/gnu/gdb/gdb-7.12.tar.gz, then compiling & installing with (IIRC) the commands:
./configure
make
sudo make install
I blogged about this and the subsequent steps (getting the executable code-signed so that macOS would allow it to debug other processes, etc) here: http://prust.github.io/posts/2018-02-24-interactively-debugging-c-in-sublime-text-3.html
I get this problem too. And I find solution in https://qiita.com/yoshixj/items/698d94337ca447e9b9de
Since we don't have /usr/local/opt/mpfr/lib/libmpfr.6.dylib
we can simply install it. Use this command:
brew install gawk
echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.zshrc
I had the same error message when running gdb after installing it from Homebrew (gdb v8.1) on a Mac OS X El Capitan v10.11.6. However, installing it via Homebrew using its Python binary solved the issue:
brew install gdb --with-python
Beaware that this may take some time, since you'd be compiling gdb from scratch. After it's done, you still need to create a certificate and codesign gdb.
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/"