Copiando do meu comentário
That is the strangest error... usually it's a sign of forgetting to use "-p" in the mkdir command. Can you try running that command manually? test -z "/usr/local/share/doc/lame/html" || /bin/mkdir -p "/usr/local/share/doc/lame/html"; Also, can you tell me which directories in that path listed exist?
Acontece que o problema era um / usr / share com permissões ruins.