install libreadline,remove duplicated dir