I am trying to use git from the command line on my chromebook for dev work. I installed git from apt-get (and then git-all after this issue first appeared to see if that would solve it but it didn't).
If I try running any git command I get:
git: error while loading shared libraries: libcharset.so.1: cannot open shared object file: No such file or directory
I could only find this bug report about the issue where users are saying that libcharset is part of libiconv, so I tried installing that but it doesn't exist in apt, another search led me to this post where a user says that libcharset is part of libc6 so I tried installing that but it said I already had the newest version. I also tried to install libc6-dev but that was already the newest version too.
Does anyone know how to solve this issue? Is there another way to get git working on the command line on crostini?
1 Answer 1
Just check ld so path configuration
$ cat /etc/ld.so.conf /etc/ld.so.conf.d/*.conf
If the path of libcharset.so.1 isn't included in that configuration list, then just add the path into /etc/ld.so.conf and update path config
$ sudo vim /etc/ld.so.conf
$ sudo ldconfig -v
And try git again!
You must log in to answer this question.
Explore related questions
See similar questions with these tags.
apt updatebefore installing? This refreshes the package metadata so apt knows which packages are available. If not do so and then repeat the install command.apt install -fto install missing dependencies.