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

Created on 9 Jan 2017  路  2Comments  路  Source: protocolbuffers/protobuf

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

Most helpful comment

"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").

All 2 comments

"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").

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

Was this page helpful?
0 / 5 - 0 ratings