Error: The following directories are not writable by your user:

In Linux / Unix at times you might encounter such Error: The following directories are not writable by your user:

/usr/local/lib/pkgconfig

Current file / folder permission, users, groups or attributes.

Terminal --> ls -la /usr/local/lib/         

drwxr-xr-x   4 root     wheel     128 Jul 10 21:27 pkgconfig

Solution –

You should change the ownership of these directories to your user.

sudo chown -R $(whoami) /usr/local/lib/pkgconfig

Terminal --> ls -la /usr/local/lib/         

drwxr-xr-x   4 JENNY  wheel     128 Jul 10 21:27 pkgconfig

And make sure that your user has write permission.

chmod u+w /usr/local/lib/pkgconfig

Terminal --> ls -la /usr/local/lib/         

drwxr-xr-x   4 JENNY  wheel     128 Jul 10 21:27 pkgconfig

Leave a comment

About the author

Sophia Bennett is an art historian and freelance writer with a passion for exploring the intersections between nature, symbolism, and artistic expression. With a background in Renaissance and modern art, Sophia enjoys uncovering the hidden meanings behind iconic works and sharing her insights with art lovers of all levels. When she’s not visiting museums or researching the latest trends in contemporary art, you can find her hiking in the countryside, always chasing the next rainbow.