medic / medic-os

A space-efficient Linux-based operating system, designed specifically to run Medic's mHealth platform. This is the build system and source code; Docker images will be available on Medic's website.
https://medic.org
GNU Affero General Public License v3.0
10 stars 6 forks source link

Cannot `clear` in shell session #18

Closed alxndrsn closed 6 years ago

alxndrsn commented 7 years ago
$ clear
clear: error while loading shared libraries: libncurses.so.6: cannot open shared object file: No such file or directory
$ reset
reset: error while loading shared libraries: libncurses.so.6: cannot open shared object file: No such file or directory
ghost commented 7 years ago

This is due to ncurses building clear and reset binaries that we don't need (Busybox has them covered), and then failing to dynamically link (presumably because the CLI utilities somehow built against a system libncurses with a slightly different name).

This caused problems in other areas of the build as well and am currently looking at those. IMO, the proper thing to do is to only ship one set of clear reset utilities with the base system image beneath /bin. Sound reasonable?

ghost commented 6 years ago

Fixed in https://github.com/medic/medic-os/commit/c399281e82705ece92176cdd24b2275d8dea0608.