By the default if you create Custom Post Type attaching Category to it is not possible.
On the line: array( 'post', 'resource_libraries' ), replace "resource_libraries" slug to your custom post type slug.
This content is visible only for owners of
Please login to see the content.
Username or Email Address