Don't run ranlib - that wasn't the problem.