protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

sudo: ldconfig: command not found for C++ installation on Mac OS X

Open tianqig opened this issue 8 years ago • 5 comments

Hi, I used the following commands to install protobuf on my MacBook Pro of Mac OS X, Sierra $ ./configure $ make $ make check $ sudo make install $ sudo ldconfig the first 4 commands were successful, but the last command got error message: sudo: ldconfig: command not found

Thanks

David

tianqig avatar Jan 09 '17 07:01 tianqig

"sudo ldconfig" is used on Linux to update shared library cache so the newly installed protobuf library can be correctly found. Mac OS X doesn't seem to have this shared library cache problem and you can safely ignore it (protobuf is ready to use after "sudo make install").

xfxyjwf avatar Jan 09 '17 18:01 xfxyjwf

@tianqig On Macos, try this instead of sudo ldconfig : $ sudo update_dyld_shared_cache

sebma avatar Aug 28 '17 12:08 sebma

docs need to be updated to reflect this

elharo avatar Sep 09 '21 18:09 elharo

sudo update_dyld_shared_cache

Update on this solution: Currently says the tool is deprecated

cyanxena avatar Apr 18 '22 05:04 cyanxena

Apple M1 MAC's also say that the tool is deprecated

ankitsablok89 avatar Jul 22 '22 05:07 ankitsablok89

I believe this was fixed by #7392, where we no longer recommend ldconfig. If this was closed incorrectly, please feel free to reopen and explain why so we can try again.

devjgm avatar Sep 01 '22 17:09 devjgm

Hi everyone, what is the replacement/equivalent of update_dyld_shared_cache on MacOS now ?

sebma avatar Sep 01 '22 19:09 sebma

I'm on the same issue, hope someone answers

j5cents23 avatar Sep 14 '22 13:09 j5cents23

I'm not sure if anything replaced update_dyld_shared_cache. It's been deprecated since Big Sur, I believe. Is there an issue about this that's related to protobuf that we should look into?

devjgm avatar Sep 14 '22 14:09 devjgm