There are three types of libraries in Minecraft. You may have been looking for:
- The buildings in villages that contain bookshelves.
- The rooms in strongholds that contain bookshelves and chests.
- The rooms in woodland mansions that contain bookshelves.