3

Libgtksourceview-2.0.0.dylib requires version 6001.0.0 or later, but libgio-2.0.0.dylib provides version 5503.0.0

However, I do not know how to raise the libgio-2.0.0.dylib version. What kind of directory is /usr/local/lib in the first place? please tell me.

  • When I run command "brew reinstall glib" , the error " No such file or directory @ rb_file_s_stat - /usr/local/lib/libgio-2.0.dylib " occurred. But libgio-2.0.dylib is not directory. What should I do ? What is rb_file_s_stat ? – Daisuke Aug 11 '19 at 11:17
5

All of /usr/local is for stuff you (or your system administrator) installed, that did not come with the OS from Apple. /usr/local/lib is for libraries: packages of precompiled code implementing various useful functions, that can be loaded and used by apps, but are not themselves apps.

If you don't recall installing these libraries, they were probably installed by an open source software package management system such as Homebrew. Look into using brew to upgrade them.

| improve this answer | |
0

For installing a package, you need to compile that package with existing compilers(depends on what language developers used for that package). There are gonna be libraries that compiler needs for installing that package. This is linker's job to link those libraries.

/usr/local/lib is one the directories that linker searches for required libraries. There are configuration files along with the installation package which search for necessary libraries.

| improve this answer | |
0

From the Apple File System Programming Guide

/usr - Contains non-essential command-line binaries, libraries, header files, and other data.

More specifically, /usr/lib is for macOS installed shared libraries. Anything under /usr/local are user-installed. So /usr/local/lib contains shared libraries installed by you.

More likely that not, belongs to the libgtksourceview-2.0.0.dylib gtksourceview installed by Homebrew and libgio-2.0.0.dylib belongs to glib. The error message shows gtksourceview is compiled with a newer version of glib that is available on your system.

There are a couple of solutions, assuming you have Homebrew installed.

Reinstall gtksourceview and glib

Reinstall both software

brew reinstall glib gtksourceview

Reinstall or upgrade gtksourceview

Either

brew upgrade --build-from-source gtksourceview

or

brew reinstall --build-from-source gtksourceview

If the glib dependency is out of data, it will be upgraded too. The --build-from-source option will ensure gtksourceview is compiled from scratch, linking with the available glib version in your system.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.