I tried to use pdftk
command to handle different pdf files.
But unfortunaltely, it doesn't work. There seems that libstdc++.6.dylib is missing into MacOS Big Sur 11.2.3.
Here an example of command tried (extract the 4th page) :
$ pdftk example1.pdf cat 4 output example2.pdf
dyld: Symbol not found: __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev
Referenced from: /usr/local/bin/pdftk
Expected in: /usr/lib/libstdc++.6.dylib
in /usr/local/bin/pdftk
zsh: abort pdftk example1.pdf cat 4 output
How can I solve this issue ?
If I do a ls -l
into /usr_lib/libstdc++*
, I get :
$ ls -l /usr/lib/libstdc++.*
lrwxr-xr-x 1 root 17 Jan 1 2020 /usr/lib/libstdc++.dylib -> libstdc++.6.dylib
lrwxr-xr-x 1 root 21 Jan 1 2020 /usr/lib/libstdc++.6.dylib -> libstdc++.6.0.9.dylib
and file libstdc++.6.0.9.dylib
is missing : is it normal ?
Both macports
and brew
fail to install pdftk
.