Problem Installing r8s on mac: No rule to make target '/usr/include/string.h', needed by 'DrawTree.o'
0
0
Entering edit mode
12 days ago
Marcella • 0

Hi,

I'm trying to install the software r8s on a MacBook pro (M1). When trying to use the command make in the src folder (as explained in the manual and README) I get this error:

make: *** No rule to make target '/usr/include/string.h', needed by 'DrawTree.o'. Stop.

I have searched online for a solution but I was not able to find one. Some of you has any idea on how to resolve this?

Marcella

r8s string.h • 288 views
0
Entering edit mode

I assume you have Xcode and command line tools installed.

0
Entering edit mode

Yes I have both Xcode and command line tools installed. It seems that it's the thing I need to do, but I'm quite new to mac and informatics in general and I can't understand what I need to do

0
Entering edit mode

Looks like you need to edit .zshrc file in your account (https://osxdaily.com/2021/11/18/where-the-zshrc-file-is-located-on-mac/ ) and add the following line to it. Open a new terminal after you do this.

export SDKROOT="xcrun --show-sdk-path"

0
Entering edit mode

It does not work. I'm still using bash, so I edited my .bashrc and opened a new terminal.

If I use the command make I get the same error