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?

Thank you in advance

Marcella

r8s string.h • 288 views
ADD COMMENT
0
Entering edit mode

See if this helps: https://andreasfertig.blog/2021/02/clang-and-gcc-on-macos-catalina-finding-the-include-paths/

I assume you have Xcode and command line tools installed.

ADD REPLY
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

ADD REPLY
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`"
ADD REPLY
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

ADD REPLY

Login before adding your answer.

Traffic: 1311 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6