In order to make a librarian villager, the first thing that you’d need to do is to craft a lectern. You need to get four wood slabs and a bookshelf to make a lectern using the crafting table.
After that, you need to find a village to see some villagers. Place the lectern next to an unemployed villager. You will see that the villager will become a librarian.