I have a requirement to copy a dylib file to /usr/lib folder. Even though I have disabled csruitl in recovery mode to bypass the SIP. Still I cannot copy this file to the /usr/lib
folder. I have also tried sudo cp libstdc+.dylib /usr/lib/
, but no luck.
From some other articles I have read - unable to copy to /usr/lib - I am suggested to copy the dylib file to /usr/local/lib
with the install_name_tool
.
If my target location is /usr/lib, the file is libstdc+.dylib, and if i put my file into the suggested location /usr/local/lib, then what should my command be in Terminal?
Or is there any easier way to do this? Would anyone please help?
usr/lib
or/usr/lib
?