didn't add the call to ldconfig inside the case statement, whoops